Excel SUM function
SUM adds numbers, and it is the function people most often replace with plus signs. The difference matters: SUM(A1:A10) skips text, while A1+A2+…+A10 returns #VALUE! the moment one cell holds text. Whenever a column might contain a label or a blank, use SUM.
Math & conditional sums · Available in: Excel 97 and every desktop version since
Syntax
SUM(number1, [number2], ...)What it returns The total of the numbers in all arguments; text, booleans and empty cells are ignored.
| Arguments | ||
|---|---|---|
| number1 | required | Numbers, cell references or ranges to add; up to 255 arguments. |
| number2 | optional | 更多数字或区域,最多 255 个参数。 |
Examples
Total a column that contains a text row
| Item | Amount |
| Hosting | 120 |
| Domain | 18 |
| (pending) | n/a |
| Support | 300 |
= SUM(B2:B5)→ 438
B4 holds the text n/a, which SUM skips, so the answer is 120+18+300 = 438. Written as B2+B3+B4+B5 the same data returns #VALUE! — one dirty row breaks the whole column.
Add several blocks at once
| Jan | Feb | Mar | Total |
| 1200 | 1400 | 1350 |
= SUM(A2:C2)→ 3950
SUM takes ranges, so you never click cells one by one; separate disjoint blocks with commas: SUM(A2:A10,C2:C10,E2:E10).
Common mistakes
- 1.Numbers stored as text are skipped as zeros, so the total looks short with no warning. Select the column and compare Count with Sum in the status bar.
- 2.A subtotal row inside the range gets counted twice. Total only the subtotals, or switch to SUBTOTAL.
- 3.Building an average as SUM/COUNT goes wrong because blanks change the denominator — use AVERAGE.
How to use it
- 1.Click the cell where the result should appear.
- 2.Type = then the function name, and press Tab to accept it.
- 3.Enter each argument separated by commas; ranges can be dragged with the mouse.
- 4.Press Enter. Drag the fill handle down if the same formula applies to more rows.
Frequently asked questions
What is the syntax of SUM?
SUM(number1, [number2], ...). What it returns: The total of the numbers in all arguments; text, booleans and empty cells are ignored.
Which Excel versions support SUM?
Excel 97 and every desktop version since. It is available in every desktop version unless the note above says otherwise.
Why does SUM return an error instead of a value?
Numbers stored as text are skipped as zeros, so the total looks short with no warning. Select the column and compare Count with Sum in the status bar.