Cleaner Formulas With Named LAMBDAs
Save a LAMBDA in the Name Manager for use across the workbook.
Cleaner Formulas With Named LAMBDAs is a free Excel Formulas Academy lesson on CoddyKit — lesson 4 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Excel Formulas Academy learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
From Inline to Named
So far you have called LAMBDAs inline, typing the whole definition each time. That works for testing but is messy for everyday use.
A named LAMBDA stores your function under a friendly name so you can call it like =ToFahrenheit(A2) anywhere in the workbook. This is where LAMBDA truly shines, turning your formulas into a reusable toolkit.
In this lesson you will save LAMBDAs in Excel's Name Manager and Google Sheets' Named functions, then call them across your sheets.
The Name Manager in Excel
Excel stores named items, including named LAMBDAs, in the Name Manager.
Open it from Formulas, Name Manager, then click New. You will give your function a Name and paste the LAMBDA into the Refers to box.
The key rule: paste the LAMBDA without any inline values at the end. The arguments will be supplied later when you call the name.
Creating Your First Named LAMBDA
Let's name our temperature converter. In Name Manager click New, set the Name to ToFahrenheit, and put this in Refers to.
Notice there is no trailing (A2) here, just the bare LAMBDA. The parameter c stays open so callers can supply their own value.
=LAMBDA(c, c*1.8 + 32)Calling Your Named LAMBDA
Once saved, your function behaves exactly like a built-in. Type it into any cell and pass a value.
If A2 holds 20, this returns 68. Excel even shows ToFahrenheit in its autocomplete dropdown as you type. You have effectively added a new function to your workbook.
=ToFahrenheit(A2)A More Useful Example
Named LAMBDAs are perfect for business logic you repeat. Imagine a tiered discount: 10 percent off orders over 500, otherwise nothing.
Save this as Discount in the Name Manager. The body uses an IF to decide the rate based on the amount parameter.
Now anyone can write =Discount(B2) and get consistent results without re-deriving the rule.
=LAMBDA(amount, IF(amount>500, amount*0.1, 0))Using LET Inside a Named LAMBDA
Complex named functions stay readable when you use LET inside them.
This NetPrice function takes a price and a rate, names the tax step, and returns the total. Save the whole thing under the name and call =NetPrice(100, 0.2) to get 120.
The internal names never leak out; callers only see the clean function name.
=LAMBDA(price, rate, LET(tax, price*rate, price + tax))Named Functions in Google Sheets
Google Sheets calls this feature Named functions, found under Data, Named functions.
Instead of pasting a raw LAMBDA, Sheets gives you a guided dialog: enter a function name, list each argument, and write the formula body using those argument names. You can even add a description and example.
The result is the same: a reusable function like =TOFAHRENHEIT(A2) you can call anywhere in the file.
Editing and Updating
A huge benefit of named LAMBDAs is single-point maintenance. If your discount rule changes from 10 percent to 12 percent, you edit the definition once in the Name Manager.
Every cell that calls =Discount(...) instantly uses the new rule. Compare that to hunting down dozens of copied formulas. Centralized logic means fewer errors and faster updates.
=LAMBDA(amount, IF(amount>500, amount*0.12, 0))Sharing and Portability
Named LAMBDAs travel with the workbook. Anyone who opens the file can use your functions immediately, no add-ins or macros required.
To reuse a function in another workbook, copy a cell that uses it into the new file and Excel brings the definition along, or recreate it in that file's Name Manager. This makes named LAMBDAs a safe, IT-friendly way to share logic.
Naming Best Practices
Good names make your toolkit pleasant to use:
- Use descriptive verbs or nouns:
ToFahrenheit,Discount,NetPrice - Avoid names that clash with built-in functions
- No spaces; use PascalCase or underscores
- Add a comment or description so teammates know what it does
A small library of well-named LAMBDAs can dramatically simplify a complex workbook.
Course Wrap-Up
You have now traveled the full LET and LAMBDA journey:
- LET names intermediate steps for readable, faster formulas
- LAMBDA defines custom functions from formulas alone
- MAP and REDUCE loop a LAMBDA across arrays
- Named LAMBDAs make those functions reusable everywhere
Together these turn the spreadsheet into a place where you build your own clean, maintainable tools.
Quick Check
Test your understanding of saving a named LAMBDA.
Recap: Cleaner Formulas With Named LAMBDAs
You learned to store LAMBDAs as named functions for clean, reusable formulas.
- Excel: save in the Name Manager with a bare LAMBDA in 'Refers to'
- Google Sheets: use Data, Named functions with a guided dialog
- Call your function like a built-in:
=ToFahrenheit(A2) - Edit the definition once and every use updates
- Use clear, non-clashing names and add descriptions
You now have everything you need to build your own spreadsheet function library.
=ToFahrenheit(A2)Frequently asked questions
Is the “Cleaner Formulas With Named LAMBDAs” lesson free?
Yes — the full text of “Cleaner Formulas With Named LAMBDAs” is free to read here on the web, and the Excel Formulas Academy course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Excel Formulas Academy course, upgrade to CoddyKit PRO.
What will I learn in “Cleaner Formulas With Named LAMBDAs”?
Save a LAMBDA in the Name Manager for use across the workbook. You practise Excel Formulas Academy with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Excel Formulas Academy?
No prior experience is required. Excel Formulas Academy on CoddyKit is structured for beginners through advanced learners; this is — lesson 4 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Cleaner Formulas With Named LAMBDAs” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Excel Formulas Academy lesson?
Yes. Every Excel Formulas Academy lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Naming Steps With LET
- Defining Custom Functions With LAMBDA
- Looping With MAP and REDUCE
- Cleaner Formulas With Named LAMBDAs