COUNTIF
Counts the rows that meet one condition.
How it’s written
COUNTIF(range, condition)Example
| A | B | C | |
|---|---|---|---|
| 1 | Region | Rep | Sales |
| 2 | North | Amara | 400 |
| 3 | South | Ben | 250 |
| 4 | North | Chloe | 150 |
| 5 | West | Dev | 700 |
=COUNTIF(A2:A5,"North")Result: 2
Two rows have the region North.
Try it yourself
Open a live sheet with this example, and type the formula yourself. It takes a moment to load.
Worth knowing
To compare against a cell, join it on: ">"&F2.
Practice it properly
Counts with conditions gives you real tasks, with your formulas tested on data you haven’t seen.