How to Build an Excel LET Formula for Sequential Calculations and Rounding
Question details
Calculate a sequence of values from cells G10 to G12, apply intermediate rounding to one decimal place, and round the final output to the nearest ten using a single LET formula.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Constructing a complex formula that involves multiple sequential mathematical operations and distinct rounding requirements without repeating calculation logic.
- Observed behavior
- The user needs a streamlined formula structure to name each intermediate calculation result, apply specific decimal roundings at different steps, and output a final calculation rounded to the nearest ten.
Verify that your spreadsheet software supports the LET function, which is available in newer versions such as Microsoft 365, Excel 2021, and modern editions of WPS Office.
Use the LET Function to Define Variables and Apply Rounding
The LET function allows you to assign names to calculation results. This prevents redundant calculations, improves performance, and makes it easier to apply specific roundings at different intermediate steps.
By defining variables sequentially within the LET function, you can perform an operation, store the result in a named variable, and then reference that variable in the very next step. This is especially useful for managing multiple ROUND functions.
Click on the cell where you want the final calculated and rounded result to appear.
Type =LET( to begin defining your sequence of named calculations.
Enter your initial variables and their corresponding calculations separated by commas. For example: First, G10*G11, Second, G10-First, Third, Second*G12,
Define a new variable to handle the intermediate decimal rounding. For example, add: Fourth, ROUND(Second-Third, 1),
Finish the formula with the final result calculation using a negative rounding digit to round to the nearest ten: ROUND(Fourth, -1)). Press Enter to execute the formula.

Easily Manage Complex Formulas with WPS Office
WPS Spreadsheet fully supports advanced array and logical functions like LET. This allows you to streamline complex, sequential calculations efficiently, keeping your data analysis robust and your formulas easy to read.
- 1. Open your workbook: Launch WPS Spreadsheet and open the file containing your data.
- 2. Enter the LET formula: Select the target cell and type =LET( to start your sequential calculation.
- 3. Define variables: Input your name-value pairs sequentially, applying the ROUND function where intermediate rounding is needed.
- 4. Calculate the final result: Enter the final calculation parameter to yield the nearest ten and press Enter.

Frequently Asked Questions
What is the primary benefit of using the LET function in spreadsheets?
The LET function assigns names to calculation results, which allows you to store intermediate calculations. This improves formula readability and boosts calculation speed because the spreadsheet application does not have to compute the same expression multiple times.
How do I round a number to the nearest ten in a formula?
You can use the ROUND function and specify a negative number of digits. For example, ROUND(A1, -1) will round the value in cell A1 to the nearest ten.
Why am I getting a #NAME? error when trying to use LET?
The #NAME? error typically appears if you are using an older version of spreadsheet software that does not support the LET function. Ensure your software is updated to a newer release like Microsoft 365, Excel 2021, or the latest version of WPS Office.
Can I use multiple ROUND functions within a single LET formula?
Yes, you can define multiple named variables within a LET formula, each performing a different rounding operation. You simply reference the previously rounded variable name in your subsequent calculation step.




