What you will learn
- Count cells with numbers
- Count cells that are not empty
- Count empty cells
How it works
COUNTcounts only numbers.COUNTAcounts anything that is not empty, like words and numbers.COUNTBLANKcounts empty cells.
Formulas at a glance
=COUNT(B2:B7) | numbers |
=COUNTA(B2:B7) | not empty |
=COUNTBLANK(B2:B7) | empty |
Example
Write the formula to count how many Quiz 1 scores are numbers.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Name | Quiz 1 | Quiz 2 | |
| 2 | Ana | 8 | 9 | Q1 numbers |
| 3 | Ben | absent | 7 | Q1 filled |
| 4 | Cleo | 9 | Q1 empty | |
| 5 | Dev | absent | ||
| 6 | Eli | 7 | Q2 numbers | |
| 7 | Fay | 10 | 8 | Q2 empty |
Click E2 and type =COUNT(B2:B7), then press Enter.
The answer is 4.
When to use it
- How many scores or prices are entered
- How many names are on a list
- How many answers are still missing
Common mistakes
- Using COUNT on a list of namesCOUNT only counts numbers. Use COUNTA for words.
- Counting the headerStart the range below the header row.
- A cell with a space looks emptyCOUNTA counts it. Clear the cell instead of typing a space.
Practice it on a real sheet
Reading is a start. Doing it is how it sticks. This lesson walks you through every click on a live spreadsheet and checks each answer.