MAP in Apple Numbers
Short answer: MAP runs a LAMBDA on every value in a range and returns a new range of the same shape. Syntax:
MAP(array, LAMBDA(parameter, calculation))Explanation
MAP runs a LAMBDA on every value in a range and returns a new range of the same shape.
Syntax
MAP(array, LAMBDA(parameter, calculation))Example
Double each price (B2:B5) with MAP and a LAMBDA, and add up the result.
| A | B | C | |
|---|---|---|---|
| 1 | Product | Price | Qty |
| 2 | Apple | 4 | 10 |
| 3 | Pear | 6 | 5 |
| 4 | Kiwi | 12 | 2 |
| 5 | Grape | 8 | 3 |
Formula: =SUM(MAP(B2:B5,LAMBDA(x,x*2)))
Result: 60
Frequently asked questions
What does MAP do in Apple Numbers?
MAP runs a LAMBDA on every value in a range and returns a new range of the same shape.
What is the syntax of MAP?
The syntax is MAP(array, LAMBDA(parameter, 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