SUM Function
Adds up numbers, cells and ranges.
Category
Math & Trig
Available in
All versions, Microsoft 365
Returns
A number
Overview
SUM is the most-used function in Excel. Give it numbers, cells or whole ranges and it returns the total.
It ignores text and empty cells in ranges, so a column with a heading or a few blanks still adds up cleanly. Alt + = (AutoSum) writes it for you.
Syntax
=SUM(number1, [number2], …)
Arguments
| Argument | Required? | What it does |
|---|---|---|
| number1 | Yes | A number, cell or range to add. |
| number2, … | Optional | Up to 254 more numbers, cells or ranges. |
Examples
Example 1 — Totalling a column
Add up Northstar's monthly sales.
B6fx=SUM(B2:B5)
| A | B | |
|---|---|---|
| 1 | Month | Sales |
| 2 | Jan | 12500 |
| 3 | Feb | 9800 |
| 4 | Mar | 14250 |
| 5 | Apr | 11300 |
| 6 | Total | 47850 |
=SUM(B2:B5) Explain
Select the cell under the numbers and press Alt + = — Excel writes the SUM and guesses the range.
Example 2 — Several ranges at once
Total two separate blocks — say Q1 in B2:B4 and Q3 in D2:D4.
=SUM(B2:B4, D2:D4) Explain
Example 3 — Running total
Lock the start of the range with $ so it grows as you fill down.
C2fx=SUM($B$2:B2)
| A | B | C | |
|---|---|---|---|
| 1 | Month | Sales | Year to date |
| 2 | Jan | 12500 | 12500 |
| 3 | Feb | 9800 | 22300 |
| 4 | Mar | 14250 | 36550 |
=SUM($B$2:B2) Explain
Common mistakes
- Numbers stored as text. Imported numbers sometimes sit on the left of the cell with a green triangle. SUM skips them. Convert them with VALUE or Data › Text to Columns.
- Totals that include themselves. Putting =SUM(B2:B6) in B6 creates a circular reference. Stop the range one row above the total.
Notes
- Related functions: SUMIF, SUMIFS, SUBTOTAL, AGGREGATE, SUMPRODUCT.

Author
Kyle Stott
Certified Microsoft Excel Expert
Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.