SUM Function in Excel: Add Numbers, Ranges and Whole Columns

⏱ 2 min readUpdated 28 September 2026

MathLevel: BeginnerAvailable in: Excel 2007+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. Example 3
  6. Power combo
  7. Common errors and fixes
  8. Related functions

SUM adds numbers, cell references and ranges. It ignores text and empty cells, which makes it the safest way to total a column.

Syntax

=SUM(number1, [number2], ...)
Argument What it means
number1 A number, cell or range to add.
number2… Optional: up to 255 more numbers or ranges.

Examples

Example 1

=SUM(B2:B13)

Total of twelve monthly values.

Example 2

=SUM(B2:B13, D2:D13)

Two separate ranges added together.

Example 3

=SUM(Sales[Amount])

Total of a table column — keeps working as rows are added.

Power combo

=SUM(Jan:Dec!B5)

A 3D reference: adds cell B5 on every sheet from Jan to Dec — a yearly total across monthly sheets.

Common errors and fixes

You see Why, and the fix
Total looks too small Some numbers are stored as text (left-aligned, green triangle). Convert them with Data → Text to Columns → Finish.
#VALUE! Usually from a formula like =A1+A2 with text. SUM ignores text, so switch to SUM.
💡 Select the cell below a column and press Alt+= to insert SUM automatically.

SUMIF · SUMIFS · SUBTOTAL · SUMPRODUCT

📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong