SUM
Add up numbers in a range with Excel's SUM function.
Spreadsheet editor
Spreadsheet editor
Syntax
=SUM(number1, number2, ...)
Returns: Number Arguments
| Argument | Required | Description |
|---|---|---|
| number1 | Yes | The first number or range of cells to be added. |
| number2 | No | Subsequent numbers or ranges to be added. |
| ... | No | You can include multiple numbers or ranges separated by commas to add them together. |
About
What makes SUM reliable is how it handles messy data. Text values get ignored instead of causing errors, so if someone types "pending" in a cell, your total still calculates. When you insert or delete rows within a range, SUM updates automatically, unlike manual addition formulas that break with #REF! errors. This makes it ideal for financial reports, budgets, and any data that changes over time.
For basic addition, use SUM. When you need to add only values that meet specific criteria, try SUMIF for single conditions or SUMIFS for multiple conditions. Need to ignore filtered rows? Check out SUBTOTAL.
Examples
Combining multiple ranges
Spreadsheet editor
Handling text and empty cells
Spreadsheet editor
Dynamic ranges that adjust automatically
Spreadsheet editor
Watch out for
Using individual cell references instead of ranges
Writing =SUM(A1, A2, A3, A4) won't expand when you insert rows. Add a row between A2 and A3, and your formula misses it.
→ Use ranges like =SUM(A1:A4). Ranges automatically include any rows inserted within them, keeping totals accurate as data grows.
SUM includes hidden and filtered rows
When you filter data to show only certain rows, SUM still includes the hidden rows in its calculation. The displayed total doesn't match what you see onscreen.
→ Use SUBTOTAL with function number 9 instead: =SUBTOTAL(9, A1:A10). This calculates based only on visible rows after filtering.
Error values break the entire formula
If any cell in the range contains an error value like #N/A or #DIV/0!, SUM returns that error instead of a total. One bad cell breaks the whole calculation.
→ Clean up errors first, or use AGGREGATE with function number 9, which ignores errors: =AGGREGATE(9, 6, A1:A10).
Text values get silently ignored
SUM skips text values without warning. If cells contain "TBD" or "pending" mixed with numbers, those cells don't count toward your total, which might hide incomplete data.
→ Clean your data before summing, or use COUNT alongside SUM to verify how many numeric values exist. If you need to handle specific text scenarios, explore SUMIF.
Tips & notes
Common questions
Can SUM handle negative numbers?
What happens with error values in the range?
Does SUM work with time values?
Can I sum entire columns like =SUM(A:A)?
Practice this function
Simple percentage calculation
BeginnerCalculate what percentage each department's budget is of the total.