FormulaCamp
Completed
← All functions
Dynamic arrays

REDUCE

Folds an array into a single value.

Syntax

REDUCE(initial_value, array, LAMBDA(total, x))

Example: =REDUCE(0,A2:A6,LAMBDA(a,x,a+x))

Available in: Excel 2024, Microsoft 365

Try it

A tiny spreadsheet with example data. Edit the formula or any number and see the result.

Formula in F2: =REDUCE(0,C2:C7,LAMBDA(a,x,a+x))

Example spreadsheet for REDUCE
ABCDEF
1RegionProductUnitsPriceResult
2EastPen1202.5350
3WestPen802.5
4EastBook4512
5NorthBook6012
6WestLamp3025
7EastLamp1525
Result in F2: 350
Practice this in a lesson: LAMBDA, MAP, REDUCE, BYROW

More in Dynamic arrays