Excel SUM function: adding numbers, AutoSum and common traps
How to total a column, a row and several ranges with SUM in Excel: AutoSum and Alt+=, running totals, and the numbers-stored-as-text trap — with examples.
SUM is the most used function in Excel. It adds up every number in the cells you give it: daily sales, the monthly payroll, the value of stock in a warehouse.
Why not =B2+B3+B4+B5+B6? You can’t add 500 rows by hand, a single text cell in a + chain returns #VALUE!, while SUM simply skips it. And if you insert a row inside the range, SUM picks it up automatically.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Sales | ||
| 2 | Bread | 480 000 | ||
| 3 | Milk | 1 250 000 | ||
| 4 | Rice | 2 340 000 | ||
| 5 | Oil | 1 870 000 | ||
| 6 | Sugar | 960 000 | ||
| 7 | Total | 6 900 000 | ||
| 8 |
=СУММ(B2:B6) in B7 adds up sales of five products: 6,900,000 soumsSyntax
=СУММ(number1; [number2]; ...)
- number1 — required: a number, a cell (
B2) or a range (B2:B6). - number2, ... — optional: up to 254 more numbers, cells or ranges, separated by commas.
Text, empty cells and TRUE/FALSE inside a range are ignored — only numbers are added. In some regional versions of Excel the separator is a semicolon: =СУММ(B2:B6;D2:D6).
Example
Formula:
=SUM(B2:C3)→ result: 43,900,000 — two branches over two months
Entering SUM — 3 ways
1
AutoSum (fastest). Select the empty cell below the column (B7) and click Автосумма on the Главная tab, or press Alt + =. Excel finds the numbers above and shows them with a moving border.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Sales | ||
| 2 | Bread | 480 000 | ||
| 3 | Milk | 1 250 000 | ||
| 4 | Rice | 2 340 000 | ||
| 5 | Oil | 1 870 000 | ||
| 6 | Sugar | 960 000 | ||
| 7 | Total | 6 900 0001 | ||
| 8 |
2
Check that the border covers the right range. If not, select the correct cells with the mouse and press Enter.
3
From the Formulas tab. Формулы → Математические → SUM. In the Function Arguments window type the range into Number1 — the result appears at the bottom of the window right away.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Sales | ||
| 2 | Bread | 480 000 | ||
| 3 | Milk | 1 250 000 | ||
| 4 | Rice | 2 340 000 | ||
| 5 | Oil | 1 870 000 | ||
| 6 | Sugar | 960 000 | ||
| 7 | Total | |||
| 8 |
4
By typing. Type =СУММ( into the cell, select B2:B6 with the mouse, close the bracket and press Enter. Even if you forget the closing bracket, Excel adds it for you.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Employee | Salary | Bonus | Total | |
| 2 | Aziz | 6 500 000 | 800 000 | 7 300 000 | |
| 3 | Dilnoza | 7 200 000 | 1 100 000 | 8 300 000 | |
| 4 | Javohir | 5 800 000 | 600 000 | 6 400 000 | |
| 5 | Payroll | 19 500 000 | 2 500 000 | 22 000 000 | |
| 6 |
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Day | Income | Running total | |
| 2 | 01.01.2026 | 1 500 000 | 1 500 000 | |
| 3 | 02.01.2026 | 2 300 000 | 3 800 000 | |
| 4 | 03.01.2026 | 900 000 | 4 700 0002 | |
| 5 | 04.01.2026 | 3 100 000 | 7 800 000 | |
| 6 | 05.01.2026 | 1 750 000 | 9 550 000 | |
| 7 |
$B$2 is locked while B4 moves as you fill down — each row sums from the start to that day| A | B | C | D | E | |
|---|---|---|---|---|---|
| 1 | Product | Qty | Price | Returned | |
| 2 | Tea | 40 | 18 000 | 3 | |
| 3 | Coffee | 25 | 65 000 | 1 | |
| 4 | Sugar | 60 | 14 000 | 5 | |
| 5 | |||||
| 6 | Tea + Sugar | 100 | |||
| 7 | Two columns | 134 | |||
| 8 |
=СУММ(B2:B4;D2:D4) adds two columns together (125 + 9 = 134), while =СУММ(B2;B4) adds just two chosen cells (100)Pro level: beyond plain SUM
- Whole column:
=СУММ(B:B)includes new rows too. Just don’t put the formula in that same column. - With a condition: for “Tashkent only” or “only above 1 million” use
=СУММЕСЛИ(A2:A10;"Tashkent";B2:B10), not SUM. - Quantity × price in one formula:
=СУММПРОИЗВ(B2:B4;C2:C4)multiplies each row and adds the results — no helper column. - Several sheets:
=СУММ(January:March!B7)adds B7 on the January, February and March sheets (a 3D sum). - Accounting precision:
=ОКРУГЛ(СУММ(B2:B6);0)rounds the total to whole soums so the displayed and stored values match.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Product | Qty | Price | |
| 2 | Tea | 40 | 18 000 | |
| 3 | Coffee | 25 | 65 000 | |
| 4 | Sugar | 60 | 14 000 | |
| 5 | Grand total | 3 185 000 | ||
| 6 |
=СУММПРОИЗВ(B2:B4;C2:C4) = 40×18,000 + 25×65,000 + 60×14,000 = 3,185,000 — no helper columnTry it in the simulator
Type =СУММ(B2:B6) in B7 and press Enter. Then select C7 and add the second column’s total with Alt + = or Автосумма. Results: 6,900,000 and 7,450,000.
| A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 1 | Product | January | February | |||||||||||||||||||||
| 2 | Bread | 480000 | 520000 | |||||||||||||||||||||
| 3 | Milk | 1250000 | 1300000 | |||||||||||||||||||||
| 4 | Rice | 2340000 | 2500000 | |||||||||||||||||||||
| 5 | Oil | 1870000 | 2010000 | |||||||||||||||||||||
| 6 | Sugar | 960000 | 1120000 | |||||||||||||||||||||
| 7 | Total | |||||||||||||||||||||||
| 8 | ||||||||||||||||||||||||
| 9 | ||||||||||||||||||||||||
| 10 | ||||||||||||||||||||||||
| 11 |
Has ExcelLab been useful?
Support the project and help us release new lessons and exercises.