ExcelReady
CourseMock testsFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before day one. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Mock tests
  • Function guides
  • Blog

Test prep

  • Excel level test
  • Excel test practice
  • Free screening quiz
  • Certificate

Company

  • About
  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Comparisons
  3. LET vs LAMBDA in Excel: Name a Value or Build a Function

LET vs LAMBDA in Excel: Name a Value or Build a Function

By ExcelReady Team·Updated November 3, 2026·7 min read

The short answer

LET names values inside one formula so you calculate them once and read the formula more easily. LAMBDA turns a formula into your own function with inputs, which you save in Name Manager and reuse anywhere in the workbook. Use LET to tidy one long formula, and LAMBDA when the same logic repeats in many places.

Key takeaways

  • LET works inside one formula. LAMBDA creates a function the whole workbook can call.
  • LET's values are fixed in the formula. LAMBDA's inputs are passed in each time you call it.
  • LET needs Excel 2021, 2024 or Microsoft 365. LAMBDA needs Excel 2024 or Microsoft 365.
  • A LAMBDA typed into a cell without inputs shows #CALC!. Test it with values in brackets or save it as a name.
  • The best custom functions often use LET inside LAMBDA.
On this page+
  1. LET vs LAMBDA at a glance
  2. What LET does
  3. What LAMBDA does
  4. The same calculation solved both ways
  5. When to use LET
  6. When to use LAMBDA
  7. Common mistakes
  8. Our recommendation
  9. Practise it

LET vs LAMBDA in Excel comes down to one question: do you want to tidy one formula, or reuse the same logic in many places? LET names values inside a single formula so each one is calculated once. LAMBDA turns a formula into your own function, with inputs, that you can call anywhere in the workbook. This guide compares them side by side, solves the same task with each, and shows how they work best together.

LET vs LAMBDA at a glance#

LET is about naming inside a formula; LAMBDA is about building a function.

FeatureLETLAMBDA
What it doesNames values or steps inside one formulaCreates a custom function with inputs
Syntax=LET(name1, value1, ..., calculation)=LAMBDA(param1, ..., calculation)
Where it livesIn the cell, as part of the formulaUsually saved in Name Manager
InputsFixed in the formulaPassed in each time you call it
ReuseCopy the formulaCall it by name, like =COMMISSION(B2:B6)
LimitUp to 126 name and value pairsUp to 253 parameters
Typed alone in a cellReturns a resultReturns #CALC! (no inputs)
Can call itselfNoYes (recursion, through its saved name)
Excel versionsMicrosoft 365, Excel 2021, Excel 2024, Excel for the webMicrosoft 365, Excel 2024, Excel for the web

Both functions show #NAME? in versions that don't support them, so check what your colleagues use before you rely on either.

What LET does#

LET lets you give a name to a value or a calculation, then use that name in the rest of the formula. You write pairs of names and values, and the last argument is the result:

Excel formula
=LET(total,SUM(B2:B6),IF(total>10000,total*0.05,total*0.03))

Here total is calculated once, then used three times. Without LET, you'd write SUM(B2:B6) three times, which is longer and harder to check. The name exists only inside this formula: another cell can't use total.

LET helps most with long formulas: a FILTER that you also want to count, a lookup you test and then return, or a rate you use in several places. The full guide to the LET function covers naming rules and errors.

What LAMBDA does#

LAMBDA defines a function. You list its inputs, called parameters, and then the calculation that uses them:

Excel formula
=LAMBDA(sales,IF(SUM(sales)>10000,SUM(sales)*0.05,SUM(sales)*0.03))

On its own in a cell, this shows #CALC!, because the function has no inputs yet. To make it useful, save it:

  1. Go to Formulas > Name Manager > New (or Formulas > Define Name).
  2. Name it COMMISSION.
  3. Paste the LAMBDA formula into Refers to and click OK.

Now any cell in the workbook can use =COMMISSION(B2:B6), or =COMMISSION(C2:C9) for another rep. If the commission rule changes, you edit the name once and every formula updates. The full guide to the LAMBDA function shows how to test and save one step by step.

Because LAMBDAs are saved as names, they follow the same rules as named ranges in Excel: a name must start with a letter, can't contain spaces and can't look like a cell address.

The same calculation solved both ways#

Here are five weeks of sales in B2:B6: 2,400, 3,100, 1,800, 2,900 and 1,200. The rule is 5% commission if total sales are over 10,000, otherwise 3%.

Plain formula#

Excel formula
=IF(SUM(B2:B6)>10000,SUM(B2:B6)*0.05,SUM(B2:B6)*0.03)

The total is 11,400, which is over 10,000, so the result is 11,400 × 5% = 570. It works, but SUM(B2:B6) appears three times. If you change the range, you must change it three times.

With LET#

Excel formula
=LET(total,SUM(B2:B6),IF(total>10000,total*0.05,total*0.03))

Same result, 570. The range appears once. Use this when the formula lives in one place.

With LAMBDA (and LET inside it)#

Save this in Name Manager as COMMISSION:

Excel formula
=LAMBDA(sales,LET(total,SUM(sales),IF(total>10000,total*0.05,total*0.03)))

Then call it anywhere:

Excel formula
=COMMISSION(B2:B6)

Again 570. The LAMBDA defines the input (sales), and LET inside it names the step (total). This combination is the usual pattern for custom functions: LAMBDA for the outside, LET for the inside.

To test a LAMBDA before saving it, add the inputs in brackets straight after it: =LAMBDA(sales,SUM(sales)*0.05)(B2:B6) returns 11,400 × 5% = 570.

When to use LET#

Use LET when a single formula repeats work or is hard to read. It's the better choice when:

  • A calculation appears more than once in the same formula, like the SUM above.
  • You want readable steps, such as rate, sales and bonus instead of cell addresses.
  • The logic is only needed in one place, so a saved function would be overkill.
  • Speed matters, because LET calculates a repeated part once instead of several times.
  • You share the file with Excel 2021 users, who have LET but not LAMBDA.

LET is also the easier one to learn, because nothing is saved outside the cell. Anyone who opens the cell sees the whole formula.

When to use LAMBDA#

Use LAMBDA when the same logic is used in many cells, sheets or reports. It's the better choice when:

  • You copy one complex formula into many places and fear they'll drift apart.
  • A rule may change, such as a commission rate or a fiscal-year start, and you want one place to update it.
  • You want a clear name, like =TENURE(B2) or =PCTCHANGE(B2,C2), that colleagues understand.
  • You need helper functions such as MAP, BYROW or REDUCE, which take a LAMBDA to apply to each value.

The cost is visibility. A saved LAMBDA lives in Name Manager, not in the cell, so a colleague who doesn't know to look there may not understand what =COMMISSION(B2:B6) does. Add a comment in the Name Manager's Comment box.

Common mistakes#

These are the slips people make when they switch between the two:

  1. Typing a LAMBDA into a cell and expecting a result. It shows #CALC! until you give it inputs or call it by name.
  2. Expecting LET names to work in other cells. A LET name only exists inside its own formula. For a name the whole workbook can use, define a name in Name Manager. The guide on named ranges vs cell references explains when that helps.
  3. Forgetting the final calculation in LET. =LET(total,SUM(B2:B6)) has a name but no result, so Excel rejects it. The last argument must be the calculation.
  4. Using a name that looks like a cell. Names like tax1 or AB12 clash with cell addresses. Use tax_rate instead.
  5. Sharing with older versions. A file full of LAMBDA names shows #NAME? in Excel 2021 and earlier.

LET and LAMBDA both arrived with the dynamic array era of Excel. The overview of dynamic arrays in Excel explains how spilling formulas fit in.

Our recommendation#

Start with LET. It makes long formulas shorter and easier to check, it works in Excel 2021 as well as Microsoft 365, and nothing is hidden in Name Manager. Reach for LAMBDA when you notice yourself copying the same complex formula into many places, or when a rule should live in one spot so it can change safely. When you do write a LAMBDA, use LET inside it to name the steps.

In short: LET to tidy one formula, LAMBDA to reuse logic, and both together for custom functions.

Practise it#

Both functions build on the newer dynamic-array way of writing formulas. Practise modern Excel functions in a live spreadsheet: you type FILTER, SORT and UNIQUE formulas and the page checks them instantly. Then try the exercise on this page and count how many times the repeated SUM could be replaced by a single LET name.

Try it yourself

This is a live spreadsheet. Type the formula in the green cell and press Enter.

This is the kind of formula LET is made for. In D2, pay 5% commission if total sales in B2:B6 are over 10,000, otherwise 3%: =IF(SUM(B2:B6)>10000,SUM(B2:B6)*0.05,SUM(B2:B6)*0.03). Notice how often SUM(B2:B6) repeats.

fx
ABCDE
1
Week
Sales
2
Week 1
2400
Commission
3
Week 2
3100
4
Week 3
1800
5
Week 4
2900
6
Week 5
1200
7
8
9

Tip: Test SUM(B2:B6)>10000 in IF, then multiply the same SUM by 0.05 if TRUE and 0.03 if FALSE.

Practise this in a lesson

LessonModern Excel: XMATCH, SORTBY, TEXTSPLIT and spill references (A2#)Split names with TEXTSPLIT, find positions with XMATCH, sort by another column with SORTBY, and refer to a whole spilled result with A2#.

Frequently asked questions

What is the difference between LET and LAMBDA in Excel?

+

LET gives names to values or calculations inside a single formula. LAMBDA defines a reusable function with parameters, which you usually save under a name and call like =COMMISSION(B2:B6). LET tidies one formula; LAMBDA shares logic across many.

Can you use LET inside LAMBDA?

+

Yes, and it's common. The LAMBDA defines the inputs, and LET inside it names the steps of the calculation, so the custom function stays short and readable.

Is LET faster than a normal formula?

+

It can be. If a formula repeats the same calculation several times, LET calculates it once and reuses the result. For short formulas with no repetition, the difference is too small to notice.

Why does my LAMBDA show #CALC!?

+

A LAMBDA entered in a cell without any inputs has nothing to calculate. Add the inputs in brackets after it to test it, such as =LAMBDA(x,x*2)(5), or save it in Name Manager and call it by name.

Which Excel versions support LET and LAMBDA?

+

LET works in Microsoft 365, Excel for the web, Excel 2021 and Excel 2024. LAMBDA works in Microsoft 365, Excel for the web and Excel 2024. Older versions show #NAME? for both.

Sources

  • Define and use names in formulas - Microsoft Support
  • Dynamic array formulas and spilled array behavior - Microsoft Support

Written and checked by the ExcelReady Team. First published November 3, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. LET vs LAMBDA at a glance
  2. What LET does
  3. What LAMBDA does
  4. The same calculation solved both ways
  5. When to use LET
  6. When to use LAMBDA
  7. Common mistakes
  8. Our recommendation
  9. Practise it

Keep reading

Dynamic arrays· 6 min read

LET Function in Excel: Name the Parts of a Formula

The LET function in Excel gives names to values or calculations inside one formula. You write =LET(name, value, calculation), then use the name instead of repeating the same piece. Excel works out each value once, so long formulas get shorter, easier to read and often faster. LET needs Microsoft 365, Excel 2021 or later.

Dynamic arrays· 5 min read

LAMBDA Function in Excel: Write Your Own Functions

LAMBDA lets you build your own Excel function from a formula. List the inputs, then the calculation: =LAMBDA(old,new,(new-old)/old). Test it by adding values in brackets after it, then save it in Formulas > Name Manager with a name like PCTCHANGE and use =PCTCHANGE(B2,C2) anywhere in the workbook. It needs Microsoft 365 or Excel 2024.

Dynamic arrays· 6 min read

Dynamic Arrays in Excel Explained Simply

Dynamic arrays let one Excel formula return several values that spill into the cells below or beside it. Type =UNIQUE(B2:B9) in one cell and the whole list appears, then resizes when the data changes. They need Excel 2021, Excel 2024, Microsoft 365 or Excel for the web. Refer to a whole spill with a # after its first cell, such as E2#.

More on comparisons

  • Line Chart vs Scatter Plot in Excel: Which to Use
  • MATCH Type 0 vs 1 vs -1 Explained
  • MATCH vs XMATCH in Excel
  • MAX vs LARGE in Excel
  • Named Ranges vs Cell References in Excel
  • Nested IF vs IFS: Which Is Better?
All comparisons articles →

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback, right in your browser. Nothing to download.

Start learning for free