Counting · About 3 minutes
Find empty cells with COUNTBLANK
Before you send a sheet on, it helps to know what's missing. COUNTBLANK counts the empty cells in a range.
=COUNTBLANK( reads as "count the cells from B2 to B7 that have nothing in them".
A cell holding 0 is not empty, so COUNTBLANK leaves it out. Empty cells are counted, and so are cells whose formula shows nothing ("").
Exercise 1 of 3 · Worked example
In B8, count the Maths marks not entered yet. Type =COUNTBLANK( B2:B7) and press Enter.
| A | B | C | |
|---|---|---|---|
| 1 | Student | Maths | Science |
| 2 | Ananya | 78 | 85 |
| 3 | Farhan | 72 | |
| 4 | Ishita | 91 | |
| 5 | Karthik | 66 | |
| 6 | Lakshmi | 88 | |
| 7 | Nikhil | 84 | |
| 8 | Not entered | (answer cell) |
Questions people ask
Does COUNTBLANK count cells with 0?
No. A 0 is a value, so the cell is not blank.
Does COUNTBLANK count cells with a space?
No. A space is text, so the cell is not blank even though it looks empty. TRIM or SUBSTITUTE can clear stray spaces.
Does COUNTBLANK count formulas that return ""?
Yes, in Excel and Google Sheets: a formula showing "" counts as blank. COUNTA counts the same cell as filled, so the two can overlap.
How do I count cells that are not blank?
Use COUNTA, or COUNTIF with "<>" as the condition.
Can COUNTBLANK check two columns at once?
Yes. Give it the whole block, like =COUNTBLANK(, and it counts empty cells in both columns.