Excel Let Function

If you just need to excel let function and move on, the boxed answer at the top is all you need. The rest of this page is for when you want to understand why it works in Excel, adapt it to a trickier version, or make it robust enough to hand to a colleague. We keep the opening short on purpose — the depth is here when you want it, not in your way when you don’t.

Exact answer

In Excel: use =LET(name, value, …, calculation) — it names an intermediate result so a long formula computes it once and reads like prose. Function availability: LET: Excel 2021+. These are Microsoft's version markers; earlier perpetual releases do not include these functions. Check the actual product and update channel before using the formula. A marker does not establish an identical Web/Mac workflow or Google Sheets support.

On this page8

Syntax

=LET(name1, value1, [name2, value2], ..., calculation)

Arguments

Argumentrequired / optionalDescription
name1requiredA name for the first intermediate value.
value1requiredThe expression that name refers to.
calculationrequiredThe final expression, which may use every name defined above it.

Related functions

LAMBDAIFSINDEX/MATCH
▤Annotated stepsExcel
1

Function availability: LET: Excel 2021+. These are Microsoft's version markers; earlier perpetual releases do not include these functions. Check the actual product and update channel before using the formula. A marker does not establish an identical Web/Mac workflow or Google Sheets support.

2

Identify the sub-expression your formula repeats, or the one that needs a name to be understandable.

3

Type =LET( then a name, a comma, and the expression it stands for.

4

Add further name-and-expression pairs if you need them.

5

Finish with the final calculation, which can use every name you defined.

Ctrl+CthenCtrl+Shift+V⌘+Cthen⌘+Ctrl+VPaste values · WindowsMac

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 outcome you expected 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. Check the referenced cells, argument order and result type in your workbook. Start with the worked example before changing an input, then compare the changed result with the calculation you expected. An error value or a result of a different type is a reason to inspect the inputs and arguments.

In Google Sheets

Function availability: LET: Excel 2021+. These are Microsoft's version markers; earlier perpetual releases do not include these functions. Check the actual product and update channel before using the formula. A marker does not establish an identical Web/Mac workflow or Google Sheets support. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. For “excel let function”, keep the input cells and the result visible while you check the formula in Excel. Follow the worked example and change one input at a time. The steps explain the workbook calculation; this page does not run a live calculator for that task.

Common mistakes

  • Choosing a name that looks like a cell reference, such as A1 or TAX1, 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?.

Which Excel release does this formula require?

Function availability: LET: Excel 2021+. These are Microsoft's version markers; earlier perpetual releases do not include these functions. Check the actual product and update channel before using the formula. A marker does not establish an identical Web/Mac workflow or Google Sheets support.