ReferenceFunctionsMath Functions
COUNTIF
COUNTIF: Counts cells in a range that satisfy a single criterion.
Summary
COUNTIF evaluates each candidate cell against one criteria expression.
Remarks
- Criteria support numeric comparisons and wildcard text matching.
- Matching is case-insensitive for text criteria.
- Non-matching or blank cells are not counted.
Examples
Count numbers greater than 10
Grid
| Cell | Value | |
|---|---|---|
Formula
=
Result
Not evaluated yet.
Expected
2
Count text with wildcard
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
2
Exact-match criterion
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
2
Related functions
FAQ
Is COUNTIF text matching case-sensitive?
No. Text criteria matching is case-insensitive.
Can COUNTIF evaluate wildcard criteria?
Yes. Criteria expressions support wildcard patterns for text.
Runtime metadata
Category
Math
Signature
COUNTIF(arg1, arg2, ... argN: Any)This function accepts a repeating argument pattern (min args: 2).
Arity
min 2, max 1
Arguments
arg1Any · Scalar
Caps
PUREREDUCTIONWINDOWEDSTREAM_OKPARALLEL_ARGSPARALLEL_CHUNKS
Source