Google Sheets
COUNTIFS function in Google Sheets
Returns the count of a range depending on multiple criteria.
=COUNTIFS(criteria_column1, criterion1, criteria_column2, criterion2)COUNTIFS syntax and parameters
Four arguments, four required.
- criteria_column1rangeRequired
The data column to check against `criterion1`.
- criterion1anyRequired
The pattern or test to apply to `criteria_column1`.
- criteria_column2rangeRequired
Additional data column to check.
- criterion2anyRequired
Additional criteria to check.
COUNTIFS examples
Formulas you'll actually reuse.
West deals over $1,000 — all conditions must hold:
=COUNTIFS(A2:A200, "West", C2:C200, ">1000")Result
22Orders dated in July 2026 — two conditions on the same column bound a range:
=COUNTIFS(D2:D200, ">=" & DATE(2026, 7, 1), D2:D200, "<" & DATE(2026, 8, 1))Result
31
COUNTIFS in Excel
Same name — your formula ports as-is.
Try COUNTIFS in the playground
Edit the example — nothing to install.
Preloaded with the COUNTIFS formula from Example 1 — change anything and watch it respond.
Loading the editor…
Related functions
More ways Google Sheets gets this done.
- ABSReturns the absolute value of a number.MathExcel
- ACOSReturns the inverse cosine of a value, in radians.MathExcel
- ACOSHReturns the inverse hyperbolic cosine of a number.MathExcel
- ACOTReturns the inverse cotangent of a value, in radians. .MathExcel
- ACOTHReturns the inverse hyperbolic cotangent of a value, in radians. Must not be between -1 and 1, inclusive..MathExcel
- ASINReturns the inverse sine of a value, in radians.MathExcel