Key Takeaways
COUNTA counts formulas that return empty text (""), and COUNTBLANK counts those results as blank too. The functions are not complements. For a truly empty cell, a ="" formula, numeric zero and text x, Microsoft’s rules give COUNTA 3 and COUNTBLANK 2. If completion means cells excluded by COUNTBLANK, subtract it from ROWS times COLUMNS, then separately check errors, spaces and business validity.
- A ="" formula looks empty but belongs to both function counts.Read the supporting section: Build a four-cell exercise first
- Zero is not a COUNTBLANK blank; adding the two counts is not a cell-total check.Read the supporting section: These definitions overlap
- Define completion before counting; content alone does not establish a valid record.Read the supporting section: The cell count is right. Why can completion still be wrong?
In this article
Build a four-cell exercise first
In your own blank practice sheet, clear the contents of A1 so that it is truly empty. Enter the formula ="" in A2, numeric 0 in A3 and ordinary text x in A4. A2 must contain a formula, rather than two quote characters typed as text. Do not put a space in A1.
The values below are reference results derived from the documented rules and an exercise you can reproduce. No native Excel run was performed for this article. Check your actual Excel version, formula bar and referenced range if your result differs; appearance alone does not identify the content.
| Cell | Actual content | COUNTA includes | COUNTBLANK includes |
|---|---|---|---|
| A1 | Truly empty | No | Yes |
| A2 | Formula ="" | Yes | Yes |
| A3 | Number 0 | Yes | No |
| A4 | Text x | Yes | No |
=COUNTA(A1:A4)
=COUNTBLANK(A1:A4)
=ROWS(A1:A4)*COLUMNS(A1:A4)These definitions overlap
The Microsoft COUNTA reference includes empty text and error values. The COUNTBLANK reference includes formulas returning empty text and excludes zero. A2 is counted twice across the two results, so 3 + 2 = 5 is consistent.
This does not mean Excel treated zero as blank or discovered a fifth cell. The functions answer different questions. When missing data and numeric zero matter, use the distinctions in missing versus zero in extracted tables; do not discard a valid zero simply because it resembles an unfilled response.
The cell count is right. Why can completion still be wrong?
For a single continuous rectangular range such as A1:A4, =ROWS(A1:A4)*COLUMNS(A1:A4)-COUNTBLANK(A1:A4) counts cells outside COUNTBLANK’s blank definition, giving a reference result of 2. It includes numeric zero and text x while excluding true blanks and formula empty text. It does not assess business validity.
Now use the four authored rows below. A completed row requires an identifier nonempty after trimming surrounding ASCII spaces and a numeric quantity of zero or above. Row 1’s zero is valid. Row 2 returns empty text, row 3 has a spaces-only identifier, and row 4 puts text in quantity. Exactly one row meets this explicit rule: 1/4=25%. This is a rule-based derivation, not a native Excel run performed for this revision.
Place the four exercise identifiers and quantities in A2:B5, enter the row test in C2, fill through C5, then count TRUE across the four rows. Numeric zero passes ISNUMBER; text numbers do not. IFERROR marks error inputs incomplete. This rule uses ASCII spaces: TRIM alone does not remove nonbreaking spaces. Reference results are TRUE, FALSE, FALSE, FALSE and 25%. No native Excel run was performed; reproduce in your version and adjust argument separators for its locale.
An area that looks populated can therefore produce a different row-level result. Validate required fields and allowed values within each row, then count qualifying rows, keeping numerator and denominator in the same unit: records. Adding cell counts across fields does not produce a completed-record count.
When a number differs from expectations, inspect the actual range, cell contents and row-validity conditions in that order. A wrong range, differing function definitions and invalid business entries are different causes. For later exports, use the formula-cache and multiple-sheet checks on the actual file.
| Row | Identifier | Quantity | Completed? |
|---|---|---|---|
| 1 | 0001 | Numeric 0 | Yes |
| 2 | 0002 | Formula empty text | No |
| 3 | Spaces only | Numeric 5 | No |
| 4 | 0004 | Text x | No |
=IFERROR(AND(LEN(TRIM(A2))>0,ISNUMBER(B2),B2>=0),FALSE)
=COUNTIF(C2:C5,TRUE)/ROWS(C2:C5)

