LAMBDA Function in Excel: Create Your Own Excel Functions

⏱ 1 min readUpdated 28 September 2026

LogicalLevel: ExpertAvailable in: Excel 365 / 2021+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. Power combo
  6. 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 article

Stuck on a step? Ask a question and the AI answers using this article.

Free · AI can be wrong