Products, services, and OS functions
may not be available in this country.

REDUCE

The REDUCE function returns a value for an array calculated by a LAMBDA function.

REDUCE(initial-value, array, LAMBDA(accumulator, value, calculation))

initial-value: The initial value of the accumulator.

array: The input array.

LAMBDA: A defined subformula.

accumulator: The identifier for the initial value.

value: The identifier for the current value in the array.

calculation: The formula you want the function to execute and return. This is required and must be the last argument.

Notes

Example 1

Given the following table:

A

1

1

2

2

3

3

=REDUCE(5, A1:A3, LAMBDA(accumulator, value, accumulator*value)) returns 30.

Example 2

Given the following table:

A

B

C

1

1

2

3

2

4

5

6

=REDUCE(1, A1:C2, LAMBDA(accumulator, value, accumulator+SUMSQ(value))) returns 92.

See alsoMAPLAMBDA
Morty Proxy This is a proxified and sanitized view of the page, visit original site.
Helpful?
Character limit: 250
Maximum character limit is 250.
Thanks for your feedback.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.