How to Use COUNTIFS in Excel: Count with Multiple Criteria

COUNTIFS in Excel formula tutorial illustration

What is COUNTIFS in Excel?

COUNTIFS counts rows that satisfy two or more criteria. It is useful for order tracking, attendance and sales reporting.

COUNTIFS syntax

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

Practice dataset

Enter the following sample values in cells A1 onward. Keep text and numerical data types consistent.

Region Product Status
East Laptop Sold
West Laptop Pending
East Phone Sold
North Laptop Sold
East Laptop Pending
South Tablet Sold
East Laptop Sold

Example 1: Count East-region laptops

=COUNTIFS(A2:A8,"East",B2:B8,"Laptop")

Expected result: 3. Rows 2, 6 and 8 match both conditions.

Example 2: Count sold laptops

=COUNTIFS(B2:B8,"Laptop",C2:C8,"Sold")

Expected result: 2. Rows 2 and 8 qualify.

Example 3: Count East-region sold items

=COUNTIFS(A2:A8,"East",C2:C8,"Sold")

Expected result: 3. Rows 2, 4 and 8 qualify.

Example 4: Count with a cell criterion

=COUNTIFS(A2:A8,E2,B2:B8,F2)

Expected result: Depends on E2 and F2. Enter East in E2 and Laptop in F2 to get 3.

Common COUNTIFS mistakes

  • Criteria ranges must have the same dimensions.
  • COUNTIFS combines criteria with AND; use separate COUNTIFS expressions for OR.
  • Extra spaces or inconsistent data types may prevent a match.

Practice exercises

Recreate the table in Excel, enter the formulas above and change one criterion or input cell. Check which rows qualify and confirm the result manually. Then intentionally enter a missing value to test error handling.

Frequently asked questions

Does COUNTIFS count blank cells?

Yes. You can use a blank criterion such as an empty string, depending on the condition.

Can COUNTIFS use wildcards?

Yes: * matches multiple characters and ? matches a single character.

Continue learning

Visit the Excel Functions module and our XLOOKUP tutorial for related guides.

External reference: Microsoft Support — COUNTIFS documentation.