COUNTA counts cells that are not empty — but it counts cells with spaces, formulas returning "", and even #N/A errors as if they’re meaningful data.
The Problem
You think you’ve cleaned your sales tracker. You delete blank rows. You filter out zeros. Yet COUNTA says there are 12 entries — but only 7 real people signed up this month.
That mismatch isn’t a bug. It’s COUNTA doing exactly what it’s designed to do — and exactly what most users don’t expect.
Here’s the raw data from Sheet1!A1:C10, pulled from a live CRM export:
Name
Email
Amount
Sarah Chen
sarah@acmecorp.com
$45,200
James Lee
james@
$0
Maria Garcia
maria@bloomtech.io
$32,800
Alex Wu
alex@
#N/A
Tina Patel
tina@nexa.co
$19,500
Rajiv Mehta
rajiv@
$0
Now run =COUNTA(A1:C10). Result? 22.
That’s not 10 rows × 3 columns = 30 minus blanks. That’s because:
Spaces (like in A3 or B5) count as content.
Formulas returning "" (even if invisible) are non-blank.
#N/A in C6 is a value — so COUNTA sees it.
Cells with just a space character (ASCII 32) aren’t empty.
This isn’t a flaw. It’s the definition. COUNTA means “count anything that isn’t truly blank” — and Excel defines “blank” very narrowly.
The Solution
Do this instead — for real-world accuracy:
Select cell E1.
Type =SUMPRODUCT(--(TRIM(A1:A10)<>"")) and press Enter.
Copy that formula across to F1 and G1 to count non-blank entries per column.
To count full rows where *all three* columns have real data, use: =SUMPRODUCT((TRIM(A1:A10)<>"")*(TRIM(B1:B10)<>"")*(TRIM(C1:C10)<>""))
Why TRIM? Because it strips leading/trailing spaces — turning " " into "", which then evaluates to FALSE in the comparison.
The corrected count per column looks like this:
Column
COUNTA(A1:A10)
Real Non-Blank Count
Name
8
5
Email
7
4
Amount
9
6
See the gap? That’s why your dashboard shows “12 leads” while your sales team only sees 7 valid ones.
Going Further
COUNTA has cousins — and knowing when to switch saves hours.
Use COUNTBLANK(range) only if you need to know how many cells contain absolutely nothing — no spaces, no formulas, no errors. But beware: COUNTBLANK(A1:A10) returns 3 on our sample data, yet we have 5 visibly empty rows. Why? Because A3, A5, A8, and A10 contain spaces — and COUNTBLANK ignores those.
For text-only counting (ignore numbers, dates, errors), try:
=SUMPRODUCT(--ISTEXT(A1:A10))
To count numeric entries only:
=SUMPRODUCT(--ISNUMBER(A1:A10))
And here’s the counterintuitive tip: COUNTA ignores truly empty cells — but also ignores cells with formulas returning #N/A, #VALUE!, or #REF!. Those all count as non-blank. So if your data pipeline outputs #N/A for missing fields, COUNTA inflates your totals — silently.
If you're auditing imported CSVs, add this check in column D next to your data:
=IF(OR(ISBLANK(A1),TRIM(A1)=""),"EMPTY","OK")
Drag it down. Filter for “EMPTY”. Then decide: delete those rows, or replace them with proper NULL handling.
When NOT to Use This
Don’t use COUNTA when:
You’re validating user input and need to catch cells with accidental spaces — use TRIM + comparison instead.
You’re building a dashboard KPI and care about *valid* entries — not just “not empty”.
Your range includes merged cells — COUNTA counts the entire merged area as one cell, even if only the top-left has content.
You’re working with dynamic arrays (Excel 365) and want spill-aware counting — COUNTA over an entire spilled range (like E1#) will miscount if some rows are filtered out.
You’re checking for “no data entered yet” in a form — because "0", "$0.00", or "N/A" may be legitimate responses, not blanks.
Also: COUNTA treats a cell containing a formula returning "" as non-blank — even though it looks blank. That’s the single most common source of confusion in audit reports.
Keyboard Shortcuts
These shortcuts save time when building or debugging COUNTA-based logic:
Action
Shortcut
Notes
Open Function Arguments dialog for COUNTA
Alt + M, U, A
Press Alt, then M → U → A in sequence
Toggle between relative/absolute references
F4
Crucial when locking ranges like $A$1:$C$10
Edit formula in cell
F2
Lets you see exactly what’s in the cell — spaces, quotes, errors
Show formula view (all cells)
Ctrl + ` (backtick)
Reveals "" results, hidden spaces, and error types instantly
Tom Bradley
Tom has 15 years of experience in office management and supply chain optimization. He shares practical tips for running efficient workplaces.