keepcalculator

06 Numbers and Powers

Excel LET Function: Most Underrated? Yes

Card No. 06·55299 · Updated · Standard formula, shown below

The LET function is arguably the most underrated feature in Excel because it lets you name intermediate calculations inside a single formula, making complex formulas dramatically easier to read, debug, and reuse. You enter a series of name/value pairs followed by a calculation that uses those names, and Excel computes the whole thing in one cell. This article explains what LET does, why it matters, and how to use it effectively, with concrete examples and common pitfalls.

Why LET Is Underrated

Most Excel users never touch LET because they don’t know it exists, or they think it’s only for programmers. In reality, LET solves a problem every spreadsheet user faces: long, repetitive formulas that are hard to audit. Without LET, a formula like =IF(SUM(A1:A10)>100, SUM(A1:A10)*0.1, SUM(A1:A10)*0.05) repeats SUM(A1:A10) three times. With LET, you write =LET(s, SUM(A1:A10), IF(s>100, s*0.1, s*0.05)) – once you define s, you just reference it. This reduces errors, makes the formula self-documenting, and speeds up calculation because Excel only computes the repeated expression once.

How to Use LET in Practice

LET works in Excel 365, Excel 2021, and Excel for the web. It’s not available in older versions, but you can still use it if you save the file in a compatible format – though older versions won’t calculate it. Here are the key steps:

  • Start with =LET(.
  • Add name/value pairs separated by commas. For example, subtotal, A2*B2,.
  • Finish with the calculation that uses those names.
  • Names are case-insensitive, so Subtotal and subtotal are the same.
  • You can use up to 126 name/value pairs in one LET.

For instance, to calculate the area of a rectangle with length and width in cells A1 and B1:

=LET(len, A1, wid, B1, len*wid)

Common Mistakes and Misconceptions

One frequent error is using a name that looks like a cell reference, such as R1 or C1 – Excel will treat it as a cell, not a name. Another is forgetting that names cannot contain spaces or start with a number. Also, some users expect LET to behave like a macro or a user-defined function, but it’s purely a formula construct – it doesn’t store values permanently, and it only exists within the cell where it’s written. A common misconception is that LET is only for advanced users; in fact, it’s a readability tool that benefits anyone who writes formulas longer than a few characters.

Comparisons: LET vs. Helper Columns vs. Named Ranges

Before LET, you had two main ways to avoid repeating a calculation: use a helper column (put the intermediate result in a separate cell) or define a named range/name for a constant. LET combines the benefits of both:

  • Helper columns – easy to see intermediate results, but they clutter the sheet and can be accidentally deleted. LET keeps everything in one cell.
  • Named ranges – good for constants like tax rate, but they don’t hold calculated expressions. LET can hold any expression, not just a fixed value.
  • LET – keeps the formula self-contained, which is great for sharing workbooks or creating one-cell solutions.

However, if you need to reference the same intermediate result in multiple formulas across the sheet, a helper column or a named range is still better because you can reference it directly without repeating the LET logic.

When to Use LET (and When Not To)

Use LET when:

  • The same expression appears multiple times in your formula.
  • The formula is long and you want to give meaningful names to parts.
  • You want to avoid recalculating a heavy function (like a volatile one) more than once.

Don’t use LET for:

  • Simple one-off formulas – it adds unnecessary length.
  • Formulas that need to be edited by users unfamiliar with LET – they might find it confusing.
  • When you need to see intermediate values – a helper column is clearer.

Frequently Asked Questions

Is LET available in Excel 2019 or older?

No. LET was introduced in Excel 365 (as a beta in 2020) and later in Excel 2021. If you open a workbook with LET in an older version, it will show a #NAME? error because the function is not recognized.

Can I use LET with arrays or dynamic arrays?

Yes, LET works seamlessly with dynamic arrays. For example, you can define a name that holds a spilled array and then use it in further calculations, like =LET(data, A1:A10*2, SUM(data)).

Does LET improve performance?

Yes, because it calculates each defined value only once. If you have a formula that repeats a complex calculation, LET can reduce calculation time, especially in large workbooks.

Can I use LET inside other functions?

Yes, LET is a function like any other, so you can nest it inside IF, SUM, VLOOKUP, etc. For example, =IF(LET(x, A1, x>10), "High", "Low") works.

How many variables can I define in LET?

You can define up to 126 name/value pairs. After that, you must include the calculation expression, so the total number of arguments is 127.

Can I use a name that is the same as a cell reference?

No, Excel will interpret it as a cell reference. For example, LET(R1, 5, R1*2) will return a #NAME? error because R1 is treated as a cell. Use names like r1 or row1 instead.

Related

Method: the standard formula for this calculation, rounded as each result states. See how the calculators work or report an error.

More cards in this drawer

The whole Numbers and Powers drawer →