Conditional function

Google Sheets COUNTIFS function

Counts the rows that meet several conditions at once.

Syntax

=COUNTIFS(criteria_range1, criterion1, [criteria_range2, criterion2, ...])
criteria_range1The first range to test.
criterion1The condition for the first range.
criteria_range2, criterion2, ...Optional. More range/condition pairs.

Try it

Edit the formula and the result updates instantly. Click a cell to add its reference.

▦ Q1 sales
fx
Result: 3
ABCDE
1RepRegionProductUnitsRevenue
2AnaEastPens120240
3BenWestPaper80400
4CaraEastPaper45225
5DevNorthPens200400
6AnaEastInk30450
7BenWestPens95190
8CaraEastInk12180
9DevNorthPaper60300

Examples

These use the sample sheet above.

→ 3

East sales worth more than $200.

→ 3

Use the same range twice for "between".

Tips & common mistakes

Related functions