The SUM function
SUM is the function most people learn first: it adds everything you give it. Point it at a range like B2:B6 and it totals the column, however long it is.
You can mix ranges, single cells and typed numbers in one formula. Text and empty cells inside a range are skipped, so a stray heading won't break the total.
=SUM(number1, [number2], ...)
Arguments
- number1
- The first number, cell or range to add, such as
B2:B6. - number2, ...optional
- More numbers, cells or ranges to include. Separate each one with a comma.
Try it
=SUM(B2:B6) in E2. SUM adds the five daily takings from Monday to Friday, giving £1,001.50.
E2
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | Day | Takings | Tips | Week's takings | ||
| 2 | Mon | £184.50 | £12.00 | £1,001.50 | ||
| 3 | Tue | £162.00 | £8.50 | |||
| 4 | Wed | £205.75 | £15.00 | |||
| 5 | Thu | £198.25 | £10.00 | |||
| 6 | Fri | £251.00 | £22.50 | |||
| 7 | ||||||
| 8 |
Edit the formula in E2, or change the data, and press Enter.
More examples
| Formula | Result | What it does |
|---|---|---|
| =SUM(B2:B4) | £552.25 | A shorter range: Monday to Wednesday only. |
| =SUM(B2:B6,C2:C6) | £1,069.50 | Two ranges separated by a comma: takings plus tips. |
| =SUM(B2,B6) | £435.50 | A comma picks single cells, so this is just Monday and Friday, not the days in between. |
| =SUM(B2:B6,-50) | £951.50 | Typed numbers work too. Here a £50 till float is taken off the total. |
Tips
- Select the cell below a column and press Alt+= (Mac: Cmd+Shift+T) to insert a SUM of the numbers above.
- Use a whole column, like
=SUM(B:B), when rows keep being added. Just don't put the formula in column B itself. - To add only the rows that match a condition, such as one region or one category, use SUMIF or SUMIFS instead.
Common mistakes
- The total is too small, and one value looks fine but isn't counted.That number is stored as text (it's often left-aligned, or has a green triangle). Re-type it or convert the column to numbers; SUM skips text in a range.
- `=SUM(B2,B6)` gives a much smaller total than expected.A comma means "this cell and that cell". Use a colon,
B2:B6, for every cell between them. - A circular reference warning appears.The formula sits inside the range it adds, for example
=SUM(B2:B7)typed in B7. Move it, or end the range one row higher.
Practise SUM with instant feedback
Type real formulas into a working spreadsheet and get told straight away whether they work.