COUNTIFS with Multiple Criteria — Count Rows That Match 2+ Conditions | SheetMaster
Counts cells that meet multiple criteria. Essential for data analysis with complex conditions.
Master COUNTIFS: Count with Multiple Conditions
The COUNTIFS function counts rows that meet multiple criteria across different columns. It is the multi-condition version of COUNTIF and one of the most versatile functions for data analysis in Excel and Google Sheets.
COUNTIF vs COUNTIFS: What is the difference?
COUNTIF handles one condition only. COUNTIFS handles two or more conditions simultaneously. Every condition is connected by AND logic—all conditions must be true for a row to be counted.
| Feature | COUNTIF | COUNTIFS |
|---|---|---|
| Conditions | Single condition | Multiple conditions (AND) |
| Syntax | =COUNTIF(range, criteria) | =COUNTIFS(range1, criteria1, range2, criteria2) |
| OR Logic | Not supported natively | Requires multiple formulas |
Real-World Examples
- Sales Reporting: Count orders where region = "East" AND amount > $500.
- HR Analytics: Count employees in department "Engineering" with tenure > 3 years.
- Inventory: Count products in category "Electronics" where stock < 10 (needs restocking).
- Date Range: Count transactions between Jan 1 and Mar 31, 2026.
Working with Date Ranges
To count rows where a date falls within a specific range, use two conditions on the same date column:
=COUNTIFS(A:A, ">="&DATE(2026,1,1), A:A, "<="&DATE(2026,3,31))
Important: All criteria ranges must be the same size. If range1 is A1:A100, range2 must also be 100 rows. Mismatched sizes cause incorrect counts.
Common Errors & Fixes
COUNTIFS returns 0 or unexpected count
Causes:- Criteria ranges have different lengths.
- Text criteria not in quotes; number criteria wrong format.
Fixes:- Use identical range sizes: A1:A100, B1:B100.
- Use "Completed", ">100", "="&A1 for text, number, and cell reference.
Frequently Asked Questions
COUNTIFS with multiple criteria — how does it work?
Why does COUNTIFS return 0?
COUNTIFS ranges must be same size — what happens if they're not?
Can COUNTIFS count with OR logic?
How do I count rows where one column is blank and another is not?
What is the difference between COUNTIF and COUNTIFS?
Want to become an Excel Pro?
Stop searching for formulas. Master Excel in 30 days with this top-rated course.
Learn More