Related Topics: | ||
Description: Adds all the numbers in a range of cells.
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.
If an argument is an array or reference, only numbers in that array or reference are counted. Empty cells, logical values or text in the array or reference are ignored. See the third example following.
Arguments that are error values or text that cannot be translated into numbers cause errors.
Example:
SUM(3, 2) = 5 [adds 3 and 2]
SUM(5, 15, TRUE) = 21 [adds 5, 15 and 1, because the text values are translated into numbers, and the logical value TRUE is translated into the number 1]
If cells A2:A6 contain -5, 15, 30, '5 and TRUE:
SUM(A2:A4) = 40 [adds the first three numbers in the column]
SUM(A2:A4, 15) = 55 [adds the first three numbers in the column, and 15]
SUM(A5, A6, 2) = 2 [adds the values in the last two rows, and 2. Because non-numerical values in references are not translated, the values in the column are ignored]
© 1992-2015. ReliaSoft Corporation. ALL RIGHTS RESERVED.