I'm trying to use information from a table to display a count of blank cells based on the type of data in the table. See my example below – I want to count how many of each fruit I'm missing, regardless of their color, and ignoring the apples I do have.
Google Sheets – Count Blank Cells Based on Related Cell Information
google sheets
Related Topic
- Google-sheets – Counting unique values based on multiple columns
- Google Sheets – Count Non-Blank Cells with ArrayFormula
- Google-sheets – Google spreadsheet data not showing properly in graphic
- Google-sheets – Suming values in a column if value in cell next to it matches another cell
- Google Sheets – Fill Dates and Replace Blank Cells with Zeroes
- Google-sheets – Clear range of cells based on another
- Google-sheets – Conditional Formatting based on table data
- Google-sheets – Conditionally Format Non-Blank Cell in Range When Adjacent Cell on Same Row Contains Particular Value
Best Answer
The following formula will almost retrieve the table you want.
Formula
Explained
Column A is selected to be shown. It is not possible, with the
QUERY
formula, to perform on the same column a count and select operation. Therefore I performed the count on column B. The where clause on column C is set to contain nothing. All results are to be grouped by column A. At the end of the query, the header/label is changed (otherwise it would show "count Color".Result
Example
I've created an example file for you: Counting blank cells based on information in related cell