COUNTIFS counts the rows where every condition is true — “how many West orders of at least $100,” “how many open tickets assigned to Ana.” Same idea as SUMIFS, but it counts rows instead of adding a column.
The example
The same sales log. How many West orders are $100 or more?
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Rep | Region | Product | Amount |
| 2 | Ana | West | Widget | $120 |
| 3 | Ben | East | Widget | $90 |
| 4 | Cy | West | Gadget | $60 |
| 5 | Dot | West | Widget | $200 |
| 6 | Eve | South | Widget | $75 |
| 7 | Fin | West | Gadget | $40 |
| 8 | West orders ≥ $100: | 2 |
The formula
The count is:
How it works
Each pair is a filter; COUNTIFS counts rows that survive all of them:
- Pair 1,
B2:B7, "West", keeps West rows (Ana, Cy, Dot, Fin). - Pair 2,
D2:D7, ">=100", keeps amounts of 100 or more. The>=goes inside quotes. - Both true only for Ana (120) and Dot (200) → count of
2.
Try it: interactive demo
Pick a region and minimum amount; watch the COUNTIFS update.
Variations
Count between two values
Two conditions on the same column give a range — amounts from $50 to $150:
Count with a wildcard
Count reps whose name starts with “A”:
Pitfalls & errors
Operators must be inside quotes. Write ">=100", not >=100. To compare against a cell, concatenate: ">="&G1.
Ranges must match in size. Every criteria range needs the same number of rows, or COUNTIFS returns #VALUE!.
COUNTIFS counts blanks as not-matching. Use "<>" to count non-blank cells, or "" to count blanks.
Practice workbook
Frequently asked questions
How do I count with multiple conditions in Excel?
How do I count values between two numbers?
Why is my COUNTIFS returning 0?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class