Applies ToSharePoint Server Subscription Edition SharePoint Server 2019 SharePoint Server 2016 SharePoint Server 2013 SharePoint Server 2013 Enterprise SharePoint in Microsoft 365 SharePoint Foundation 2010 SharePoint Server 2010 SharePoint in Microsoft 365 Small Business Windows SharePoint Services 3.0

Adds all the numbers in the specified arguments.

Syntax

SUM(number1,number2,...)

Number1, number2,...     are 1 to 30 arguments for which you want the total value or sum.

Remarks

  • Numbers, logical values, and text representations of numbers that you type directly into the list of arguments are counted. See the first and second examples following.

  • Arguments cause errors if they are error values or text that cannot be translated into numbers.

Examples

Col1

Col2

Col3

Col4

Col5

Formula

Description (Result)

-5

15

30

TRUE

=SUM(3, 2)

Adds 3 and 2 (5)

-5

15

30

TRUE

=SUM("5", 15, TRUE)

Adds 5, 15 and 1, because the text values are translated into numbers, and the logical value TRUE is translated into the number 1 (21)

-5

15

30

TRUE

=SUM([Col1], [Col2], [Col3])

Adds the first three numbers in the columns (40)

-5

15

30

TRUE

=SUM([Col1], [Col2], [Col3], 15)

Adds the first three numbers in the columns, and 15 (55)

-5

15

30

TRUE

=SUM([Col4], [Col5], 2)

Adds the values in the last two columns and 2 (3)

Need more help?

Want more options?

Explore subscription benefits, browse training courses, learn how to secure your device, and more.

Communities help you ask and answer questions, give feedback, and hear from experts with rich knowledge.