{"id":2754,"date":"2024-09-03T17:12:15","date_gmt":"2024-09-03T09:12:15","guid":{"rendered":"https:\/\/www.fyndpro.com\/?p=2754"},"modified":"2024-09-06T15:52:48","modified_gmt":"2024-09-06T07:52:48","slug":"excel-new-function-let-a-tool-to-simplify-formula-writing","status":"publish","type":"post","link":"https:\/\/www.fyndpro.com\/cn\/excel-new-function-let-a-tool-to-simplify-formula-writing\/","title":{"rendered":"Excel New Function LET: A Tool to Simplify Formula Writing"},"content":{"rendered":"<p>In the latest version of Excel, a new function called LET has been introduced, which is very helpful for simplifying the process of writing formulas, making our work more efficient and convenient. Here\u2019s a guide to the basic usage of the LET function along with practical examples.<\/p>\n<h4>1. Basic Usage of the LET Function<\/h4>\n<p>The syntax for the LET function is:<\/p>\n<div>\n<div>\n<div data-collapsed=\"unknown\">\n<p><em>=LET(Name1, Value1, Calculation or Name2, Value2, &#8230;) <\/em><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>This function can accept multiple parameters. At least three parameters are needed to form a valid LET formula. For example:<\/p>\n<div>\n<div>\n<div data-collapsed=\"unknown\">\n<p><em>=LET(myVar, 2, myVar + 3) <\/em><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>This means we define a name \u201cmyVar\u201d with a value of 2, and then calculate \u201cmyVar + 3,\u201d which results in 5.<\/p>\n<p>If there are five parameters, it would look like this:<\/p>\n<div>\n<div>\n<div data-collapsed=\"unknown\">\n<p><em>=LET(X, 2, Y, 3, X + Y) <\/em><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>Here, we define two names, X as 2 and Y as 3, with the final calculation resulting in 5.<\/p>\n<p>To summarize, the number of parameters in the LET function can be 3, 5, 7, 9, etc., with the last parameter being used for calculation and the preceding pairs serving as custom names.<\/p>\n<h4>2. Practical Application 1: Enhance Readability<\/h4>\n<p>Suppose we need to find the BMI values for employees; traditional formulas can be confusing. For instance, we might enter the formula like this:<\/p>\n<div class=\"MarkdownCodeBlock_container__nRn2j\">\n<div class=\"MarkdownCodeBlock_codeBlock__rvLec force-dark\">\n<div class=\"MarkdownCodeBlock_codeHeader__zWt_V\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-2762 size-large\" src=\"https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A00011.png?resize=1024%2C430&#038;ssl=1\" alt=\"\" width=\"1024\" height=\"430\" srcset=\"https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A00011.png?resize=1024%2C430&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A00011.png?resize=300%2C126&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A00011.png?resize=150%2C63&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A00011.png?resize=768%2C323&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A00011.png?resize=1536%2C646&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A00011.png?resize=2048%2C861&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A00011.png?resize=18%2C8&amp;ssl=1 18w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/div>\n<div data-collapsed=\"unknown\">\n<p><em><span style=\"color: #ff0000;\">=VLOOKUP(A7, A:C, 3, 0) \/ <\/span><span style=\"color: #ff0000;\">(VLOOKUP(A7, A:C, 2, 0)^2) <\/span><\/em><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>While this gives a result, it may not be easily understood by others. By using the LET function, we can simplify it to:<\/p>\n<div>\n<div>\n<div data-collapsed=\"unknown\">\n<p><em><span style=\"color: #3366ff;\">=LET(weight, VLOOKUP(A7, A:C, 3, 0), height, <\/span><span style=\"color: #3366ff;\">VLOOKUP(A7, A:C, 2, 0), weight \/ height^2) <\/span><\/em><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>This version is much clearer and easier to read.<\/p>\n<h4>3. Practical Application 2: Abbreviate Formulas<\/h4>\n<p>When calculating the total rewards for each employee, using the SUMIFS function might lead to repetitive formulas. For example:<\/p>\n<div class=\"MarkdownCodeBlock_container__nRn2j\">\n<div class=\"MarkdownCodeBlock_codeBlock__rvLec force-dark\">\n<div class=\"MarkdownCodeBlock_codeHeader__zWt_V\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-2763\" src=\"https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A00012.png?resize=1024%2C414&#038;ssl=1\" alt=\"\" width=\"1024\" height=\"414\" srcset=\"https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A00012.png?resize=1024%2C414&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A00012.png?resize=300%2C121&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A00012.png?resize=150%2C61&amp;ssl=1 150w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A00012.png?resize=768%2C310&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A00012.png?resize=1536%2C621&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A00012.png?resize=2048%2C828&amp;ssl=1 2048w, https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/09\/A00012.png?resize=18%2C7&amp;ssl=1 18w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/div>\n<div data-collapsed=\"unknown\">\n<p><em><span style=\"color: #ff0000;\">=IF(SUMIFS(C:C, A:A, E2) = 0, &#8220;&#8221;, <\/span><\/em><em><span style=\"color: #ff0000;\">SUMIFS(C:C, A:A, E2))<\/span><\/em><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>Here, we have redundant SUMIFS functions. By utilizing the LET function, we can streamline it to:<\/p>\n<div>\n<div>\n<div data-collapsed=\"unknown\">\n<p><em><span style=\"color: #3366ff;\">=LET(X, SUMIFS(C:C, A:A, E2), <\/span><span style=\"color: #3366ff;\">IF(X = 0, &#8220;&#8221;, X)) <\/span><\/em><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p>This way, we can simply use X in subsequent calculations instead of repeating the lengthy formula, significantly simplifying our work.<\/p>\n<h3>Conclusion<\/h3>\n<p>The LET function can help us write Excel formulas more efficiently, enhancing both readability and functionality. I encourage everyone to try this powerful feature for themselves!<\/p>\n<p><em>A0001<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In the latest version of Excel, a new function called L [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2444,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[8,7,1,20],"tags":[207,90],"class_list":["post-2754","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-excel","category-excel-formulas","category-lookup","category-onlinesupport","tag-let","tag-vlookup"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.fyndpro.com\/wp-content\/uploads\/2024\/07\/Excel-new8.png?fit=2102%2C679&ssl=1","_links":{"self":[{"href":"https:\/\/www.fyndpro.com\/cn\/wp-json\/wp\/v2\/posts\/2754","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.fyndpro.com\/cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.fyndpro.com\/cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.fyndpro.com\/cn\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.fyndpro.com\/cn\/wp-json\/wp\/v2\/comments?post=2754"}],"version-history":[{"count":10,"href":"https:\/\/www.fyndpro.com\/cn\/wp-json\/wp\/v2\/posts\/2754\/revisions"}],"predecessor-version":[{"id":2865,"href":"https:\/\/www.fyndpro.com\/cn\/wp-json\/wp\/v2\/posts\/2754\/revisions\/2865"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.fyndpro.com\/cn\/wp-json\/wp\/v2\/media\/2444"}],"wp:attachment":[{"href":"https:\/\/www.fyndpro.com\/cn\/wp-json\/wp\/v2\/media?parent=2754"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.fyndpro.com\/cn\/wp-json\/wp\/v2\/categories?post=2754"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.fyndpro.com\/cn\/wp-json\/wp\/v2\/tags?post=2754"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}