LAMBDA Function
LAMBDA creates parameterized calculations using native Excel formulas. It can be invoked immediately or saved as a workbook name for reuse without VBA.
| Excel LAMBDA Function | |||||||||||
| LAMBDA packages parameterized formula logic and can be invoked directly. | |||||||||||
| Source data, editable | Examples | ||||||||||
| Input | Value | Input | Value | Example | Formula syntax | Result | |||||
| Number | 10 | Multiplier | 2 | Double a value | =LAMBDA(x,x*2)(B12) | 20 | |||||
| Price | 12 | Quantity | 10 | Two parameters | =LAMBDA(price,qty,price*qty)(B13,D13) | 120 | |||||
| Base | 200 | Uplift | 15.0% | Percentage uplift | =LAMBDA(base,rate,base*(1+rate))(B14,D14) | 230 | |||||
| Reliability checks | |||||||||||
| Inline LAMBDA doubles ten to twenty | OK | ||||||||||
| Two-parameter LAMBDA returns 120 | OK | ||||||||||
Overview
LAMBDA packages Excel logic into a parameterized calculation without VBA.
Quick reference
Syntax: =LAMBDA([parameter1, ...], calculation)([argument1, ...])
Returns: The calculation result after supplied arguments are substituted for parameters. (any)
Arguments:
parameters(optional) — Names representing values supplied when the function is called.calculation(required) — Formula expression evaluated by the function.
The final calculation is required; parameters are optional names that receive values when the function is called. A LAMBDA must be invoked directly or saved as a defined name to return a useful result.
Common uses
- Standardizing repeated business calculations
- Encapsulating complex array logic
- Creating workbook functions without macros
When not to use it
Use LET when names only need to clarify one formula. Create a named LAMBDA when the same governed calculation must be reused across many cells without copying its internal logic.
Calculations
LAMBDA defines parameters followed by a final calculation. An immediately invoked LAMBDA adds parentheses containing arguments after the definition. For wider reuse, assign the LAMBDA to a name in Name Manager and call it like a built-in function.
Function behavior
Situation | Behavior |
|---|---|
Definition not invoked or named | Excel can return |
Wrong argument count | Excel returns |
Recursive logic without exit | Excess recursion returns |
Parameter scope | Parameters exist only inside the LAMBDA. |
Common errors
Defining but not calling the function
What happens: A cell-level definition may return #CALC!.
Better approach: Invoke it with arguments or save it as a defined name.
Choosing ambiguous parameters
What happens: The formula becomes difficult to audit.
Better approach: Use names such as price, quantity, and rate.
Example
Example 1 — Double a number
=LAMBDA(x,x*2)(B12)
With B12 equal to 10, the result is 20.
Example 2 — Price times quantity
=LAMBDA(price,qty,price*qty)(B13,D13)
The workbook passes 15 and 8, returning 120.
Example 3 — Apply a rate
=LAMBDA(base,rate,base*(1+rate))(B14,D14)
With a base of 200 and rate of 15%, the result is 230.
Example workbook
The workbook demonstrates three immediately invoked LAMBDAs with one or two parameters and automated result checks.
Key takeaway
LAMBDA turns proven worksheet logic into a parameterized function that can be tested and reused.