The Excel LET function lets you give names to values and expressions inside a formula, then use those names in the final calculation. Two payoffs: formulas become readable — tax instead of a repeated 40-character expression — and faster, because Excel computes each named value once no matter how many times the name appears. If you have ever pasted the same XLOOKUP three times into one IF, LET is the cure.
Syntax
| Argument | Description | |
|---|---|---|
name1 | Required | The first name. Must start with a letter, contain no spaces, and must not look like a cell reference — tax is fine, A1 or TX2 are not. |
value1 | Required | The value or expression assigned to name1 — a number, a range, or a whole formula. |
name2, value2, ... | Optional | Up to 126 name/value pairs. Later pairs may use earlier names — margin can be defined in terms of revenue and cost. |
calculation | Required | The final expression, using any of the names. Always the last argument — this is what the cell displays. |
Available in: Excel for Microsoft 365, Excel 2021 and later, and Excel for the web. Older versions show #NAME?. The names live only inside the formula — they don’t appear in the Name Manager and can’t clash with other cells’ formulas.
Name once, use many times
Here is the same business rule — a 10% discount on orders over $100, looked up from a price list — written both ways:
Beyond readability, this is a real performance difference: Excel evaluates value1 a single time and reuses the result wherever the name appears. On a sheet with thousands of rows of triple-lookup formulas, the LET version does a third of the work.
Chained names build up a calculation step by step, like a tiny script:
Try it: with and without LET, side by side
Change the looked-up price. Both formulas always agree on the answer — but watch the evaluation counter: the plain version re-runs the lookup for every copy, LET runs it once.
LET with LAMBDA and dynamic arrays
LET is the natural companion of the dynamic-array family. Name an intermediate array once, then filter, sort, and measure it without recomputing:
Inside LAMBDA definitions, LET keeps multi-step logic legible — most serious LAMBDAs open with a LET:
And it stacks happily with MAP, BYROW, and SCAN — name the pieces, keep the final line short.
Style tip: add Alt+Enter line breaks between each name/value pair in the formula bar. LET formulas formatted one-pair-per-line read like code — because they are.
Errors & common pitfalls
#NAME? — two distinct causes. Either your Excel predates LET (it needs Excel 2021 or Microsoft 365), or a name breaks the rules: names must start with a letter and must not look like a cell reference. rate works; R2 is a cell address and fails; 2x starts with a digit and fails.
#VALUE! — unpaired arguments. Every name needs a value, and the calculation must come last. An even argument count usually means a value is missing or the final calculation was forgotten.
Pitfall: using a name before it’s defined. Pairs evaluate in order — name2’s value may reference name1, but not the other way round.
Pitfall: shadowing. A LET name temporarily overrides a workbook-level defined name inside that formula. Legal, but confusing — pick names that don’t collide.
Practice workbook
Frequently asked questions
What does the LET function do in Excel?
=LET(x, A2*B2, x+x^2). Result: shorter, more readable formulas, and each named expression is computed only once.Does LET actually make formulas faster?
What are the naming rules for LET?
tax and total_q1 are fine, but A1, XFD2, and 2x all fail with a name error.Which Excel versions support LET?
Can a LET name refer to another LET name?
=LET(rev, B2, cost, C2, margin, rev-cost, margin/rev). The reverse direction fails, since pairs evaluate top to bottom.LET vs defined names (Name Manager) - when to use which?
Master functions like this in one day
This page covers one function. Our Excel Formulas and Functions class covers the 30 that matter most — live, hands-on, taught by professionals in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.
See the Formulas & Functions Class