SUM

adds numbers together · from excel · excel: verified match · sheets: verified match

signature

SUM(number…)

returns: number

argumentrequired
number… required

examples

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

fx =SUM(1,2,3) 6
A
1 10
2 20
3 30
4 40
5 50
fx =SUM(A1:A10) 150
ABC
1 102alpha
2 beta
3 gamma
4 delta
5 epsilon
fx =SUM(A1, B1, C1:C10) 12

errors

error values observed from the engine — each with a call that produces it.

errorproduced by
#REF! =SUM(Sheet2!A1:C3)*Sheet3!A2

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