Sum
in package
Table of Contents
Methods
- product() : float|int|string
- SUMPRODUCT.
- sumErroringStrings() : float|int|string|array<string|int, mixed>
- SUM, returning error for non-numeric strings. This is used by Excel SUM function.
- sumIgnoringStrings() : float|int|string
- SUM, ignoring non-numeric non-error strings. This is eventually used by SUMIF.
Methods
product()
SUMPRODUCT.
public
static product(mixed ...$args) : float|int|string
Excel Function: SUMPRODUCT(value1[,value2[, ...]])
Parameters
- $args : mixed
-
Data values
Return values
float|int|string —The result, or a string containing an error
sumErroringStrings()
SUM, returning error for non-numeric strings. This is used by Excel SUM function.
public
static sumErroringStrings(mixed ...$args) : float|int|string|array<string|int, mixed>
SUM computes the sum of all the values and cells referenced in the argument list.
Excel Function: SUM(value1[,value2[, ...]])
Parameters
- $args : mixed
-
Data values
Return values
float|int|string|array<string|int, mixed>sumIgnoringStrings()
SUM, ignoring non-numeric non-error strings. This is eventually used by SUMIF.
public
static sumIgnoringStrings(mixed ...$args) : float|int|string
SUM computes the sum of all the values and cells referenced in the argument list.
Excel Function: SUM(value1[,value2[, ...]])
Parameters
- $args : mixed
-
Data values