Bottom Line: Simplify your Excel formulas and improve performance with the LET function. Learn how LET reduces repetitive calculations and makes complex formulas easier to read.
Skill Level: Intermediate
Master LET with Modern Formulas
If you want to master LET and other modern Excel functions, our comprehensive Modern Formulas course is available for $79.
[ENROLL NOW]

This isn't just about LET and LAMBDA.
The course covers all of Excel's most powerful new functions, including:
✅ Dynamic Array Formulas that automatically adapt to your data
✅ XLOOKUP (the smarter replacement for VLOOKUP)
✅ And much more that will transform how you work with Excel
This Black Friday price ends tonight at midnight. Don't miss your chance to future-proof your Excel skills and become your team's formula expert.
(If you're an Elevate Excel member, then you already have access to the course and updates).
Watch the Tutorial
Download the Example File
Follow along with the same workbook used in this post.
It Pays to Learn the LET Function

The LET function is a game-changer for anyone looking to simplify complex formulas or improve performance in Excel. By allowing you to assign variables within your formulas, LET makes your work easier to read and significantly more efficient.
In this post, we’ll walk through an example of how LET can streamline your calculations, using a scenario from the logistics world.
What Is the LET Function?
At its core, the LET function allows you to:
- Simplify formulas: Avoid duplicating repetitive logic, making formulas easier to understand.
- Improve performance: Reduce the number of calculations Excel has to process.
Real-World Example: Calculating Shipping Weights
Imagine you’re managing logistics for a company that ships a wide variety of products. To streamline operations, the shipping department needs to know the weight of each product. This helps them decide whether to prepare the item for regular shipping or flag it for bulk freight.
You have a product list on one sheet that includes product IDs and their respective weights. On another sheet, there’s a list of orders that need shipping. The goal is to perform a lookup to retrieve the weight for each product and populate it in the orders list.

However, there’s an additional requirement:
- If the weight of a product is 40 pounds or more, it should be flagged as “BULK” instead of showing the actual weight. This informs the shipping department that the product requires special handling.
To achieve this, you’ll write a formula that dynamically retrieves the product weight and applies the bulk freight condition. Let’s see how we can handle this efficiently, first without using LET and then with LET.
Without LET
Here’s the formula:
=IF(XLOOKUP([@[Product ID]],tblProducts[Item],tblProducts[Weight])<40,XLOOKUP([@[Product ID]],tblProducts[Item],tblProducts[Weight]),"BULK")
This approach duplicates the XLOOKUP
logic, meaning Excel performs the same calculation multiple times, which is inefficient for large datasets.
With LET
Using LET, we can store the XLOOKUP
result in a variable called "weight
” and reuse it where needed:
=LET(weight,XLOOKUP([@[Product ID]],tblProducts[Item],tblProducts[Weight]),
IF(weight<40,weight,"BULK"))
Benefits of this approach:
- The
XLOOKUP
formula is only calculated once, improving performance. - The formula is cleaner and easier to read.

How Does the LET Function Work?
Now that we’ve seen LET in action, let’s break it down. The LET function lets you define variables and assign them values within a formula. These variables can then be reused, making your calculations both cleaner and more efficient.
Arguments of the LET Function
The LET function uses these components:
- Name1: The first variable name. We defined
weight
as the variable name. - NameValue1: The value or formula assigned to the variable. The result of
XLOOKUP([@[Product ID]],tblProducts[Item],tblProducts[Weight])
is stored in the variable nameweight
. - Calculation: The final formula or calculation that uses the variable(s). Our example formula checks whether
weight
is less than 40. If true, it returns the value; otherwise, it returns “BULK”.
Here’s the formula again for reference:

By storing XLOOKUP
in the variable weight
, we avoid recalculating it multiple times, improving efficiency and clarity.
If you wanted to add multiple variables, you could do so by adding more Name and NameValue arguments before the final calculation.
How Much Faster Is It?
In a dataset with 1,000 rows, using LET reduced the number of calculations by 42%, significantly speeding up processing time.

I have a separate video that explains how to calculate this percentage change formula. You can access it here:

Key Takeaways
The LET function offers both clarity and efficiency, making it invaluable for modern Excel users. While it requires a bit of a learning curve, the payoff in performance and readability is well worth it.
Ready to Level Up?
This example is just one lesson from our Modern Formulas Course, where we cover LET, LAMBDA, dynamic arrays, and more. Learn how to create formulas that are not only powerful but also easy to use and share.
Check out the course and grab the deal here!
Here's what a few of our students have to say about the course:
We invite you to leave a comment below with questions or feedback. Thanks for reading, and have a great day.
Is this something totally separate from the annual membership? I currently have that and I am taking this course now – does this mean if I pay the $49 I will keep this course even if I cancel my membership at some point? Is it the same course?
Hi Stacy,
Individual courses come with lifetime access. Elevate Excel members have access to all courses at no extra charge, including the updates to the Modern Formulas Course. Elevate Excel also has a lifetime payment option. Contact [email protected] for pricing.
Have a great day!
Hi! I am interested in the course but want to confirm the following:
1. Would my lifetime membership allow me to access & learn other Excel functions
2. Is there any limitation to what I can or cannot access from your vast library
Looking forward to hearing soon. Thanks!
Regards
Hi Javed,
Thank you for your interest! If you purchase the Modern Formulas Course, you would have lifetime membership to that course only, not to the rest of Excel Campus. Our Elevate Excel program allows you access to all of Excel Campus – no current limitations. Below is a link to learn more about Elevate Excel.
https://www.excelcampus.com/elevate-excel-invite/
If you have additional questions about purchases or pricing, contact [email protected].
Have a great day!
Thank you for clarifying the LET function especially in conjunction with Xlookup. But one question, if you have 2 columns with the first finding the weight using xlookup, then the second column testing the weight with If, you only invoke xlookup once per row, which would be the same as using the Let with xlookup as you suggest. Would the difference in overhead then be signicant?
Also I am a member of the Power Query Pro Course. Can I also access the Modern formula course?
thank you
Thank you for clarifying the LET function especially in conjunction with Xlookup. One question, if you have 2 columns: the first finding the weight using Xlookup, then the second column testing the weight with IF, you only use Xlookup once, which would be the same as using the Let with Xlookup as you suggest. Would the difference in overhead then be significant?
Also I am a member of the Power Query Pro Course. Can I also access the Modern formula course?
thank you and thank you for your amazing videos!