Excel REDUCE function

Walks a range building up a result with a LAMBDA and returns the final value. It has the same name in Spanish Excel.

Syntax

English Excel

=REDUCE(initial_value, array, lambda)

Spanish Excel (Mexico)

=REDUCE(valor_inicial, matriz, lambda)

Spanish Excel (Spain, Latin America)

=REDUCE(valor_inicial; matriz; lambda)

ArgumentWhat it is
initial_valueThe value the accumulator starts with, usually 0.
arrayThe range to walk through.
lambdaA LAMBDA(accumulator, value) returning the new accumulator.

Example

REDUCE(start, range, LAMBDA(total, value, calculation)) walks the range and returns one result. SCAN does the same but shows every step: with account movements, it gives the balance after each one.

=REDUCE(0,B2:B8,LAMBDA(total,mov,IF(mov>0,total+mov,total)))

Common mistake

Excel 365 only. To see every intermediate step, use SCAN.

About Ads

This site uses Google AdSense to display ads. These ads help us keep WebHerramientas completely free. Ads are managed by Google and meet strict security and privacy standards.

Advertising
Loading ad...

Ads help us keep WebHerramientas free for everyone

Practice REDUCE

Type the formula in the sheet and check it instantly. Spanish or English function names both work. See all lessons

Running balance: SCAN and REDUCE

REDUCE(start, range, LAMBDA(total, value, calculation)) walks the range and returns one result. SCAN does the same but shows every step: with account movements, it gives the balance after each one.

Example=SCAN(0,B2:B8,LAMBDA(saldo,mov,saldo+mov))SCANLAMBDAREDUCE
Step 1/2

In C2, with a single formula, calculate the balance after each movement using SCAN.

C2
ABCDEFG
1DateMovementBalanceDeposits
2Mar 0115,000.00
3Mar 03-2,400.00
4Mar 07-860.00
5Mar 105,200.00
6Mar 15-7,300.00
7Mar 22-1,150.00
8Mar 283,900.00
9

Tip: while typing, click a cell or drag across several to insert their reference. F4 anchors the reference with $.

Frequently asked questions

What is REDUCE called in Spanish?
It has the same name: REDUCE. What changes is the separator: Spanish Excel in Spain and much of Latin America separates arguments with semicolons.
Why does REDUCE use semicolons in some Excel versions?
It depends on regional settings. Where the comma is the decimal mark (Spain, much of South America), Excel separates arguments with semicolons. English Excel and Mexican Spanish Excel use commas.
What is the most common REDUCE mistake?
Excel 365 only. To see every intermediate step, use SCAN.