How to use SUM in Excel
SUM adds up numbers, cell references and whole ranges. It's the most used function in Excel — totals of sales, costs, hours or anything else you can count.
Syntax
=SUM(number1, [number2], ...)
number1 | The first number, cell or range to add, e.g. B2:B10. |
[number2], … | Optional. More numbers or ranges — up to 255 arguments. |
Examples
=SUM(B2:B10)Total of every value from B2 to B10.=SUM(B2:B10, D2:D10)Adds two separate ranges in one formula.=SUM(B:B)Adds the whole column B — new rows are included automatically.=SUM(B2:B10)-SUM(C2:C10)Revenue minus costs in one cell.Totals that grow with the data
A total that stops one row short is one of the most common errors in real reports. Turn the data into a Table with Ctrl+T and refer to the column by name, like =SUM(Sales[Amount]): every new row is included automatically.
=SUM(OFFSET(B2, 0, 0, COUNTA(A:A)-1, 1))Without a Table: the range is as long as the list in column A (minus the header).Running totals and balances
Lock the start of the range with $ and leave the end free. Copied down, the range grows by one row each time.
=SUM($B$2:B2)A running total: copy it down next to the amounts.=SUM($B$2:B2)-SUM($C$2:C2)A running balance: deposits in B, withdrawals in C.Totals with filters and errors
SUM adds every row, hidden or not, and stops at the first error. SUBTOTAL and AGGREGATE handle both. SUM can also add the same cell on many sheets at once: =SUM(Jan:Dec!B10).
=SUBTOTAL(9, B2:B500)The total of the visible rows only, after a filter.=AGGREGATE(9, 6, B2:B500)The total that skips any #N/A or #VALUE! cells in the range.Common mistakes
- The total is too small
- Some numbers are stored as text (often after importing data). SUM skips them. Look for numbers aligned to the left or with a green triangle and convert them.
- The range stops one row short
- After adding a new row below the range, the formula doesn't include it. Use a whole column (
B:B) or an Excel Table. - Circular reference warning
- The total cell is inside its own range, e.g.
=SUM(B2:B10)in B10.
Tips
- Alt + = writes a SUM for the numbers above the selected cell in one keystroke.
- Select a range and look at the status bar at the bottom of Excel — it shows the sum without any formula.
Frequently asked questions
Why does SUM return 0?
The numbers are stored as text, usually after an import. They sit on the left of the cell, often with a green triangle. Select them and choose Convert to Number. More in the Excel errors guide.
What's the shortcut for SUM?
Alt+= writes a SUM of the numbers above or to the left of the selected cell. Select a block with an empty row and column next to it and Alt+= totals every row and column at once.
How do I sum only some of the rows?
Use SUMIF for one condition and SUMIFS for several: =SUMIFS(C2:C500, A2:A500, "North").
How do I sum a column without the header?
SUM skips text, so =SUM(B:B) ignores the header by itself. Just don't put the formula inside column B, or you get a circular reference.
Why is my SUM total a few cents off?
The values have more decimals than the format shows. Round each value with ROUND before adding them up.
Available in: All versions of Excel, Excel for the web, Google Sheets