Skip to content

sumif

Sum cells in a range that meet a criterion.

v = sumif(range, criteria, sum_range)

Sums cells in sum_range (or range if omitted) where the corresponding range cell matches criteria. criteria is a string like '>10', 'apple*', etc.

sumif(A1:A100, '>0') % sum of positive values
  • sumifs — Sum cells meeting multiple criteria.
  • averageif — Mean of numbers in a range that meet a criterion.
  • countif — Count cells in a range that meet a criterion.