1. Home
  2. Functions
  3. Math
  4. SUM

SUM function

Adds numbers and the numbers in ranges.

Syntax

=SUM(number1, [number2], ...)

Arguments

ArgumentRequiredDescription
number1RequiredA number or range to add
number2OptionalMore numbers or ranges

How to use SUM

SUM takes 1 required argument and 1 optional argument, and accepts more values in the same pattern. Type =SUM( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.

Examples

Each result below was calculated by the SheetsBat formula engine.

=SUM(3, 2)Result 5
=SUM(A1:A3)Result 6
Data in the sheet
A
11
22
33
=SUM("5", 15, TRUE)Result 21

Every formula, right in your browser

SheetsBat calculates 536 functions, with charts, pivot tables and live collaboration. Free to start.