LAMBDA
Define a calculation with named inputs that can be reused throughout a workbook.
Syntax
=LAMBDA([parameter1, …], calculation)Worked example
Define a two-input calculation and immediately call it with 4 and 7.5.
=LAMBDA(units,unitPrice,units*unitPrice)(4,7.5)Result 30
Microsoft documentation
Check the arguments, supported editions and behavior of this function in Microsoft’s reference.
Microsoft referenceExcel LAMBDA Function Explained: Create Your Own Functions
Practice LAMBDA
Define a two-parameter LAMBDA that multiplies units by unitPrice. Call it with A2 and B2.
| A | B | |
|---|---|---|
| 1 | ||
| 2 |
Show example formula
=LAMBDA(units,unitPrice,units*unitPrice)(A2,B2) Lesson quiz
Answer three questions to see your level in this lesson.
