Skip to content

countif

Count cells in a range that meet a criterion.

v = countif(range, criteria)

Counts cells in range matching criteria. Criteria can be a number, string, or comparison expression like '>5', '<>0', 'apple*' (with wildcards).

countif(A1:A100, '>0')
countif(B1:B50, 'apple*')
  • countifs — Count cells meeting multiple criteria.
  • count — Count numeric values in the arguments.
  • averageif — Mean of numbers in a range that meet a criterion.
  • sumif — Sum cells in a range that meet a criterion.