SUM
adds numbers together · from excel · excel: verified match · sheets: verified match
signature
SUM(number…)
returns: number
| argument | required |
|---|---|
| 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 | A | B | C | |
|---|---|---|---|
| 1 | 10 | 2 | alpha |
| 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.
| error | produced by |
|---|---|
| #REF! | =SUM(Sheet2!A1:C3)*Sheet3!A2 |