Count Rows That Meet Multiple Conditions
You need a count that depends on more than one thing at once — how many tasks are both assigned to Sales and overdue, or how many orders from one region shipped late.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
COUNTIFS counts rows where every condition is true at the same time. Here it counts rows where column A says Sales and column C says Overdue. Conditions come in pairs — a range, then the value it must match — and you can add up to 127 pairs. Text matching ignores case, and you can use comparison operators in quotes, like ">100" or "<"&TODAY() for dates before today.
When to use it
Use COUNTIFS whenever a count has an "and" in it: status and department, region and month, score above X and below Y.
Common mistakes
Did this formula help?
Engine-verified against the sample data aboveLast reviewed 2026-07-08