countif
Count cells in a range that meet a criterion.
Syntax
Section titled “Syntax”v = countif(range, criteria)Description
Section titled “Description”Counts cells in range matching criteria. Criteria can be a number, string, or comparison expression like '>5', '<>0', 'apple*' (with wildcards).
Examples
Section titled “Examples”countif(A1:A100, '>0')countif(B1:B50, 'apple*')