This page isn't translated yet, so its text is in English. Function names and formulas are shown in your Excel language.
Excel function · Adding up
SUM
Adds up numbers, cells and ranges.
What it does
SUM adds everything you give it: single cells, whole ranges or plain numbers. Text and empty cells inside a range are skipped, so a column with a header or a gap still adds up correctly.
Syntax
=SUM(number1, [number2], …)Arguments in square brackets are optional, and … means you can add more of the same. In this Excel language, arguments are separated by ,
Arguments
- number
- The first thing to add: a range such as
B2:B4, a single cell or a number. Add more arguments to put other ranges into the same total.
Example
A short trip has three costs. What does it cost in total?
| A | B | |
|---|---|---|
| 1 | Item | Cost |
| 2 | Train | 120 |
| 3 | Hotel | 240 |
| 4 | Food | 85 |
| 5 | Total | 445 |
The formula in B5:
=SUM(B2:B4)Result: 445
The range B2:B4 holds 120, 240 and 85, and 120 + 240 + 85 = 445. The header in row 1 and the label in A5 are outside the range, so they don't get in the way.
Common mistakes
- Including the total's own cell in the range, for example
=SUM(B2:B5)typed inB5. Excel warns about a circular reference instead of giving a total. - Numbers stored as text, often from pasted data, are skipped. If a total looks too small, check for values that sit on the left of their cells.
- Adding the cells one by one with
+and then inserting a row. A range likeB2:B4grows with inserted rows; a list of single cells doesn't.
In other Excel languages
Excel translates function names, and in some languages the argument separator too. Type the name your Excel shows.
| Excel language | Function name | Separator |
|---|---|---|
| English | SUM | , |
| Deutsch | SUMME | ; |
| Français | SOMME | ; |
| Español (España) | SUMA | ; |
| Español (México) | SUMA | , |
| 日本語 | SUM | , |
| 한국어 | SUM | , |
| 繁體中文 | SUM | , |
| ไทย | SUM | , |
| ខ្មែរ | SUM | , |
| Tiếng Việt | SUM | ; |