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.
ఉపయోగకరంగా ఉందా?
అక్షరాల పరిమితి: 250
అక్షరాల గరిష్ట పరిమితి 250.
మీ ఫీడ్‌బ్యాక్ అందించినందుకు ధన్యవాదాలు.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.