LET Function in Excel: Name Parts of a Formula

LET Function in Excel: Name Parts of a Formula featured illustration

πŸ“Ž This article includes 1 downloadable practice file ↓

⏱ 2 min readUpdated 5 October 2026

LogicalLevel: ExpertAvailable in: Excel 365 / 2021+

In this article
  1. Syntax
  2. Examples
  3. Example 1
  4. Power combo
  5. LET in practice
  6. Where you will use it
  7. Worked example
  8. Mistakes people make
  9. Related functions
  10. Continue learning

LET assigns names to calculations inside a formula, so long formulas become readable and repeated parts are calculated once.

Advertisement

Syntax

=LET(name1, value1, [name2, value2, ...], calculation)
Argument What it means
name1, value1 A name and what it stands for.
calculation The final result, using the names.

Examples

Example 1

=LET(total, SUM(B2:B13), IF(total>100000, total*0.9, total))

Discount only on large totals; SUM runs once.

Power combo

=LET(n, A2, first, TEXTBEFORE(n," "), last, TEXTAFTER(n," ",-1), last&", "&first)

β€œAsha Kumari Verma” β†’ β€œVerma, Asha”.

LET in practice

Where you will use it

  • Name parts of a long formula
  • Calculate once, use many times
  • Readable models

Worked example

PriceQtyFormulaResult
2504=LET(sub,A2*B2,gst,sub*0.18,sub+gst)1180
12002=LET(sub,A3*B3,gst,sub*0.18,sub+gst)2832
9910=LET(sub,A4*B4,gst,sub*0.18,sub+gst)1168.2

Results calculated in Excel.

Mistakes people make

MistakeWhat to do instead
Names that look like cellsAvoid names like A1 or TAX1
Last argumentThe final calculation must come last

LAMBDA Β· IF Β· FILTER

πŸ“š Part of the free Excel course: Beginner β†’ Expert Β· Try it in the Formula Lab or ask the AI Helper.

⚑ Interactive Practice Lab & Formula Tester:

Test formulas dynamically in our web formula laboratory or download the companion Excel workbook.

πŸ“Ž Practice files for this article

  • πŸ“—
    Practice workbook: Logic, LET & LAMBDA17 tasks on realistic sales data β€” type your formula, the Check column turns green when it is right. Answers sheet included.
    ⬇ XLSX Β· 35 KB

Free to use for learning. Files with macros (.bas) are plain text β€” import them with Alt+F11 β†’ File β†’ Import File, and always test on a copy.

✨ Ask AI about this article

Stuck on a step? Ask a question and the AI answers using this article.

Free Β· AI can be wrong

Leave a Reply

Your email address will not be published. Required fields are marked *