Home  /  Blog  /  Math Basics
Math Basics

SUM Formula in Excel (How to Add Numbers, With Examples)

By admin 26 November 2026 Math Basics

You have a column of numbers — a month of expenses, a list of sales, a term of marks — and you need the total. You could add them on a calculator, but then the total would never update when a number changes. The SUM formula does it in one line, and it updates itself every time you change a number. It is the first formula most people learn in Excel, and the easiest: one word, one pair of brackets, and the cells you want to add. This guide gives you that formula first, then the one-keypress shortcut, then worked examples for a column, several ranges and a running total — plus the fixes for the three reasons a total comes out wrong.

Quick takeaway: SUM adds up numbers, cell references or ranges.

  • Formula: =SUM(A2:A10) — adds everything in A2 to A10.
  • Fastest way: click the empty cell below your numbers and press Alt+=.
  • SUM ignores text and empty cells. + does not — it breaks with #VALUE! if a cell holds text.
  • Use a range (A2:A10), not a long list of single cells — ranges update when you insert or delete rows.
SUM Formula in Excel (How to Add Numbers, With Examples)

What Is the SUM Formula in Excel?

The SUM formula is:

=SUM(number1, [number2], ...)
  • number1 is required. It can be a number, a cell (like A2), or a range (like A2:A10).
  • number2 and the rest are optional. You can list up to 255 of them, separated by commas.
  • SUM adds up all the numbers and ignores text and empty cells.

With a range, the formula most people use is:

=SUM(A2:A10)

That adds every number from A2 down to A10. The colon means “from A2 through A10, everything in between”.

How to Use the SUM Formula — Step by Step

  1. Click the cell where you want the total.
  2. Type =SUM(.
  3. Select the cells you want to add — click the first cell and drag to the last, or type the range like A2:A10.
  4. Type ) and press Enter.

Example: to add 10, 20 and 30, type =SUM(10,20,30) and press Enter. Excel shows 60.

The Fastest Way — AutoSum (Alt+=)

You do not even need to type the formula. Excel can write it for you.

  1. Click the empty cell directly below your column of numbers.
  2. Press Alt+= (hold Alt, press =). Or click the AutoSum (∑) button on the Home tab, in the Editing group.
  3. Excel inserts =SUM(...) and highlights the range it thinks you want. Check the highlighted range — if it is right, press Enter. If it is wrong, drag to select the correct range first, then press Enter.

AutoSum guesses the numbers above (or to the left of) the cell. It usually guesses right. When it guesses wrong, the fix is simple: select the range yourself before pressing Enter, and Excel uses your selection instead.

Worked Example — Add a Column

Monthly expenses in column A, rows 2 to 6:

A (Expenses)
2120
385
4210
545
690
7 (Total)=SUM(A2:A6)

Calculation: 120 + 85 + 210 + 45 + 90 = 550. The total in A7 is 550.

Now change any number — A4 from 210 to 200, for example — and the total updates itself to 540. That is the point of a formula: the total is never out of date.

How to Add Several Ranges in One Formula

Separate each range with a comma:

=SUM(A2:A6, D2:D5)

Example: column A totals 550 (from the example above), and column D holds 40, 60, 25 and 75. Column D totals 40 + 60 + 25 + 75 = 200. The formula gives 550 + 200 = 750.

You can also mix numbers, cells and ranges in one formula:

=SUM(5, A1:A5, D3)

Example: A1 to A5 hold 10, 20, 30, 40 and 50 (total 150), D3 holds 7. The formula gives 5 + 150 + 7 = 162.

SUM or + — Which Should You Use?

Both add numbers. For a short list, =A1+B1+C1 works. For real work, SUM is better, and Microsoft’s own documentation says why:

SUM+
A cell holds textIgnores it, adds the restBreaks with #VALUE!
You insert a row inside the rangeRange grows to include itNew row is left out
You delete a row inside the rangeRange shrinks, total stays rightBreaks with #REF!
Long list of cellsOne short range: =SUM(A2:A50)A very long formula, easy to mistype

Rule: use + only for two or three cells. Use SUM for everything else. The same logic applies in reverse for taking numbers away — see the subtraction formula guide, which shows how SUM helps there too.

How to Add a Running Total

A running total adds each new number to everything before it. Using the expenses above:

MonthExpense (A)Running total (B)Formula (B)
Jan120120=SUM($A$2:A2)
Feb85205=SUM($A$2:A3)
Mar210415=SUM($A$2:A4)

Calculation: Jan 120. Feb 120 + 85 = 205. Mar 205 + 210 = 415.

The $A$2 locks the start of the range, while A2 moves down as you copy the formula. Copy B2 down and each row adds one more month. This is the same $ locking used in the subtraction formula guide for a fixed discount.

How to Add a Whole Column — and the Trap

To add every number in column A, however many rows you add later:

=SUM(A:A)

The trap: it adds every number in the column — including a number in the header row, and including your total itself if the total sits in the same column. Example: values 100, 200 and 300, with the total 600 in the same column. =SUM(A2:A5) where A5 holds the 600 total gives 100 + 200 + 300 + 600 = 1,200 — the total counted twice.

Fix it two ways: put the total in a different column, or use a fixed range like =SUM(A2:A100) that stops above the total row.

Why Is My Total Wrong? (Or 0?)

The most common cause is numbers stored as text. Excel treats text as zero in a SUM, so a column of text-numbers adds up to 0 — or to much less than you expect. It happens when numbers are pasted from a website or imported from another system.

How to tell: numbers stored as text usually sit at the left of the cell, with a small green triangle in the corner. Real numbers sit at the right.

How to fix it:

  1. Select the cells.
  2. Click the warning icon that appears, and choose Convert to Number.
  3. Or, in an empty cell, type 1, copy it, select your numbers, right-click, Paste Special, choose Multiply, and click OK. Multiplying by 1 turns text-numbers into real numbers without changing their value.

Other causes: the total cell is formatted as Text (format it as Number), or the formula is showing as text because the cell was formatted as Text before you typed the formula (format as General, then click in the formula bar and press Enter).

Common Mistakes

MistakeWhat happensFix
You used + and a cell holds text#VALUE! errorUse SUM — it ignores text
AutoSum picked the wrong rangeTotal is too big or too smallSelect the range yourself before pressing Enter
Numbers are stored as textTotal is 0 or too lowConvert to Number (see above)
The total cell is inside the summed rangeTotal counts itself — for example, 1,200 instead of 600Put the total in another column, or use a fixed range
You listed single cells instead of a rangeInserting a row leaves the new row out of the totalUse a range: =SUM(A2:A10)
The formula shows as text, not a totalThe cell was formatted as Text before you typedFormat as General, click the formula bar, press Enter
You typed =SUM A2:A10 without bracketsExcel shows an errorAlways use brackets: =SUM(A2:A10)
You added a row below the range and it is not includedThe range ends above the new rowAdd the row inside the range, or extend the range to cover it

Frequently Asked Questions

What is the SUM formula in Excel? =SUM(number1, [number2], ...). Most often: =SUM(A2:A10), which adds everything from A2 to A10.

How do I add a column in Excel? Click the empty cell below the column and press Alt+=, or type =SUM(A2:A10) with your own range, and press Enter.

What is the shortcut for SUM in Excel? Alt+= inserts a SUM formula for the numbers above (or to the left of) the selected cell. The AutoSum (∑) button on the Home tab does the same thing.

How do I add multiple ranges? Separate them with commas: =SUM(A2:A6, D2:D5). You can also mix numbers, cells and ranges: =SUM(5, A1:A5, D3).

Should I use SUM or +? Use SUM for anything longer than two or three cells. + breaks with #VALUE! if a cell holds text, and it does not update when you insert or delete rows inside the list.

Why is my SUM total 0? Your numbers are probably stored as text. Select them, click the warning icon and choose Convert to Number — then the total will appear.

Does SUM ignore text and empty cells? Yes. SUM skips text and empty cells and adds only the numbers. That is one of its advantages over +.

How do I add numbers across sheets? List each sheet’s range: =SUM(Sheet1!A2:A10, Sheet2!A2:A10). For many sheets in a row, a 3D reference works too: =SUM(Sheet1:Sheet3!A2).

That is the whole method: =SUM( plus the cells you want to add, plus ). Alt+= writes it for you, a range keeps it working when rows are added or removed, and SUM — unlike + — ignores text and survives edits. If a total looks wrong, check first whether the numbers are really numbers, and second whether the range is the one you meant. Try it on your own column now, then keep going with the other basic operations in the same Math Basics group: the subtraction formula, the multiplication formula and the division formula — and when you need the average of a total you have just added, the average formula guide is the next one to read.


About admin

Author of Excel formula guides on this blog.

View all guides by admin →

Keep Learning

Related guides