SUMIF

sums cells that match a condition · from excel · excel: not yet compared · sheets: not yet compared

signature

SUMIF(range, criteria, [sum_range])

returns: number

argumentrequired
range required
criteria required
sum_range optional

examples

formula and result, taken from the engine's own test suite — every result below is asserted in CI, not written by hand.

A
1 10
2 20
3 30
fx =SUMIF(A1:A3, ">15") 50
AB
1 102
2 204
3 306
4 408
5 5010
fx =SUMIF(A1:A5, "apple", B1:B5) 0

related

  • ABS returns absolute value of a number
  • ACOS returns arccosine of a number
  • ACOSH returns inverse hyperbolic cosine
  • ACOT returns the arccotangent of a number
  • ACOTH returns the inverse hyperbolic cotangent
  • ADD adds two numbers — sheets exposes the + operator as a function