Constants

CONDITION_COLUMN_NAME

CONDITION_COLUMN_NAME = 'CONDITION'

VALUE_COLUMN_NAME

VALUE_COLUMN_NAME = 'VALUE'

CONDITIONAL_COLUMN_NAME

CONDITIONAL_COLUMN_NAME = 'CONDITIONAL %d'

Methods

AVERAGEIF()

AVERAGEIF(array  $range, string  $condition, array  $averageRange = []) : null|float|string

AVERAGEIF.

Returns the average value from a range of cells that contain numbers within the list of arguments

Excel Function: AVERAGEIF(range,condition[, average_range])

Parameters

array $range

Data values

string $condition

the criteria that defines which cells will be checked

array $averageRange

Data values

Returns

null|float|string —

AVERAGEIFS()

AVERAGEIFS(mixed  ...$args) : null|float|string

AVERAGEIFS.

Counts the number of cells that contain numbers within the list of arguments

Excel Function: AVERAGEIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2]…)

Parameters

mixed $args variadic

Pairs of Ranges and Criteria

Returns

null|float|string —

COUNTIF()

COUNTIF(array  $range, string  $condition) : int

COUNTIF.

Counts the number of cells that contain numbers within the list of arguments

Excel Function: COUNTIF(range,condition)

Parameters

array $range

Data values

string $condition

the criteria that defines which cells will be counted

Returns

int —

COUNTIFS()

COUNTIFS(mixed  ...$args) : int

COUNTIFS.

Counts the number of cells that contain numbers within the list of arguments

Excel Function: COUNTIFS(criteria_range1, criteria1, [criteria_range2, criteria2]…)

Parameters

mixed $args variadic

Pairs of Ranges and Criteria

Returns

int —

MAXIFS()

MAXIFS(mixed  ...$args) : null|float|string

MAXIFS.

Returns the maximum value within a range of cells that contain numbers within the list of arguments

Excel Function: MAXIFS(max_range, criteria_range1, criteria1, [criteria_range2, criteria2]…)

Parameters

mixed $args variadic

Pairs of Ranges and Criteria

Returns

null|float|string —

MINIFS()

MINIFS(mixed  ...$args) : null|float|string

MINIFS.

Returns the minimum value within a range of cells that contain numbers within the list of arguments

Excel Function: MINIFS(min_range, criteria_range1, criteria1, [criteria_range2, criteria2]…)

Parameters

mixed $args variadic

Pairs of Ranges and Criteria

Returns

null|float|string —

SUMIF()

SUMIF(mixed  $range, mixed  $condition, mixed  $sumRange = []) : float

SUMIF.

Totals the values of cells that contain numbers within the list of arguments

Excel Function: SUMIF(range, criteria, [sum_range])

Parameters

mixed $range

Data values

mixed $condition
mixed $sumRange

Returns

float —

SUMIFS()

SUMIFS(mixed  ...$args) : null|float|string

SUMIFS.

Counts the number of cells that contain numbers within the list of arguments

Excel Function: SUMIFS(average_range, criteria_range1, criteria1, [criteria_range2, criteria2]…)

Parameters

mixed $args variadic

Pairs of Ranges and Criteria

Returns

null|float|string —

buildConditionSet()

buildConditionSet(mixed  ...$args) : array

Parameters

mixed $args variadic

Returns

array —

buildConditionSetForValueRange()

buildConditionSetForValueRange(mixed  ...$args) : array

Parameters

mixed $args variadic

Returns

array —

buildConditions()

buildConditions(int  $startOffset, mixed  ...$args) : array

Parameters

int $startOffset
mixed $args variadic

Returns

array —

buildDatabase()

buildDatabase(mixed  ...$args) : array

Parameters

mixed $args variadic

Returns

array —

buildDatabaseWithValueRange()

buildDatabaseWithValueRange(mixed  ...$args) : array

Parameters

mixed $args variadic

Returns

array —

buildDataSet()

buildDataSet(int  $startOffset, array  $database, mixed  ...$args) : array

Parameters

int $startOffset
array $database
mixed $args variadic

Returns

array —

databaseFromRangeAndValue()

databaseFromRangeAndValue(array  $range, array  $valueRange = []) : array

Parameters

array $range
array $valueRange

Returns

array —