Function Problems

Use Excel LET to Calculate Repeated Expressions Automatically

Rana GarciaRana Garcia Nov 12, 2026 868 views

Question details

The user needs a simpler way to calculate a repeated expression in one Excel formula without building formula text and evaluating it again.

Use Excel LET to Calculate Repeated Expressions Automatically
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet formula uses the same calculation multiple times and needs to reuse that result within a single formula.
Observed behavior
The goal is to calculate the expression directly once and return the final result without a second formula-evaluation step.
Before you start

Check that your Excel version supports the LET function, such as Microsoft 365 or Excel 2021 and later. Identify the repeated expression and choose a short, meaningful variable name for it.

Solution 1Recommended

Use the LET function to store and reuse the calculation

Use LET when the same expression appears more than once in a formula and you want Excel to calculate it directly instead of generating formula text.

LET assigns a name to a value or expression inside one formula. Excel calculates the named expression and lets you reuse it in the final calculation, making long formulas easier to read and maintain.

1
Select the formula cell

Click the worksheet cell where you want the result to appear, then enter formula edit mode by pressing F2 or clicking the Formula Bar.

2
Define the repeated expression with LET

Enter LET with a variable name and the expression to calculate. For example, use =LET(x,C20,x+x*x+x), where x stores the value from cell C20.

3
Reuse the variable in the final calculation

After the variable definition, enter the calculation that uses it. In =LET(x,C20,x+x*x+x), Excel returns C20+C20*C20+C20 without repeating the cell reference.

4
Confirm the formula

Press Enter to calculate the result. Edit the expression after the variable name if the repeated calculation is more complex than a single cell reference.

Use the LET function to store and reuse the calculation
Avoid formula text evaluation: LET works with values and expressions directly. It does not convert a text string into a formula, so you do not need INDIRECT or another second evaluation method.
Simplify repeated spreadsheet calculations

Reuse expressions with LET in WPS Spreadsheets

WPS Spreadsheets lets you build clearer formulas by assigning a repeated value or calculation to a LET name and using that name in the result. This avoids formula-text workarounds while keeping the calculation in one editable cell formula.

  1. 1. Open the worksheet in WPS Spreadsheets: Launch WPS Office, open the workbook, and select the worksheet containing the repeated calculation.
  2. 2. Select the result cell: Click the cell that should display the calculated result, then click the formula input bar.
  3. 3. Enter a LET formula: Type a formula such as =LET(x,C20,x+x*x+x), replacing C20 and the final expression with your own calculation.
  4. 4. Apply and test the formula: Press Enter, then change a referenced cell value to confirm that the LET result recalculates as expected.
Use LET to calculate a repeated expression once and reuse it in one formula.Keep complex spreadsheet formulas easier to read and update.Open and edit Microsoft Excel .xlsx and .xls workbooks with format compatibility.Use a lightweight, familiar spreadsheet interface for everyday calculations.
microsoft office alternative - wps office

Frequently Asked Questions

What does LET do in an Excel formula?

LET gives a name to a value or calculation within the current formula. Use the syntax =LET(name, value_or_expression, calculation_using_name) to reuse that result without repeating the full expression.

Can I create more than one variable with LET?

Yes. Add additional name and value pairs before the final calculation, such as =LET(price,A2,quantity,B2,price*quantity). The last argument is the result Excel returns.

Why does Excel show #NAME? when I use LET?

#NAME? can indicate that your Excel version does not support LET or that the variable name is invalid. Use a current version of Excel and choose a name that does not conflict with a cell reference, such as C20.

Do I need INDIRECT to evaluate a formula built as text?

No, not when the calculation can be written directly as a formula. Use LET to store the expression or intermediate result; INDIRECT is intended to turn text into a cell reference and can make formulas harder to maintain.

How do I make Excel recalculate formulas automatically?

Go to Formulas > Calculation Options and select Automatic. If needed, press F9 to recalculate the open workbook after changing formula settings.