COUNT and COUNTA

Counting · About 4 minutes

COUNT and COUNTA

Counting is different from adding. =SUM(B2:B7) adds the amounts. =COUNT(B2:B7) tells you how many cells hold a number.

Exercise 1 of 3 · Worked example

In B9, count how many students have paid an amount. Type =COUNT(B2:B7) and press Enter.

AB
1StudentFee paid ($)
2Aarav45
3DiyaPending
4Kabir45
5Meera
6Rohan30
7SanaPending
8
9Paid (answer cell)

Questions people ask

What is the difference between COUNT and COUNTA?

COUNT counts cells that hold numbers, dates included. COUNTA counts every cell that isn't empty: numbers, text, TRUE or FALSE, and errors.

Does COUNTA count blank cells?

No, empty cells are skipped. A cell that only looks empty, such as one with a space or a formula showing "", is counted.

Does COUNT count dates?

Yes. Dates are stored as numbers, so COUNT includes them.

Why does COUNT return 0?

The cells hold text, not numbers. Words like "Pending" and numbers pasted as text are skipped. COUNTA counts them.

Theme