EXCEL REDUCE FUNCTION

Applying a LAMBDA to each item in the array and returning the total value in the accumulator reduces the array to an accumulated value.

Syntax :

=REDUCE([initial_value], array, lambda(accumulator, value))

Parameters :

  • [initial value] – Defines the accumulator’s starting value.

  • array – A to-be-reduced array.

  • lambda – A LAMBDA function that is used to decrease the array. The LAMBDA considers two variables:

  • accumulator – A value that is totalled and returned as the final result.

  • value – The computation performed on each array element.

Step By Step Guide of REDUCE Function

Example :

=REDUCE(, A1:C2, LAMBDA(a,b,a+b^2))

Reduce Function
  • To set the initial value for the accumulator parameter, use the initial value argument. Set the value of the accumulator to 1 in Example 2 to prevent multiplying by 0.

  • If you supply an improper LAMBDA function or a wrong amount of arguments, you will receive a #VALUE! error named “Incorrect Parameters.”

Related Functions

HLOOKUP Function

HLOOKUP Function

Explore Now

VLOOKUP Function

VLOOKUP Function

Explore Now

INDEX Function

INDEX Function

Explore Now

MATCH Function

MATCH Function

Explore Now

DATE Function

DATE Function

Explore Now

IF Function

IF Function

Explore Now

OR Function

OR Function

Explore Now

AND Function

AND Function

Explore Now

RANK Function

RANK Function

Explore Now

SUMIF Function

SUMIF Function

Explore Now

XIRR Function

XIRR Function

Explore Now

WORKDAYS Function

WORKDAYS Function

Explore Now