COUNTA: count filled cells

Lesson 4 of 54

COUNT counts cells that contain numbers. COUNTA counts every cell that isn't empty, including text. COUNTBLANK counts the empty ones.

Some students skipped the quiz. In cell D2, write a formula that counts how many Scores were entered in column B (filled cells only).

D2
ABCD
1StudentScoreQuizzes taken
2Ana88
3Luis
4Marta95
5Jorge
6Sofia81
7Pablo77

Type in the formula bar above and press Enter to check.

Skip

How COUNT and COUNTA work

Syntax

=COUNT(range)    =COUNTA(range)    =COUNTBLANK(range)
COUNT
Numbers and dates only. Text and blanks are skipped.
COUNTA
Anything that isn't empty: numbers, text, errors, even a formula returning "".
COUNTBLANK
Empty cells in the range.

Example

Column C has invoice amounts, but some rows say "pending" instead of a number.

=COUNTA(C2:C100) - COUNT(C2:C100)

The number of rows that have something other than a number: here, the pending ones.

Common mistakes

  • Using COUNT on a column of names and getting 0.
  • COUNTA counting cells that look empty but hold a formula returning "" or a stray space.

Questions people ask

How do I count cells with specific text?

Use COUNTIF: =COUNTIF(C2:C100, "pending").

Practice it above: type the formula in the formula bar and press Enter to check.