How to count blank cells in excel
Tutor 5 (56 Reviews)
Excel Tutor
Still stuck with a Excel question
Ask this expertAnswer
Counting blank cells in Excel is essential when analyzing datasets to identify missing or incomplete information. Excel provides multiple methods to count blank cells efficiently.
Method 1: Using the COUNTBLANK Function
The COUNTBLANK function is the simplest way to count empty cells within a specific range.
Syntax:
COUNTBLANK(range)
Example:
If cells A1 to A10 contain some values and some blanks:
=COUNTBLANK(A1:A10)
This formula returns the number of blank cells in the range A1:A10.
Method 2: Using the SUMPRODUCT Function
SUMPRODUCT can count blank cells when more complex conditions are needed.
Syntax:
=SUMPRODUCT(--(range=""))
Example:
To count blanks in the range B1:B15:
=SUMPRODUCT(--(B1:B15=""))
This method treats the condition range="" as TRUE for blank cells and FALSE for non-blank cells, then sums the TRUE values.
Method 3: Using the COUNTIF Function
COUNTIF is flexible for counting blank cells and can combine multiple conditions if necessary.
Syntax:
=COUNTIF(range, "")
Example:
To count blanks in C1:C20:
=COUNTIF(C1:C20, "")
Method 4: Using Go To Special Feature
Excel provides a visual method to identify and count blank cells using the Go To Special tool.
Steps:
-
Select the range you want to check.
-
Press
Ctrl + Gto open the Go To dialog box. -
Click Special.
-
Select Blanks and click OK.
-
Excel highlights all blank cells.
-
Look at the bottom-right corner to see the count of selected blank cells.
Note for Mac:
Use Command + G instead of Ctrl + G to access the Go To dialog box.
Considerations When Counting Blank Cells
-
Cells containing formulas that return empty strings (
"") are considered blank byCOUNTBLANKandCOUNTIF, but not always by some functions depending on the context. -
Spaces or invisible characters in a cell make it non-blank. Use the
TRIMfunction to clean spaces before counting. -
Combining
ISBLANKwithSUMPRODUCTprovides precise control when dealing with formula-generated blanks.
Example Using ISBLANK with SUMPRODUCT
=SUMPRODUCT(--(ISBLANK(D1:D20)))
This counts only truly empty cells, ignoring cells with formulas returning "".
This approach ensures accurate counting and avoids misleading results in datasets.
. Was this Helpful?Get Online Tutoring or Questions answered by Experts.
You can post a question for a tutor or set up a tutoring session
Answers · 1
Why are margins not working
Answers · 1
Why is page layout not working
Answers · 1
How to print repeated rows on top in excel
Answers · 1
How to print header on each page
Answers · 1