English
/

COUNT vs COUNTA vs COUNTBLANK in Excel and Google Sheets

Last edited Oct 29, 2026 · 3 min read

COUNT counts numeric cells; COUNTA counts nonempty cells, including text, in Excel and Google Sheets. COUNTBLANK counts empty cells, but a formula returning empty text ("") counts in both COUNTA and COUNTBLANK. Their totals can therefore exceed the number of cells in the range.

On this page▾
  1. COUNT vs COUNTA: what is the difference?
  2. COUNT vs COUNTA vs COUNTBLANK: why do totals differ?
  3. Why COUNT is lower than you expect
  4. Which one to use
  5. Frequently asked questions
Cell contents COUNT COUNTA COUNTBLANK
Number or date counted counted not counted
Text (including a number stored as text) not counted counted not counted
TRUE / FALSE not counted counted not counted
Error value (#DIV/0!) not counted counted not counted
Truly empty cell not counted not counted counted
Formula returning "" not counted counted counted
Zero counted counted not counted
A single space not counted counted not counted

COUNT vs COUNTA: what is the difference?

Microsoft's documentation describes the three functions like this:

  • COUNT counts cells that contain numbers. Dates count too, because Excel stores them as numbers. Inside a range, empty cells, TRUE or FALSE, text, and error values are skipped.
  • COUNTA counts cells that are not empty. Microsoft is specific that this includes error values and empty text (""), such as a formula that returns an empty string.
  • COUNTBLANK counts empty cells. Microsoft notes that cells with formulas returning "" are counted as blank, while cells containing zero are not.

Google's help pages describe the same behavior in Sheets: COUNTA counts text values "including zero-length strings and whitespace," and COUNTBLANK treats cells with no content and cells containing "" as blank.

COUNT vs COUNTA vs COUNTBLANK: why do totals differ?

Here is a small hours column in B2:B10:

Name (A) Hours (B) What is really in the cell
Ana 6 a number
Ben 7.5 a number
Cho nothing
Dev sick text
Eli 8 the digit 8 stored as text
Fay a formula returning ""
Gus 0 a number
Hal a single space
Ivy 4 a number

Fay's cell holds =IF(C7="","",C7), a common pattern that shows nothing until another cell is filled in. Hal's cell looks empty but contains one space character, the kind of thing that arrives when data is pasted from another system.

Entered in Excel, the three functions return:

=COUNT(B2:B10)
=COUNTA(B2:B10)
=COUNTBLANK(B2:B10)
  • COUNT: 4. Only Ana, Ben, Gus and Ivy have real numbers. The 0 counts, because zero is a number. Eli's 8 does not, because it is text.
  • COUNTA: 8. Every cell except Cho's has something in it, including Dev's text, Fay's empty-text formula and Hal's space.
  • COUNTBLANK: 2. Cho's empty cell and Fay's formula. Hal's space is not blank.

Add the last two together and you get 10, from a range of only 9 cells (=ROWS(B2:B10) returns 9). Fay's cell is counted by both COUNTA and COUNTBLANK, as both help pages describe. If you build a check like "filled plus blank should equal total rows," a formula returning "" will quietly break it.

Why COUNT is lower than you expect

When COUNT is lower than the number of values you can see, something in the column is not a number. In this sheet, the difference is useful:

=COUNTA(B2:B10)-COUNT(B2:B10)

This returns 4: the non-numeric entries Dev, Eli, Fay and Hal. It is a quick way to find out whether a column you plan to total has text mixed in.

Microsoft's COUNT page adds one twist. Values typed directly into the formula are treated differently from values in cells. =COUNT("1",TRUE) returns 2, because a number in quotes and a logical value are counted when you type them as arguments, even though the same values sitting in cells would be ignored.

Which one to use

You want to count Use
Numbers and dates only COUNT
Anything that is not truly empty COUNTA
Empty cells, including formulas that show "" COUNTBLANK

When two counts disagree, do not assume one is wrong. Click the odd cells and look at the formula bar: a space, a text number, or an empty-text formula is almost always the reason.

If the column should accept only specific entries, a drop-down list in Excel or Google Sheets can reduce inconsistent text values before you count them.

Frequently asked questions

What is the difference between COUNT and COUNTA? COUNT counts only cells with numbers. COUNTA counts every cell that is not empty, including text.

Does COUNT vs COUNTA work the same in Google Sheets? Mostly. Google's COUNTA page says it counts text including zero-length strings and whitespace, and points to COUNT for numeric values only. Google's COUNTBLANK page treats cells with no content and cells containing "" as blank, as Microsoft's does.

Sources

  1. Microsoft Support, COUNT function
  2. Microsoft Support, COUNTA function
  3. Microsoft Support, COUNTBLANK function
  4. Google Docs Editors Help, COUNTA
  5. Google Docs Editors Help, COUNTBLANK

About this guide

Howlane operator · Checked against the official sources listed above. It is general information, not professional advice.

AboutEditorial standardsCorrectionsReport an error

Edit history

  • Updated
  • Updated
  • Updated
  • Updated
  • Published