FormulaCraft

How to use LET to write readable formulas in Excel and Google Sheets

Topic:LET (readable formulas)
Excel & Google Sheets
=LET(base,A2:A6,adj,B2:B6,discounted,base*(1-adj),SUM(discounted))

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Identify the sub-expressions in your formula that are repeated or hard to read. For example, a discount formula: base price array * (1 - discount rate array).
  2. 2Open LET: =LET(name1, expr1, name2, expr2, ..., result_expression).
  3. 3Assign base = A2:A6 (price column) and adj = B2:B6 (discount rate column).
  4. 4Define discounted = base*(1-adj) — this is the intermediate array, named for clarity.
  5. 5The final expression SUM(discounted) returns the total revenue after discount without repeating the multiplication formula.

Tips

Need it for your exact data?

Describe your columns in plain English and get the precise formula for your sheet, with the right Excel or Sheets syntax.

Frequently asked

How many names can LET hold?

LET supports up to 126 name-value pairs in Excel. In practice, more than 10-12 names is a sign the formula should be split into separate helper cells.

Does LET improve performance?

Yes — any sub-expression named in LET is computed once and reused. If the same SUMIF or VLOOKUP appears three times in a formula, wrapping it in LET cuts the computation to one evaluation.

Can LET names reference cells outside the formula?

No — LET names are local to the formula. They can reference cell ranges (like A2:A6) but those are external ranges, not LET-defined values.

More on LET (readable formulas)

See all →

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: