In Excel: use =LET(name, value, …, calculation) — it names an intermediate result so a long formula computes it once and reads like prose.
Syntax
Arguments
| Argument | Description | |
|---|---|---|
name1 | required | A name for the first intermediate value. |
value1 | required | The expression that name refers to. |
calculation | required | The final expression, which may use every name defined above it. |
Related functions
Identify the sub-expression your formula repeats, or the one that needs a name to be understandable.
Type =LET( then a name, a comma, and the expression it stands for.
Add further name-and-expression pairs if you need them.
Finish with the final calculation, which can use every name you defined.
Need it as an auditable file?
Ships inside the linked template — formula-driven, unlocked, audit-ready.
What this does
LET assigns names to intermediate values inside a formula, then uses them in a final calculation. It buys two things at once. Readability: a formula that says "rate" and "base" instead of repeating XLOOKUP twice can be understood by the next person. And speed: each named expression is evaluated once, so a formula that previously called the same lookup three times now calls it once, which is a real difference on large sheets. Names must start with a letter and must not collide with cell references. Requires Excel 365. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “excel let function”. Start on a copy or a tiny sample, keep the affected formula visible, and compare the result with the tool above before you touch the real workbook. When a formula is involved, keep the inputs labelled beside it, reference cells instead of typing values, and apply number formatting only after the result checks out. The point is a calculation you can defend to a CFO or an auditor, but the practical win is that someone else can open the file and understand what happened without asking you.
A worked example
A formula that looked up the same value three times becomes =LET(rate, XLOOKUP(A2, Rates[Code], Rates[Rate]), IF(rate="", "no rate", B2*rate)) — one lookup, and the intent is legible. Adding a second name: =LET(base, B2*C2, tax, base*0.2, base+tax) computes the base once and reuses it. LET is the first thing Excel has offered that makes a long formula readable, which matters more than the speed gain on any formula somebody else will maintain. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.
In Google Sheets
Everything above works in Google Sheets too. Excel and Sheets share the formula syntax used here; only the surrounding menus are arranged differently. That portability is deliberate — learn it once and it follows you between the two tools and across Windows and Mac. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. If you take one thing from this page on “excel let function”, make it the habit rather than the keystrokes: set the problem up with labelled inputs, reference those cells, and let Excel do the recomputing. Bookmark the page for the syntax, but do the example once in a blank sheet and check it against the tool above — five minutes of hands-on practice fixes the method in memory far better than re-reading, and it surfaces the small snags while they are still harmless. After that the technique is genuinely yours: faster than searching for it again, and reliable enough to drop into work that other people depend on.
Common mistakes
- Choosing a name that looks like a cell reference, such as
A1orTAX1, which Excel rejects. - Forgetting the final calculation argument — LET must end with an expression, not a name-value pair.
- Using it in a workbook shared with older Excel versions, where the whole formula returns
#NAME?.
Frequently asked questions
Does LET make formulas faster?
Yes, when it removes repetition — each named expression is evaluated once instead of at every mention.
What names are allowed?
Anything starting with a letter that is not a valid cell reference. "rate" and "taxBase" work; "A1" does not.
Which versions support LET?
Microsoft 365 and Excel for the web. Older perpetual versions return #NAME?.