SUM Function

Adds up numbers, cells and ranges.

Category

Math & Trig

Available in

All versions, Microsoft 365

Returns

A number

Taught hands-on in Level 2: Essential Formulas & Everyday Logic - Frequently Used Functions module

Overview

SUM is the most-used function in Excel. Give it numbers, cells or whole ranges and it returns the total.

It ignores text and empty cells in ranges, so a column with a heading or a few blanks still adds up cleanly. Alt + = (AutoSum) writes it for you.

Syntax

=SUM(number1, [number2], …)

Arguments

ArgumentRequired?What it does
number1YesA number, cell or range to add.
number2, …OptionalUp to 254 more numbers, cells or ranges.

Examples

Example 1 — Totalling a column

Add up Northstar's monthly sales.

B6fx=SUM(B2:B5)
AB
1MonthSales
2Jan12500
3Feb9800
4Mar14250
5Apr11300
6Total47850
=SUM(B2:B5) Explain
Select the cell under the numbers and press Alt + = — Excel writes the SUM and guesses the range.

Example 2 — Several ranges at once

Total two separate blocks — say Q1 in B2:B4 and Q3 in D2:D4.

=SUM(B2:B4, D2:D4) Explain

Example 3 — Running total

Lock the start of the range with $ so it grows as you fill down.

C2fx=SUM($B$2:B2)
ABC
1MonthSalesYear to date
2Jan1250012500
3Feb980022300
4Mar1425036550
=SUM($B$2:B2) Explain

Common mistakes

  • Numbers stored as text. Imported numbers sometimes sit on the left of the cell with a green triangle. SUM skips them. Convert them with VALUE or Data › Text to Columns.
  • Totals that include themselves. Putting =SUM(B2:B6) in B6 creates a circular reference. Stop the range one row above the total.

Notes

Kyle Stott

Author

Kyle Stott

Certified Microsoft Excel Expert

Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.