New: ready-to-use spreadsheet templatesExplore the collection  →
MATH & AGGREGATION · GOOGLE SHEETS

SUM
add numbers from cells or ranges.

Use SUM to total a column of amounts. This guide shows the exact structure, a working example and the mistakes most likely to break it.

JosephineVerified by JosephineReviewed July 25, 2026
THE FORMULA=SUM(value1, [value2, …])
A

value1first number or range to add

B

value2optional additional numbers or ranges

TRY IT YOURSELF

Change the sheet.
Watch the answer update.

Edit any highlighted cell below. The example recalculates immediately.

LIVE PLAYGROUND=SUM(B2:B5)
fx=SUM(B2:B5)
A · LABELB · VALUE
2
3
4
5
RESULT315Updates live

Try changing a value above. This example runs entirely in your browser.

IN PLAIN ENGLISH

How the formula
thinks.

  1. 01

    value1first number or range to add

  2. 02

    value2optional additional numbers or ranges

COMMON FIXES

When SUM
doesn’t behave.

WRONG RESULT

Wrong result

Check that every range starts and ends on the same rows, and that numbers are stored as numbers.

FORMULA PARSE ERROR

Formula parse error

Check commas, quotation marks and closing parentheses. Your locale may use semicolons instead of commas.

UNEXPECTED BLANKS

Unexpected blanks

Test the source cells for hidden spaces, empty strings and inconsistent data types.

fxNeed help with SUM?Fix my formula →