How do I use COUNTIFS in Excel?
Use COUNTIFS when you want to count results with multiple conditions. Enter Criteria range 1, Criteria 1, Criteria range 2 in that order, then add optional arguments when needed.
Counts cells matching multiple conditions.
COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...)criteria_range1
RequiredSpecify the range for the first condition.
criteria1
RequiredEnter the match condition for criteria1.
criteria_range2
OptionalSpecify the range where criteria_range2 is evaluated.
criteria2
OptionalEnter the match condition for criteria2.
Use COUNTIFS to count rows where Category matches Food and where Sales matches >=1000. You can set ranges by dragging from the start cell to the end cell in the same argument field.
| # | AProduct ID | BProduct Name | CCategory | DSales |
|---|---|---|---|---|
| 2 | P001 | Apple | Food | 1200 |
| 3 | P002 | Banana | Food | 980 |
| 4 | P003 | Notebook | Stationery | 450 |
| 5 | P004 | Pen | Stationery | 300 |
| 6 | P005 | Grapes | Food | 1500 |
| 7 | P006 | Ruler | Stationery | 250 |
| 8 | P007 | Peach | Food | 860 |
How to Use (Formula)
=COUNTIFS(C2:C8, "Food", D2:D8, ">=1000")Result
2
Use COUNTIFS when you want to count results with multiple conditions. Enter Criteria range 1, Criteria 1, Criteria range 2 in that order, then add optional arguments when needed.
Use the "Start Function Practice" button to jump straight into COUNTIFS drills.
The main arguments are Criteria range 1, Criteria 1, Criteria range 2, Criteria 2. Start with the required ones, then add optional arguments if needed.