Mathmedium
COUNTIFS()
Returns the count of a range depending on multiple criteria.
Syntax
fx
=COUNTIFS(criteria_range1, criterion1, ...)
Try it
F2
→
7
Sample data · sales.csv
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Company | Region | Quarter | Revenue |
| 2 | Acme Co | West | Q1 | 18,400 |
| 3 | Acme Co | West | Q2 | 22,100 |
| 4 | Acme Co | West | Q3 | 31,700 |
| 5 | Acme Co | West | Q4 | 48,200 |
| 6 | Globex | East | Q1 | 14,200 |
| 7 | Globex | East | Q2 | 19,800 |
| 8 | Globex | East | Q3 | 23,400 |
Common pitfalls
- All criteria ranges must be the same size. Mismatched ranges return
#VALUE!. - Conditions are AND-ed together. There's no built-in OR; sum two
COUNTIFScalls instead. - Wildcards work the same as
COUNTIF:*for anything,?for one char,~to escape.
Related formulas
Used by