SUM
Add the numbers in a range. SUM is the English name. Other spreadsheet languages use other names, and the character between arguments is not always a comma.
FunctionsBeginner4 minExcel · Google Sheets
Example content. The numbers are fictional and made for learning.
What it is for
SUM adds every number in the cells you give it. On the sample sales sheet, =SUM(B2:B4) adds Workshop, Online course, and Consulting. The total is 4,450. A typed total does not change when an amount changes. This formula does.
Example
| Row | A | B |
|---|---|---|
| 1 | Item | Amount |
| 2 | Workshop | 1,200 |
| 3 | Online course | 850 |
| 4 | Consulting | 2,400 |
| 5 | Total | 4,450=SUM(B2:B4) |
The formula in the highlighted row is the English reference form, not the spelling for every spreadsheet.
Parts of the English reference form
These pieces describe the English reference form. The list below shows the usual spelling for other regional settings.
=Starts a formula. Without it, the cell stores the characters as text and does not add anything.
SUMThe English name of the function that adds numbers. A Swedish spreadsheet uses SUMMA. The language list shows the other usual names. SUM is not the name in every spreadsheet.
B2:B4The range from B2 through B4. The colon means through in the locales listed on this page. Cell names such as B2 stay the same when the spreadsheet language changes.
( )Parentheses hold the cells SUM should add.
Formulas by language
Cell names such as B2 stay the same. The function name and the character between arguments follow the spreadsheet language. The English line in each list is the reference form used on this site, not a universal spelling. When the decimal sign is a comma, arguments are usually separated with a semicolon, because the comma is already used in numbers.
Add every amount in column B.
English (United States)
Decimals look like 1.5. Arguments are separated with ,.
=SUM(B2:B4)Swedish (Sweden)
Decimals look like 1,5. Arguments are separated with ;.
=SUMMA(B2:B4)German (Germany)
Decimals look like 1,5. Arguments are separated with ;.
=SUMME(B2:B4)French (France)
Decimals look like 1,5. Arguments are separated with ;.
=SOMME(B2:B4)Spanish (Spain)
Decimals look like 1,5. Arguments are separated with ;.
=SUMA(B2:B4)Spanish (Mexico)
Decimals look like 1.5. Arguments are separated with ,.
=SUMA(B2:B4)Portuguese (Brazil)
Decimals look like 1,5. Arguments are separated with ;.
=SOMA(B2:B4)Italian (Italy)
Decimals look like 1,5. Arguments are separated with ;.
=SOMMA(B2:B4)Dutch (Netherlands)
Decimals look like 1,5. Arguments are separated with ;.
=SOM(B2:B4)
The same spoken language can use different separators in different countries. Spanish in Spain often uses a comma for decimals and a semicolon between arguments. Spanish in Mexico often uses a period and a comma. If a formula is rejected, check the spreadsheet locale.
Excel and Google Sheets
- Current Excel and Google Sheets both add a range with this function, and the argument order is the same.
- Excel takes the function name from the language of the Excel installation. The character between arguments often follows the computer’s regional format, so an English function name can still be paired with a semicolon.
- Google Sheets takes the function name and the separator from the spreadsheet locale: File, then Settings, then General, then Locale.
- This example has one range, so it contains no argument separator. =SUM(B2,B4) is the English reference form for two separate cells. In many other locales that comma is a semicolon, as in the Swedish form =SUMMA(B2;B4). Mexican Spanish often keeps the comma.