Excel Function

COUNTIFS

Counts cells matching multiple conditions.

COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2], ...)

Arguments

criteria_range1

Required

Specify the range for the first condition.

criteria1

Required

Enter the match condition for criteria1.

criteria_range2

Optional

Specify the range where criteria_range2 is evaluated.

criteria2

Optional

Enter the match condition for criteria2.

Practice Preview

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.

Example Table

#
AProduct ID
BProduct Name
CCategory
DSales
2P001AppleFood1200
3P002BananaFood980
4P003NotebookStationery450
5P004PenStationery300
6P005GrapesFood1500
7P006RulerStationery250
8P007PeachFood860

How to Use (Formula)

=COUNTIFS(C2:C8, "Food", D2:D8, ">=1000")

Result

2

Practice This Function

COUNTIFS FAQ

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.

Where can I practice COUNTIFS?

Use the "Start Function Practice" button to jump straight into COUNTIFS drills.

What arguments does COUNTIFS use?

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.