ExcelFlux

LET function

Assigns names to calculation results.

Logical · Excel 2021+

Where can you use it?

Teams building reports and business rules. Adapt the example’s decision rule when you need to test a condition or display different results based on it.

Scenario in the workbook

Name the intermediate values so quantity and unit price are easy to trace.

A worked example from the workbook

RowAB
6ValueSecond value
725
837
9412
Record 1
=LET(qty,A7,unit,B7,qty*unit)

Expected result10

See the inputs and instructions for all 3 examples

Copyable formulas

English Excel · en-US
=LET(qty,4,price,3,qty*price)
Turkish Excel · tr-TR
=LET(qty;4;price;3;qty*price)

Expected result

12

Worked examples

Name the intermediate values so quantity and unit price are easy to trace.

Open the English sheet. Inputs begin at A6. F7:F9 show the live results and G7:G9 show the original results for comparison.

Row A B
6 Value Second value
7 2 5
8 3 7
9 4 12
Case Formula Expected result
Record 1 =LET(qty,A7,unit,B7,qty*unit) 10
Record 2 =LET(qty,A8,unit,B8,qty*unit) 21
Record 3 =LET(qty,A9,unit,B9,qty*unit) 48
Microsoft Excel reference