SUM Function

Excel Functions › Math & Trig

All versions Math & Trig

The Excel SUM function adds numbers, cell references, and ranges — the single most-used function in Excel and the engine behind every total, subtotal, and running balance.


Quick answer:
=SUM(A1:A10) adds every number in A1:A10

Syntax

=SUM(number1, [number2], ...)
ArgumentDescription
number1RequiredThe first number, cell reference, or range to add.
number2, ...OptionalUp to 254 additional numbers or ranges. Mix values, cells, and ranges freely.

How to use it

SUM accepts up to 255 arguments and adds them all. Each argument can be a single value, a cell reference, or an entire range — and you can mix them in one formula.

=SUM(A1:A10) // one range
=SUM(A1:A10, C1:C10) // two ranges
=SUM(B2, 100, D2:D5) // cell + literal + range

Text, logical values, and empty cells inside a referenced range are ignored, so SUM is safe to point at a column that mixes numbers with headers or notes. (A stray non-numeric text string passed directly as an argument — like =SUM(1,"x") — is the exception: it returns #VALUE!.)

AB
1ItemAmount
2Widgets120
3Gadgets80
4Gizmos50
5Total=SUM(B2:B4) → 250

AutoSum shortcut: select the cell below a column of numbers and press Alt+= — Excel writes the SUM formula and guesses the range for you.

Try it: interactive demo

Live demo

Enter numbers separated by commas and watch SUM total them.

Result:

Practice workbook

📊
Download the free SUM practice workbook
Every example on this page, ready to open in Excel — plus practice challenges with answers on a separate tab. No sign-up required.

Frequently asked questions

Does SUM ignore text and blank cells?
Yes — when SUM points at a range, text, logical values (TRUE/FALSE), and empty cells are skipped, so only numbers are added. The one exception: a non-numeric text string passed directly as an argument, like =SUM(1,"x"), returns #VALUE!. (Numeric text such as "5" passed directly is converted to a number.)
What is the keyboard shortcut for SUM?
Select the cell where you want the total and press Alt+= (AutoSum). Excel inserts =SUM(...) and guesses the range.
How many numbers can SUM add?
Up to 255 arguments, where each argument can itself be a whole range — so in practice you can add hundreds of thousands of cells at once.
Why does my SUM return 0 or skip some values?
Those numbers are almost certainly stored as text (often left-aligned, sometimes with a green triangle). Convert them with VALUE, multiply by 1, or use Text to Columns.

Master functions like this in one day

This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related functions: SUMIF · SUMIFS · SUMPRODUCT · PRODUCT · SUBTOTAL