Stop Using COUNT() on Blank Cells — Try This Instead

The first thing most people do when they type =COUNT(A1:A20) is assume it counts all the 'filled' cells. That’s dangerously wrong — especially if your finance team pasted numbers from a PDF or imported data from SAP. Those values often land as text, and COUNT() won’t see them at all.

The Problem

You’re reviewing Q1 sales headcount across regional offices. Your manager sends you a sheet with names, roles, and start dates — and asks, "How many hires did we make?" You highlight column C (Start Date), type =COUNT(C2:C15), and get 8. But the HRIS says 12. Where are the other 4?

NameRoleStart DateStatus
Sarah ChenSales Rep2024-02-15Active
James LeeAccount Executive2024-01-22Active
Amina PatelSolutions Consultant2024-03-01Active
Diego MoraSales Rep2024-02-29Active
Lena WuAccount Executive2024-01-10Active
Rajiv KapoorSales Rep2024-03-12Active
Tasha BooneSolutions Consultant2024-02-05Active
Marcus BellSales Rep2024-01-28Active
Yuki TanakaAccount Executive2024-03-18Active
Elena RuizSales Rep2024-02-10Active
Omar HassanSolutions Consultant2024-01-05Active
Nina KimAccount Executive2024-02-20Active
Dmitri VolkovSales Rep2024-03-07Active
Priya DesaiSolutions Consultant2024-01-15Active

Looks fine — until you select C2:C15 and press Ctrl+1 to open Format Cells. Half those dates show up as 'Text' — not 'Date'. Excel treats them like labels, not values. And COUNT() only sees numbers and dates *formatted correctly*. It skips everything else.

The Solution

Here’s what actually works — in order:

  1. Select the range (e.g., C2:C15).
  2. Press Alt+H, then F, then T — this opens Text to Columns. Choose 'Delimited', click Next, uncheck all delimiters, click Finish.
  3. Type =COUNTA(C2:C15) in an empty cell. This counts non-blank cells regardless of content type.
  4. Verify with =SUMPRODUCT(--ISNUMBER(C2:C15)) — this tells you exactly how many entries Excel recognizes as real numbers/dates.

You’ll likely see COUNTA() returns 12, while COUNT() still returns 8. That gap? That’s your hidden data problem.

StepActionResultShortcut
1Select C2:C15Range highlighted
2Run Text to ColumnsAll dates now numericAlt+H → F → T
3Enter =COUNT(C2:C15)Returns 12
4Enter =COUNTA(C2:C15)Also returns 12 (but safe)

Going Further

Once you’ve cleaned the data, go deeper:

  • Use =COUNTIFS(C2:C15,">=2024-01-01",C2:C15,"<=2024-03-31") to count hires within Q1 — even if some cells are blank or contain errors.
  • Add =IF(ISNUMBER(C2),"✓","⚠") in column D to flag misformatted entries — drag down for instant visual audit.
  • If you’re pulling live data from Power Query, add a step: Transform → Data Type → Date. That prevents the issue upstream.
  • Surprising tip: COUNTBLANK() counts *empty cells and formulas that return ""* — but not cells with spaces. To catch those, use =SUMPRODUCT(--(TRIM(C2:C15)="")).

When NOT to Use This

Don’t reach for COUNT() or COUNTA() when you need precision about data *type*. For example:

  • If you’re auditing invoice amounts and need to exclude any entry that isn’t a true number (e.g., “$1,250” vs 1250), use =SUMPRODUCT(--ISNUMBER(--SUBSTITUTE(C2:C100,"$",""))) — because -- forces conversion and fails on non-numeric strings.
  • Never use COUNTA() to validate required fields in a form submission log — it counts "N/A", "Pending", and "—" as valid entries. Use =COUNTIFS(C2:C100,"<>N/A",C2:C100,"<>Pending",C2:C100,"<>—") instead.
  • If your range includes merged cells, COUNT() and COUNTA() behave unpredictably — unmerge first or use structured references in Excel Tables.

Also: COUNT() ignores logical values (TRUE/FALSE) unless you explicitly coerce them. =COUNT(TRUE,FALSE,1,2) returns 2, not 4. That trips up analysts building conditional counters.

Keyboard Shortcuts

ActionShortcutNotes
Open Format CellsCtrl+1Check data type instantly
Text to ColumnsAlt+HFTFixes text-formatted numbers/dates
Toggle Formula ViewCtrl+`See all formulas at once — spot "=" before numbers
Select Entire ColumnCtrl+SpaceFast way to grab C:C for bulk checks
Anna Kim

Anna Kim

Anna specializes in tax forms