COUNTBLANK counts empty cells and cells whose formulas return “”, the empty string, while COUNTA counts any cell with content, including a formula that returns “”. An AI-written check that counts blank answers can therefore disagree with a COUNTA-based check on the same column, and both can be right about different things. Decide which kind of blank the reader means before choosing the function.
What you need
- The AI-written COUNTBLANK formula
- The column it counts, with formula cells marked
- A hand count of the truly empty cells and of the “” cells
Step 1: Count the truly empty cells by hand
Look down the column and count the cells with nothing in them at all, then count separately the cells whose formulas return “”. Write both numbers down.
Step 2: Compare COUNTBLANK with the hand counts
Run the COUNTBLANK formula and compare its result with your two hand counts. If it matches the sum of both, it is counting the “” cells as blank, which is its documented behaviour.
Step 3: Pick the function that matches the question
If the reader wants only truly empty cells, count them another way, such as COUNTIFS with a blank criterion on the input column; if “” cells should count as blank, keep COUNTBLANK and say so in the report.
Worked example: synthetic survey answers column
The table below is a synthetic example. It shows the expected result of checking an AI-written COUNTBLANK formula; no formula was run.
| Check | Value | Result |
|---|---|---|
| Truly empty cells | 3 | Nothing entered |
| Cells returning “” | 2 | Formula returns empty text |
| COUNTBLANK result | 5 | Counts both kinds |
| COUNTA result | 7 | Counts the “” cells as filled |
Expected result (UNTESTED). COUNTBLANK returns 5 on the column, counting three truly empty cells plus two formulas returning “”; COUNTA returns 7, because it counts the “” cells as filled. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- COUNTBLANK counts a formula returning “” as blank, but COUNTA counts the same cell as non-empty.
- A cell with a space in it is not blank to either function, so trim spaces before counting.
- COUNTBLANK counts a zero as a value, not as a blank, so a 0 is not an empty answer.
- A formula that returns “” looks blank on screen, so check the formula bar before deciding a cell is empty.
