WEBcnx 2024.1 is out now bringing with it a host of new features and performance enhancements. Read more.

Open navigation

SUM Function

Applies from Version:WEBcnx 2024.1Applies to Version:


Description

Gets the sum of a series of specified numbers.


Syntax 

SUM(number1, number2, ...)


The SUM function has the following arguments:

  • number1 Required. The first in a series of specified numbers.
  • number2 Required. The second in a series of specified numbers.
  • Additional parameters are optional.

Returns 

A Number


Examples 

ExpressionDescriptionResult
SUM()Returns an error as no arguments are specified
Error
SUM(1)Returns an error as only one argument is specifiedError
SUM(1, 2.5)Sums up 1 and 2.53.5
SUM(1, -2.5)
Sums up 1 and -2.5
-1.5
SUM(1, -2.5, 3)
Sums up 1, -2.5, and 3
2.5
SUM(1, -2.5, 3, -4)
Sums 1, -2.5, 3, and -4
-2.5



Did you find it helpful? Yes No

Send feedback
Sorry we couldn't be helpful. Help us improve this article with your feedback.

You may like to read -