COUNT
The COUNT function counts how many cells in a range contain a number. It skips empty cells and text.
=COUNT(B2:B6)= how many cells have a number.
There’s also COUNTA, which counts cells with text too.
The difference between SUM and COUNT: SUM adds up the numbers, COUNT counts how many there are. If you have the votes 8, 5, 3, 2, 2, SUM is 20 and COUNT is 5.
The survey
-
On the
Surveysheet, you have snacks in A2 to A6 and votes in B2 to B6. -
Type
Total votesin A8 and=SUM(B2:B6)in B8. You’ll see 20. -
Type
Number of answersin A9 and=COUNT(B2:B6)in B9. You’ll see 5. -
Clear B6. COUNT shows 4. Then put the
2back.
Zero is a number too. COUNT counts it. An empty cell, it doesn’t.
How many subjects you have
On the Grades sheet, type Number of subjects in A11 and =COUNT(B2:B6) in B11. You’ll see 5.
轮到你了 💪
- On
Survey, you have the total votes and the number of answers. - On
Grades, you have the number of subjects. - You know the difference between SUM and COUNT.
Done when: you can count how many cells have a number.
What to take away from this lesson
- COUNT = how many cells have a number.
- COUNTA counts text too.
- Zero counts, an empty cell doesn’t.
- SUM adds up, COUNT counts how many.
© 2026 Ing. Martin Polak / AlgoRhino · 内容使用条款