
LogicalLevel: ExpertAvailable in: Excel 365 / 2021+
In this article
- Syntax
- Examples
- Example 1
- Example 2
- Power combo
- Related functions
LAMBDA turns a formula into a reusable custom function. Save it in Name Manager and use it like any built-in function — no VBA.
Syntax
=LAMBDA([parameter1, ...], calculation)
| Argument |
What it means |
parameter |
Inputs your function receives. |
calculation |
The formula using those inputs. |
Examples
Example 1
=LAMBDA(amt, rate, amt*(1+rate))(1000, 18%)
Test a lambda directly in a cell: 1180.
Example 2
Name: GSTINCL Refers to: =LAMBDA(amt, rate, ROUND(amt*(1+rate), 2))
Then use =GSTINCL(B2, 18%) anywhere in the workbook.
Power combo
=BYROW(B2:M20, LAMBDA(r, SUM(r)))
Row totals for a whole table in one formula.
LET · BYROW · MAP · SCAN
📚 Part of the free Excel course: Beginner → Expert · Try it in the Formula Lab or ask the AI Helper.
✨ Ask AI about this articleStuck on a step? Ask a question and the AI answers using this article.
Free · AI can be wrong