Skip to content
Blog/Excel
Excel

Excel COUNTA vs COUNT

COUNT counts numbers. COUNTA counts non-empty cells. Learn when to use each one, where they differ, and the mistakes that distort spreadsheet totals.

Do this with AI

Try Griddy free

Start in your browser. Also works with Excel and Google Sheets.

By Justin Freels//5 min read

COUNT and COUNTA both count cells, but they answer different questions. COUNT counts numeric values. COUNTA counts cells that are not empty.

That difference matters in trackers, CRM lists, invoice logs, and budget reviews where a column may contain dates, text statuses, blanks, notes, or dollar amounts.

The syntax

fx
=COUNT(value1, [value2], ...)
fx
=COUNTA(value1, [value2], ...)
  • value1 — the first range or value to count
  • [value2] — optional additional ranges or values

Use COUNT when the question is "how many numbers are here?" Use COUNTA when the question is "how many cells have anything in them?"

Basic example

If A2:A20 contains invoice numbers, some numeric and some text-based:

fx
=COUNTA(A2:A20)

That counts every filled invoice number.

If D2:D20 contains invoice amounts:

fx
=COUNT(D2:D20)

That counts only rows with numeric amounts.

Step-by-step invoice log example

Say you have an invoice template log where column A is invoice ID, column B is client, column C is issue date, and column D is amount.

Step 1. Count invoices entered:

fx
=COUNTA(A2:A200)

Step 2. Count amount cells that contain numbers:

fx
=COUNT(D2:D200)

Step 3. Compare the two results.

If COUNTA returns 87 and COUNT returns 84, the counts differ by three. Check the rows before concluding why: an amount might be blank, entered as text, or attached to a row without an invoice ID. The difference alone does not identify three specific bad invoices.

For a small log, inspect the values directly:

Invoice IDAmount cellCOUNT includes amount?COUNTA includes ID?
INV-101125YesYes
INV-102pendingNoYes
INV-103blankNoYes
INV-1040YesYes

Here, =COUNTA(A2:A5) returns 4 and =COUNT(D2:D5) returns 2. Zero is a number, so COUNT includes it. The difference points to rows worth reviewing, but you still need to inspect the amount cells to distinguish missing amounts from text entries.

Where COUNT works better

Use COUNT for numeric fields:

  • invoice amounts
  • transaction amounts
  • quantities
  • rates
  • dates stored as real Excel dates
  • scores or percentages

Excel stores real dates as numeric serials, so COUNT includes them. COUNT does not verify that a number represents a valid date, and changing the display format of date-looking text does not turn it into a numeric date.

Where COUNTA works better

Use COUNTA for fields that can contain text:

  • client names
  • invoice IDs
  • task owners
  • CRM stages
  • categories
  • notes

COUNTA is also useful in a budget tracker or expense tracker when you need to know how many rows have been filled in at all.

WATCH OUT

COUNTA counts formulas that return an empty string, such as ="", because the cell is not truly empty. A cell containing only spaces also counts. Inspect or clean blank-looking invoice IDs before treating this as a record count.

Common COUNT and COUNTA mistakes

MistakeWhat happensFix
Using COUNT on a text ID columnFilled rows are missedUse COUNTA
Using COUNTA on a formula columnBlank-looking formulas still countCount a source column or use COUNTBLANK checks
Counting an entire column in a messy workbookOld notes or stray values inflate the resultLimit the range to the table
Assuming dates are textReal Excel dates count with COUNTCheck the underlying value; date-looking text does not become a date just by changing its format

Which one should you use?

If the column should contain numbers, dates, or amounts, start with COUNT.

If the column is a record identifier, status, name, owner, or text field, start with COUNTA.

For data quality checks, use both. COUNTA can count filled record IDs, while COUNT can count numeric amount cells. Neither function proves that an amount is correct or meets your business rules; a negative value and a zero still count as numbers.

Test the column before choosing the function

Take a small sample from the actual column and classify its values: numeric amounts, dates, text IDs, blank cells, and formulas that return "". COUNT is appropriate for numeric values and real Excel dates; COUNTA counts any value Excel considers present, including text and formulas that return an empty string. If the column mixes valid and invalid entries, report both counts so the user can see data quality rather than only a total.

Sources

The Griddy way

Counting records is simple until the sheet mixes text IDs, blank-looking formulas, date serials, and missing amounts.

"Count how many invoices are entered, then show how many are missing valid dollar amounts"

Griddy can choose the right COUNT or COUNTA pattern for each column and add the audit checks directly to your spreadsheet.

Do this with AI

Turn the instructions into a finished spreadsheet.

Tell Griddy what you need in plain English, then inspect and keep editing the result in the browser, Excel, or Google Sheets.

Try Griddy freeStart in your browser. No download required.
Also works withExcel Google Sheets