The COUNTBLANK function
COUNTBLANK counts how many cells in a range are empty. It's a quick way to see what's still missing: tasks not finished, forms not returned, or scores not entered.
It also counts cells where a formula returns empty text, "", because they look blank. A cell holding a single space is *not* blank.
=COUNTBLANK(range)
Arguments
- range
- The one range to check for empty cells.
Try it
=COUNTBLANK(C2:C6) in E2. Three tasks have no completion date yet, so COUNTBLANK gives 3.
E2
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Task | Owner | Done on | Not done | ||
| 2 | Book venue | Sara | 6 Jan 2025 | 3 | ||
| 3 | Order food | Luke | ||||
| 4 | Send invites | Sara | 10 Jan 2025 | |||
| 5 | Hire speakers | |||||
| 6 | Print badges | Ben | ||||
| 7 | ||||||
| 8 |
Edit the formula in E2, or change the data, and press Enter.
More examples
| Formula | Result | What it does |
|---|---|---|
| =COUNTBLANK(B2:B6) | 1 | B5 holds a formula that returns "", which counts as blank. |
| =COUNTA(B2:B6) | 5 | COUNTA sees the formula in B5 and counts it, so the two don't always add up to the range size. |
| =ROWS(C2:C6)-COUNTBLANK(C2:C6) | 2 | The number of tasks that are done. |
Tips
- COUNTBLANK takes exactly one range. To check two areas, add two COUNTBLANKs together.
- Use
=COUNTIF(C2:C6,"")if you prefer one function for everything; it also counts empty cells.
Common mistakes
- A cell that looks empty isn't counted.It holds a space or another invisible character. Select it and press Delete.
- COUNTBLANK and COUNTA don't add up to the number of cells.Formulas returning "" are counted by both. That's expected; decide which one matches your question.
Practise COUNTBLANK with instant feedback
Type real formulas into a working spreadsheet and get told straight away whether they work.