ReferenceFunctionsMath Functions
COUNTIFS
COUNTIFS: Counts cells that satisfy all supplied criteria pairs.
Summary
COUNTIFS applies each (criteria_range, criteria) pair and counts rows where all tests pass.
Remarks
- Requires one or more criteria pairs.
- Criteria support operators and wildcard matching.
- A row contributes to the result only when every criterion evaluates true.
Examples
Count rows matching two filters
Grid
| Cell | Value | |
|---|---|---|
Formula
=
Result
Not evaluated yet.
Expected
1
Wildcard text matching
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
2
No rows meeting all criteria
Grid
| Cell | Value | |
|---|---|---|
| No inputs on Sheet1. | ||
Formula
=
Result
Not evaluated yet.
Expected
0
Related functions
FAQ
Why can COUNTIFS return 0 even when one criterion matches rows?
Each row must satisfy every criterion pair; partial matches are excluded.
Does COUNTIFS require at least one criteria pair?
Yes. It expects arguments in (range, criteria) pairs.
Runtime metadata
Category
Math
Signature
COUNTIFS(arg1, arg2, ... argN: Any)This function accepts a repeating argument pattern (min args: 2).
Arity
min 2, max variadic
Arguments
arg1Any · Scalar
Caps
PUREREDUCTIONWINDOWEDSTREAM_OKPARALLEL_ARGSPARALLEL_CHUNKS
Source