Logical Excel 2021 ◉ 33 views

=LET()

LET function

Applies To: Excel for Microsoft 365Excel for Microsoft 365 for MacExcel 2024Excel 2024 for MacExcel 2021Excel 2021 for Mac
=LET(name1, name_value1, calculation_or_name2, [name_value2, calculation_or_name3...])
Hover argument names in the table for details.
Output typeMixed
Popularity60 / 100
VolatileNo
Dynamic ArrayNo
Download sample .xlsx ▦ Try in Playground Dedicated file for this function — safe & lightweight · sample data + live formulas
Share:

⬇ Download Sample Workbook

A dedicated .xlsx for =LET() with Persian sample data & live formulas — open in Excel and practice.

  • Sheet “Sample” — data table + formula in place
  • Sheet “Guide” — syntax, arguments & tips from this page
  • Instant & secure (token + rate limit)
Download LET.xlsx ~ 8–12 KB · No macros

⇪ Share

Send this function to friends

Quiz this function

%d questions — syntax, example & errors — test yourself!

◧ Arguments

ArgumentTypeRequiredDescription
name1 Any type 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 Any type Required The value that is assigned to name1.
calculation_or_name2 Any type 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
name_value2 Any type Optional The value that is assigned to calculation_or_name2.
calculation_or_name3 Any type Optional One of the following:A calculation that uses all names within the LET function. The last argument in the LET function must be a calculation.A third name to assign to a third name_value. If a name is specified, name_value3 and calculation_or_name4 become

▣ Examples

▦ Data
CellValue
A2 Unfiltered Data
B2 Filtered Data
A3 Rep
B3 Region
C3 Product
D3 Profit
A4 Amy
B4 East
C4 Apple
D4 $1.33
A5 Fred
B5 South
C5 Banana
D5 $0.09
A6 Amy
B6 West
C6 Mango
D6 $1.85
A7 Fred
B7 North
D7 $0.82
A8 Fred
B8 West
C8 Banana
D8 $1.25
A9 Amy
B9 East
C9 Apple
D9 $0.72
A10 Fred
B10 North
C10 Mango
D10 $0.54
A11 Unfiltered Data
B11 Filtered Data
A12 Rep
B12 Region
C12 Product
D12 Profit
A13 Amy
B13 East
C13 Apple
D13 $1.33
A14 Fred
B14 South
C14 Banana
D14 $0.09
A15 Amy
B15 West
C15 Mango
D15 $1.85
A16 Fred
B16 North
D16 $0.82
A17 Fred
B17 West
C17 Banana
D17 $1.25
A18 Amy
B18 East
C18 Apple
D18 $0.72
A19 Fred
B19 North
C19 Mango
D19 $0.54
Example 1 =LET(x, 5, SUM(x, 1))

💬 Comments & Q&A 0 approved

🔒 Your comment will be published after review.

Share your thoughts — visible after admin approval

No comments yet — be the first!

✍️ Add comment / question

captcha
🔒 Your comment will be published after review.