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.