Add numbers with SUM
Add a column of sales with SUM. In a Swedish spreadsheet the same function is SUMMA, and the separator between arguments changes with the locale.
FormulasBeginner8 minExcel · Google Sheets
Example content. The numbers are fictional and made for learning.
Goal
Add a column of amounts with one formula that still works when a number changes.
Why this is useful
A sales list, a budget, and an invoice log all depend on the same move: total a column without typing the result by hand.
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) |
Steps
1. Put each amount on its own row
Use column A for the name and column B for the amount. Leave the next cell under the amounts empty. That cell is where the total will go.
2. Start the formula with =
Select the empty total cell and type =. Then type the SUM function in the language of your spreadsheet. English uses SUM. Swedish uses SUMMA. The language list under the steps shows more names.
3. Cover every amount
Select cells B2 through B4, or type that range. A range is the first cell, a colon, and the last cell: B2:B4. The colon is the same in the languages listed here.
4. Close it and check the result
Type the closing parenthesis and press Enter. The sample amounts add up to 4,450. If your spreadsheet uses a comma as the decimal sign, the total is written with a comma instead of a period.
5. Change one amount
Edit a number in column B. The total should change with it. If the total stays still, the cell contains a typed number instead of a formula.
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 the column.
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)
Add the workshop and the consulting fee, and skip the row between them. This is the formula that shows the argument separator.
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)
Add the cells one by one. Cell names do not change between languages.
English (United States)
Decimals look like 1.5. Arguments are separated with ,.
=B2+B3+B4Swedish (Sweden)
Decimals look like 1,5. Arguments are separated with ;.
=B2+B3+B4German (Germany)
Decimals look like 1,5. Arguments are separated with ;.
=B2+B3+B4French (France)
Decimals look like 1,5. Arguments are separated with ;.
=B2+B3+B4Spanish (Spain)
Decimals look like 1,5. Arguments are separated with ;.
=B2+B3+B4Spanish (Mexico)
Decimals look like 1.5. Arguments are separated with ,.
=B2+B3+B4Portuguese (Brazil)
Decimals look like 1,5. Arguments are separated with ;.
=B2+B3+B4Italian (Italy)
Decimals look like 1,5. Arguments are separated with ;.
=B2+B3+B4Dutch (Netherlands)
Decimals look like 1,5. Arguments are separated with ;.
=B2+B3+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
- The steps are the same in current Excel and Google Sheets: type the formula in the cell and press Enter.
- Excel shows function names in the language of your Excel installation.
- In Google Sheets, names and separators follow the spreadsheet locale. Open File, then Settings, then General, and check Locale.
- A range uses a colon in these locales, as in B2:B4.
- A downloaded workbook stores formulas in Excel’s standard English form. Excel and Google Sheets display them in the spreadsheet language after you open or import the file.
If something goes wrong
The total is short by one row.
The range stops too early. Extend it so the last amount, B4, is included.
The function name is rejected, or the cell shows the formula as text.
The name may belong to another spreadsheet language. Swedish uses SUMMA, German uses SUMME, French uses SOMME, and Spanish uses SUMA. Retype the name your spreadsheet offers.
Excel or Sheets complains about the comma or the semicolon.
Locales that write decimals with a comma usually separate arguments with a semicolon. The English formula =SUM(B2,B4) is =SUMMA(B2;B4) in Swedish.
A circular-reference warning appears.
The range includes the total cell. End the range on the last amount, not on the total.
One amount is ignored.
The cell may be text. Retype it as a number, and keep the currency code in a separate cell.