Excel LET Function Tutorial

Version: Microsoft 365
Last update:
Tip: Use ⬆️ ⬇️ to turn the page up and down. We recommend browsing with a large screen for a better reading experience.

1. Introduction to the LET Function

The LET function in Excel enhances the efficiency and readability of formulas by enabling you to define and name values or calculations within a single formula. This is especially useful for reducing redundancy in complex calculations.
Introduction to the LET Function

2. Parameters of the LET Function

Here is the syntax for using the LET function.
=LET(name1, name_value1, calculation_or_name2, [name_value2, calculation_or_name3...])
  • name1: required The first name to assign. Must start with a letter. Cannot be the output of a formula or conflict with range syntax.
  • name_value1: required The value that is assigned to name1.
  • calculation_or_name2: required One of the following
  • A calculation that uses all names within the LET function. This must be the last argument in the LET function.
  • A second name to assign to a second name_value. If a name is specified, name_value2 and calculation_or_name3 become required.
  • name_value2: optional
  • calculation_or_name3: optional
  • 3. Example Scenario

    Suppose you have a shopping list with product prices and you want to calculate the total price including tax for multiple products.
    Example ScenarioExample Scenario

    4. Getting Started with the LET Function

    Type on the keyboard: =LET(
    Getting Started with the LET Function

    5. Define the first pair of names and values

    First, we calculate the total price of the products: SUM(B5:B7) and save the calculation result to the name: totalPrice.
    Define the first pair of names and values

    6. Define the second pair of names and values

    Next, we calculate the tax at a rate of 8%: totalPrice * 0.08, and save the calculation result to the name: totalTax.
    Define the second pair of names and values

    7. Calculate the final price

    At this point, the total price of the products is totalPrice, and the related tax is totalTax. Now we calculate the final price: totalPrice + totalTax.
    Calculate the final price

    8. Activate the LET function

    After pressing Enter to save, we can see that the final price is 108.
    Activate the LET function

    9. 🎉 Finish! 🎉

    Author's Note: I hope you can feel the effort I put into these tutorials. I hope to create a series of very easy-to-understand Excel tutorials.

    If it is useful, help me share these tutorials, thank you!


    Follow me:
    Introduction to the LET Function