COUNTIF

Counts the rows that meet one condition.

How it’s written

COUNTIF(range, condition)

Example

ABC
1RegionRepSales
2NorthAmara400
3SouthBen250
4NorthChloe150
5WestDev700
=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.

Start the lesson

Guides that use COUNTIF

Related functions