Numbers Exercises

REDUCE in Apple Numbers

Last updated:

Short answer: REDUCE walks through a range and keeps a running result. Syntax: REDUCE(initial-value, array, LAMBDA(accumulator, value, calculation))

Explanation

REDUCE walks through a range and keeps a running result. The LAMBDA decides how each value is folded into that result.

Syntax

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

Example

Add up the squares of the prices (B2:B5) with REDUCE, starting at 0.

Table 1
ABC
1ProductPriceQty
2Apple410
3Pear65
4Kiwi122
5Grape83

Formula: =REDUCE(0,B2:B5,LAMBDA(acc,v,acc+v*v))
Result: 260

Frequently asked questions

What does REDUCE do in Apple Numbers?

REDUCE walks through a range and keeps a running result. The LAMBDA decides how each value is folded into that result.

What is the syntax of REDUCE?

The syntax is REDUCE(initial-value, array, LAMBDA(accumulator, value, calculation)).

More in this category

Read more

Practise it yourself

Type the formula yourself in a real exercise and see right away if your answer is correct. The first exercises are free.

Start practising