# NumSum - script and chart function

Returns the numeric sum of 1 to N arguments. As opposed to the + operator, numsum will treat all non-numeric values as 0.

Information noteThe numsum function has been superseded by the [RangeSum - script and chart function](https://help.qlik.com/en-US/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/RangeFunctions/rangesum.htm) function. Although numsum can be used, it is not recommended.

Syntax:

NumSum(expr1 [ , expr2, ... exprN ])

Examples and results:

* `numsum( 
   1,2,4 )` returns 7
* `numsum( 
   1,'xyz' )` returns 1
* `numsum( 
   null( ) )` returns 0