LET lets you name a value or sub-calculation once and reuse it — making long formulas readable and faster, because a repeated calculation runs only once.
net is computed once and reused.
The example
Compute net then tax without repeating the subtraction.
| A | B | |
|---|---|---|
| 1 | Step | Value |
| 2 | Gross − discount (net) | 100 |
| 3 | net + 8% tax | 108 |
The formula
Define names, then the result:
How it works
LET takes name/value pairs, then a final result:
- Each pair is a name and the value it stands for:
net, A1-A2. - Later pairs can use earlier names:
tax, net*0.08. - The last argument is the result expression, written with those readable names.
- A value named in LET is calculated once — repeating
A1-A2five times in a normal formula recalculates it five times; LET does it once.
Great with heavy lookups. If a slow XLOOKUP appears several times in one formula, name it in LET so it runs a single time — both clearer and faster. Names are local to the formula; they don’t clutter the workbook.
Try it: interactive demo
Gross and discount → net + 8% tax.
Variations
Reuse a lookup
Run XLOOKUP once:
Multiple names
Chain steps:
Readable percent change
Name old & new:
Pitfalls & errors
Odd number of arguments. LET needs name/value pairs plus a final result — so an odd total. A missing result errors.
365/2021 only. LET doesn’t exist in Excel 2019 or earlier — the formula returns #NAME? there.
Names can’t clash with cell refs. Don’t name a variable A1 or SUM; use plain words.
Practice workbook
Frequently asked questions
What does the LET function do in Excel?
Why is LET faster?
Which Excel versions have LET?
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