COUNTIF
Counts the cells that meet one condition.
- Add and count by condition
- Practised in 3 lessons
Worked example
C2=COUNTIF(B2:B5,">10")
| Row | A | B | C |
|---|---|---|---|
| 1 | Train | Minutes late | Over ten |
| 2 | T-40 | 4 | 2 |
| 3 | T-41 | 18 | |
| 4 | T-42 | 0 | |
| 5 | T-43 | 25 |
The comparison goes inside the quotes with the number.
How to write it
=COUNTIF(range, criteria)
range- The cells to test.
criteria- What to match, such as "Late", ">100" or a cell.
Try COUNTIF yourself
Real tasks in a spreadsheet, checked on changed data. A free account saves your work and checks your answers.
Practise it freeWatch out for
- To compare with a cell, join them: ">"&E2.
- Upper and lower case are treated as the same.