How to count blank cells in a range
✓ Verified in LibreOffice 25.8.7.3Count how many cells in a range are empty — useful for spotting missing data.
The formula
| App | Formula | Notes |
|---|---|---|
| Excel | =COUNTBLANK(A2:A7) | |
| Google Sheets | =COUNTBLANK(A2:A7) | Identical. |
| LibreOffice Calc | =COUNTBLANK(A2:A7) | Identical. |
How it works
COUNTBLANK counts truly empty cells in the range. In the sample, A3, A5 and A7 have nothing in them, so the result is 3. Note that a cell containing a formula that returns "" counts as blank in all three apps, while a space character does not — a common gotcha when data is pasted from elsewhere.
Verified, not just documented
We ran =COUNTBLANK(A2:A7) in LibreOffice 25.8.7.3 (headless, with forced recalculation) and it returned 3 — exactly the expected result. Every formula here is confirmed by actually executing it.