Save a LAMBDA as a Reusable Function

Excel Formulas › Advanced

365 / 2021Name Manager

Write a formula once, name it, and call it everywhere like a built-in function. A named LAMBDA turns your own logic — a tax calc, a custom format — into =MyFunction(…).


Quick formula: Formulas → Name Manager → New; Name and a LAMBDA in Refers to:
Name: GrossUp Refers to: =LAMBDA(net, rate, net*(1+rate))
Now =GrossUp(A1, 0.08) works anywhere in the workbook, just like a native function.

Functions used (tap for the full reference guide):

The example

A reusable “gross-up” function.

AB
1CallResult
2=GrossUp(100, 0.08)108

The formula

Define once in Name Manager, call anywhere:

Name: GrossUp Refers to: =LAMBDA(net, rate, net*(1+rate)) Use: =GrossUp(A1, 0.08) // your own function

How it works

Name Manager turns a LAMBDA into a function:

  1. Build and test the LAMBDA in a cell first: =LAMBDA(net, rate, net*(1+rate))(100, 0.08).
  2. Open Formulas → Name Manager → New. Enter a Name and paste the LAMBDA (without test arguments) in Refers to.
  3. Click OK. The name is now a custom function usable across the workbook.
  4. Call it like any function: =GrossUp(A1, 0.08). Update the definition once and every call updates.

Share with a workbook. Named LAMBDAs live in the workbook, so they travel with the file. For a library across files, save them in a template, or use Excel’s Advanced Formula Environment / LAMBDA library add-in to manage and import them.

Try it: interactive demo

Live demo

GrossUp(net, rate).

GrossUp =

Variations

Test inline first

Call a LAMBDA immediately:

=LAMBDA(n,r, n*(1+r))(100, 0.08)

No-argument constant

A named value too:

TaxRate = 0.0825

Compose functions

Use one named LAMBDA inside another.

Pitfalls & errors

Drop the test arguments. In Name Manager, the Refers-to is just =LAMBDA(…) — don’t include the (100, 0.08) call, or it stores a value, not a function.

Name rules apply. No spaces, can’t look like a cell reference, must start with a letter.

365/2021 only. Named LAMBDAs need LAMBDA support; older Excel can’t open them as functions.

Practice workbook

📊
Download the free Save a LAMBDA as a Reusable Function practice workbook
A named-LAMBDA example (definition + call shown as text/result), plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I create a custom function in Excel without VBA?
Write a LAMBDA, then Formulas → Name Manager → New, give it a name, and paste =LAMBDA(...) in Refers to. Call it like a built-in function, e.g. =GrossUp(A1, 0.08).
Do named LAMBDAs work in other workbooks?
They're stored in the workbook, so they travel with the file. To reuse across files, keep them in a template or use a LAMBDA library add-in.
Why did my named LAMBDA store a number instead of a function?
You included the call arguments in Refers to. Define it as just =LAMBDA(...) without the trailing (args).

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: LAMBDA function · Recursive LAMBDA · LET function

Function references: LAMBDA