Google Sheets
COUNTIF function in Google Sheets
Returns a conditional count across a range.
=COUNTIF(criteria_column, criterion)COUNTIF syntax and parameters
Two arguments, two required.
- criteria_columnrangeRequired
The data column that is tested against `criterion`.
- criterionanyRequired
The pattern or test to apply to `column`.
COUNTIF examples
Formulas you'll actually reuse.
How many orders came from the West region:
=COUNTIF(A2:A200, "West")Result
47Deals above the average — build the criterion with &:
=COUNTIF(C2:C200, ">" & AVERAGE(C2:C200))Result
68
COUNTIF in Excel
Same name — your formula ports as-is.
Try COUNTIF in the playground
Edit the example — nothing to install.
Preloaded with the COUNTIF 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