LET Function
Names parts of a formula so you can reuse them and read it easily.
Category
Logical
Available in
Microsoft 365, Excel 2021+
Returns
The result of the final calculation
Overview
LET lets you give a calculation a name inside a formula, then use that name as many times as you like. Excel works the value out once.
Long formulas become shorter, faster and much easier to read — it's like writing your working out, line by line.
Syntax
Arguments
| Argument | Required? | What it does |
|---|---|---|
| name1 | Yes | A name for the first value. It must start with a letter and can't look like a cell address. |
| value1 | Yes | The value or calculation that name1 stands for. |
| name2, value2, … | Optional | More name/value pairs. Later values can use earlier names. |
| calculation | Yes | The final formula, using the names. Always the last argument. |
Examples
Example 1 — Using a total twice
Give a 5% discount when the order total is over 2,000.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Item | Amount | To pay | |
| 2 | Desks | 620 | 2194.5 | |
| 3 | Chairs | 480 | ||
| 4 | Lamps | 500 | ||
| 5 | Shelves | 710 |
- total is set to SUM(B2:B5) = 2,310.
- The calculation checks total>2000 — TRUE.
- It returns total*0.95 = 2,194.50. SUM ran only once.
Example 2 — Not repeating a lookup
Without LET you'd write the XLOOKUP twice.
Example 3 — Building in steps
Each name can use the ones before it.
Common mistakes
- #NAME? errors. A name looks like a cell address (tax1, Q2) or is misspelt in the calculation. Use clear names like taxRate.
- The calculation is missing. LET needs an odd number of arguments — the last one is the result.
Notes
- Names exist only inside that one formula. For names the whole workbook can use, see Name Manager.
- Related functions: LAMBDA, FILTER, XLOOKUP.

Author
Kyle Stott
Certified Microsoft Excel Expert
Kyle has worked professionally with Microsoft Excel for over a decade and has consulted on and taught Excel best practices to over 400 companies across 30+ countries.