Google Sheets SUM function
Adds up numbers, cells or whole ranges.
Syntax
=SUM(value1, [value2, ...])
value1 | The first number, cell or range to add. |
|---|---|
value2, ... | Optional. More numbers, cells or ranges. |
Try it
Edit the formula and the result updates instantly. Click a cell to add its reference.
Q1 sales
Result: 2385
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Rep | Region | Product | Units | Revenue |
| 2 | Ana | East | Pens | 120 | 240 |
| 3 | Ben | West | Paper | 80 | 400 |
| 4 | Cara | East | Paper | 45 | 225 |
| 5 | Dev | North | Pens | 200 | 400 |
| 6 | Ana | East | Ink | 30 | 450 |
| 7 | Ben | West | Pens | 95 | 190 |
| 8 | Cara | East | Ink | 12 | 180 |
| 9 | Dev | North | Paper | 60 | 300 |
Examples
These use the sample sheet above.
→ 2385
Total revenue for the quarter.
→ 245
Units sold in the first three rows.
→ 1040
Separate ranges and cells can be mixed, separated by commas.
Tips & common mistakes
- SUM skips text and blank cells, so a header row inside the range won't cause an error.
- Numbers stored as text (often left-aligned after an import) are skipped too. If a total looks too small, check for those.
- Select a range and look at the bottom-right of Google Sheets to see its sum without writing a formula.