ProofDrill

COUNTIF

Counts the cells that meet one condition.

Worked example

How many trains were over ten minutes late?

C2=COUNTIF(B2:B5,">10")

RowABC
1TrainMinutes lateOver ten
2T-4042
3T-4118
4T-420
5T-4325

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.
Free with a free account

Try COUNTIF yourself

Real tasks in a spreadsheet, checked on changed data. A free account saves your work and checks your answers.

Practise it free

Watch out for

  • To compare with a cell, join them: ">"&E2.
  • Upper and lower case are treated as the same.

Practise it