SUM Function
The Excel SUM function adds numeric values from cells, ranges, or separate arguments. It is the standard choice for totals that do not require conditions.
| Excel SUM Function | |||||||
| Change the cream input cells to see each total update; formula syntax and live results sit beside the source data. | |||||||
| Source data, editable | SUM examples | ||||||
| Period | Amount | Adjustment | Mixed Value | Example | Formula syntax | Result | |
| January | 1,200 | -75 | 100 | Contiguous range total | =SUM(B12:B21) | 7,150 | |
| February | 1,350 | 20 | Selected cells only | =SUM(C12,C15,C18,C21) | -40 | ||
| March | 1,100 | 0 | Pending | Two separate ranges | =SUM(B12:B15,C12:C15) | 5,015 | |
| April | 1,450 | -30 | 250 | Mixed range ignores blanks/text | =SUM(D12:D21) | 400 | |
| May | 900 | 100 | -50 | ||||
| June | -250 | 0 | How to read the examples | ||||
| July | 0 | 40 | n/a | Colon (:) means a contiguous range. | |||
| August | 775 | -10 | 75 | Commas separate individual cells or ranges. | |||
| September | 5 | Referenced blanks and text are ignored; numeric zero is included. | |||||
| October | 625 | 25 | 25 | ||||
| Reliability checks | |||||||
| Contiguous total equals the arithmetic total of its source range | OK | ||||||
| Mixed-range total equals the total of numeric cells only | OK | ||||||
Overview
The Excel SUM function adds numbers without requiring a long chain of + operators. It works with a single range, selected cells, several ranges, or a mixture of those argument types.
Quick reference
Syntax: =SUM(number1, [number2], ...)
Returns: The total of the numeric values supplied. (number)
Arguments:
number1(required) — The first number, cell reference, range, or array to add.number2(optional) — An additional number, cell reference, range, or array to add; more optional arguments may follow.
The bracketed arguments after number1 are optional. Add further values, references, ranges, or arrays when they belong in the same total.
Common uses
- Total monthly revenue, costs, hours, quantities, or balances.
- Combine non-adjacent subtotals or selected adjustments.
- Roll several blocks of detail into one reporting total.
- Add mixed ranges in which labels and blank cells may appear alongside numbers.
Calculations
SUM evaluates every argument and combines the numeric values into one total. A colon creates a contiguous range, while commas separate individual cells or additional ranges.
When a referenced range contains blank cells or text, those cells do not contribute to the total. Numeric zero is included but does not change the result, and negative numbers reduce the total. If a referenced cell contains an error, that error propagates to the result.
Using a range such as B12:B21 is generally easier to read and maintain than adding each cell individually. The range can also grow or shift more cleanly when rows are inserted.
Function behavior
Situation | Behavior |
|---|---|
Blank cells | Ignored when they occur in a referenced range. |
Text in referenced cells | Ignored rather than treated as zero. |
Zero | Included as a numeric value, although it does not change the total. |
Negative numbers | Included and reduce the result. |
Errors | An error in a referenced cell causes the formula to return an error. |
Multiple ranges | All numeric values in every supplied range are added together. |
Common errors
Chaining every cell with plus signs
What happens:
The formula becomes long and fragile, and a newly inserted row can be omitted from the calculation.
Better approach:
Use one contiguous range whenever the cells belong to the same block.
Expecting SUM to apply a condition
What happens:
Every numeric value in the supplied references contributes, even when only certain rows were intended.
Better approach:
Use SUMIF for one condition or SUMIFS for multiple conditions.
Ignoring source errors
What happens:
An error inside a referenced range propagates through SUM.
Better approach:
Resolve the source error or use an error-aware aggregation method when exclusion is intentional and documented.
Example
Example 1 — Sum a Contiguous Range
=SUM(B12:B21)
This formula adds the numeric values in ten monthly amount cells. In the example workbook, the values include a blank, zero, and a negative adjustment, and the result is 7,150.
Example 2 — Sum Selected Cells
=SUM(C12,C15,C18,C21)
Only the four named cells contribute. The sample adjustments are -75, -30, 40, and 25, producing -40.
Example 3 — Sum Multiple Ranges
=SUM(B12:B15,C12:C15)
The two four-cell ranges are treated as one collection of numbers. Their combined total is 5,015.
Example workbook
The workbook contains SUM Example and Notes tabs. The main sheet places editable data beside four live formulas covering a contiguous range, selected cells, multiple ranges, and mixed content. Two reconciliation checks confirm the range total and the mixed-content result.
Key takeaway
Use SUM when every numeric value in the supplied cells or ranges should contribute to one total; move to a conditional function when eligibility rules are required.