WorkbookLogic
FunctionFormula designadvancedLETAVERAGEIFROUND

LET Function

By WorkbookLogic

LET assigns names to intermediate values inside a formula. It makes complex calculations easier to read, audit, and maintain while avoiding repeated evaluation.

ExcelLast reviewed Sep 11, 2026
let-function-v1.0.0.xlsx
Excel LET Function
LET assigns local names to intermediate values and returns a final calculation.
Source data, editableExamples
InputValueInputValueExampleFormula syntaxResult
Price12Quantity10Price × quantity=LET(price,B12,qty,D12,price*qty)120.00
Value 18Value 212Average named values=LET(a,B13,b,D13,AVERAGE(a,b))10.00
Subtotal200Tax rate20.0%Subtotal plus tax=LET(subtotal,B14,tax,D14,subtotal*(1+tax))240.00
Equivalent formula=B14*(1+D14)240
Reliability checks
LET price and quantity return 120OK
LET and direct subtotal formulas agreeOK

Overview

LET gives meaningful names to values and intermediate calculations inside a formula.

Quick reference

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

Returns: The result of the final calculation using the defined names. (any)

Arguments:

  • name/value pairs (required) — One or more local names followed by their assigned values.
  • calculation (required) — The final expression returned by LET.

At least one name/value pair and a final calculation are required. Additional pairs are optional, and each defined name is available to later assignments and the returned expression.

Common uses

  • Breaking long formulas into auditable stages
  • Reusing filtered arrays or lookup results
  • Giving business meaning to intermediate values

When not to use it

Use LAMBDA when the named calculation needs to be called repeatedly outside one formula. LET's names are intentionally local and cannot be reused by other cells.

Calculations

Excel evaluates each name assignment from left to right. Later assignments and the final calculation can refer to names defined earlier. Names exist only inside that LET formula. Reusing an expensive expression through a name can reduce duplicate calculation.

Function behavior

Situation

Behavior

Repeated expression

A named result can be reused.

Name scope

Names exist only in the current formula.

Evaluation order

Names can refer to earlier definitions, not later ones.

Final argument

Must be a calculation that returns the result.

Common errors

Omitting the final calculation

What happens: The argument structure is incomplete and Excel returns an error.
Better approach: End with the expression that should be returned.

Using invalid names

What happens: Names that conflict with reference syntax are rejected.
Better approach: Use descriptive names such as subtotal or tax_rate.

Example

Example 1 — Line total

=LET(price,B12,qty,D12,price*qty)

The workbook assigns 15 to price and 8 to qty, returning 120.

Example 2 — Average of two inputs

=LET(a,B13,b,D13,AVERAGE(a,b))

The local names make the two inputs explicit and the result is 10.

Example 3 — Taxed subtotal

=LET(subtotal,B14,tax,D14,subtotal*(1+tax))

For a subtotal of 200 and tax of 20%, the formula returns 240.

Example workbook

The workbook compares readable LET formulas for multiplication, averaging, and tax calculations with live checks.

Key takeaway

Use LET to turn repeated or opaque formula fragments into named, auditable steps.