Microsoft Office Online
Sign in to My Office Online (What's this?) | Sign in

 
 
Windows SharePoint Services
Search
Search
 
Check for updates: (c) Microsoft
Office downloads
 
 
 
Warning: You are viewing this page with an unsupported Web browser. This Web site works best with Microsoft Internet Explorer 6.0 or later, Firefox 1.5, or Netscape Navigator 8.0 or later. Learn more about supported browsers.

Email this linkEmail this link Printer-Friendly VersionPrinter-Friendly Version Bookmark and ShareShare
SUM function
 

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)
advertisement