Loading…
Loading…
LAMBDA builds a reusable custom function; give it a name in Define Name.
=LAMBDA(parameter1, …, calculation)
| Argument | Required? | What it is |
|---|---|---|
| parameter1 | Required | The name of the first input. List as many as you need before the calculation. |
| calculation, … | Required | The final formula, which can use every name defined before it. |
Define Margin as =LAMBDA(price, cost, (price-cost)/price) and use =Margin(B2, C2). Fix the logic once in Define Name and every cell that uses it updates.
From the lesson LAMBDA Function.
=LAMBDA(x, x*2) alone in a cell: it defines a function but never calls it (Excel shows #CALC!). Add the input: =LAMBDA(x, x*2)(A2).Type the formula yourself and get it graded instantly, no Excel needed.