MAP applies the same calculation to every cell of an array and spills the results — tax on each price, a grade for each score — without dragging a formula down a column. One formula, the whole transformed array.
p, the LAMBDA returns p * 1.08; MAP spills one result per input cell.
The example
MAP turns each price into a tax-included price in one spilled formula.
| A | B | |
|---|---|---|
| 1 | Price | +8% tax |
| 2 | 100 | 108 |
| 3 | 50 | 54 |
| 4 | 200 | 216 |
The formula
Tax-included prices, spilled:
How it works
MAP is “do this to each element”:
- The first argument is the array to transform (
A2:A4). - The
LAMBDA(p, …)receives each element aspand returns its transformed value —p * 1.08. - MAP spills one output per input, in the same shape as the source.
- Feed it multiple arrays for element-wise math across columns:
MAP(qty, price, LAMBDA(q, p, q*p)).
MAP vs a plain spilled formula. For simple math, =B2:B100*1.08 already spills — you don’t need MAP. Reach for MAP when each element needs logic (an IF, a lookup, a multi-step calculation) wrapped in a LAMBDA.
Try it: interactive demo
Pick a transform; MAP applies it to {100, 50, 200}.
Variations
Element-wise across two arrays
Multiply quantity by price, row for row:
Per-value logic (grades)
Wrap an IF inside the LAMBDA:
Per-value lookup
Look each item up:
Pitfalls & errors
Don’t use MAP for simple math. =B2:B100*1.08 spills natively. MAP is for per-element logic, not arithmetic that already broadcasts.
Array shapes must match when you pass several arrays to MAP — same number of rows and columns, or it errors.
Excel 365 only. LAMBDA-based functions don’t exist before 365; drag a normal formula down there.
Practice workbook
Frequently asked questions
What does the MAP function do in Excel?
How do I use MAP across two columns?
When do I need MAP instead of a normal spilled formula?
Stop fighting formulas. Learn them in a day.
This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class