LAMBDA Function in Excel: Create Your Own Excel Functions

LAMBDA Function in Excel: Create Your Own Excel Functions featured illustration

πŸ“Ž This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 12 October 2026

LogicalLevel: ExpertAvailable in: Excel 365 / 2021+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Example 2
  5. Power combo
  6. LAMBDA in practice
  7. Where you will use it
  8. Worked example
  9. Mistakes people make
  10. Related functions
  11. Continue learning

LAMBDA turns a formula into a reusable custom function. Save it in Name Manager and use it like any built-in function β€” no VBA.

Advertisement

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.

LAMBDA in practice

Where you will use it

  • Your own reusable function like =GSTINCL(amt)
  • Clean up repeated logic
  • Share functions across a workbook

Worked example

AmountFormulaResult
1000=LAMBDA(a,ROUND(a*1.18,2))(A2)1180
250=LAMBDA(a,ROUND(a*1.18,2))(A3)295
99=LAMBDA(a,ROUND(a*1.18,2))(A4)116.82

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
Not naming itSave it in Name Manager to call it by name
DebuggingTest with an inline call first, as here

LET Β· BYROW Β· MAP Β· SCAN

πŸ“š Part of the free Excel course: Beginner β†’ Expert Β· Try it in the Formula Lab or ask the AI Helper.

⚑ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

πŸ“Ž Practice files for this article

  • πŸ“—
    Practice workbook: Logic, LET & LAMBDA17 tasks on realistic sales data β€” type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX Β· 35 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

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

Free Β· AI can be wrong

Leave a Reply

Your email address will not be published. Required fields are marked *