Skip to main content
 

Excel LET function (365)

Author: Sun Last Modified: 2024-10-09
showing the usage of LET function

Description

The Excel LET function assigns names to calculation results. It allows storing calculations, values, defined names inside the formula. 

Syntax and arguments

Formula syntax

LET(name1,name1_value,[name2/name2_value], ...,calculation)

Arguments

  • Name1: Required, the variable name you assigned in the formula.
  • Name1_value: Required, the value of the variable (name1). The LET function defines at least one value pair (one name and one name_value), and itsupports up to 126.
  • Name2/name2_value: Optional, the second, third,… pairs of names and value of names.
  • Calculation: Required, the calculation you want to apply for the variables.

Return Value

The LET function returns the result of the calculation.

Version

Excel 365 and Excel 2021.

Usage and Examples

Example1 one name and one name_value

Supposing, we define a name as x, and the value of x is 1, the calculation is x+1, now use them in the formula as this:

=LET(x,1,x+1)

Press Enter key.
showing the usage of LET function
showing the usage of LET function

Example2 two pairs of names and name_values

Supposing, we define the first name as x, and the value of x is 1, the second name as y, and the value of y is 2, the calculation is x+1-y+10, now use them in the formula as this:

=LET(x,1,y,2,x+1-y+10)

Press Enter key.
showing the usage of LET function
showing the usage of LET function


Other Functions:

  • Excel ISODD Function
    The ISODD function checks whether a value is an odd number. If the given value is an odd number, it returns TRUE. Otherwise, it returns FALSE.

  • Excel ISEER Function
    The ISERR function returns TRUE for any error type (except #N/A) and FALSE otherwise.

  • Excel ISEVEN Function
    The Excel ISEVEN function tests if a supplied number (or numeric expression) is even, if so, it returns TRUE, otherwise, it returns FALSE.

  • Excel ISREF Function
    The ISREF function checks whether a given value is a reference. If the given value is a reference, it returns TRUE. Otherwise, it returns FALSE.

 


The Best Office Productivity Tools

Kutools for Excel - Helps You To Stand Out From Crowd

🤖 Kutools AI Aide: Revolutionize data analysis based on: Intelligent Execution   |  Generate Code  |  Create Custom Formulas  |  Analyze Data and Generate Charts  |  Invoke Kutools Functions
Popular Features: Find, Highlight or Identify Duplicates  |  Delete Blank Rows  |  Combine Columns or Cells without Losing Data  |  Round without Formula ...
Super VLookup: Multiple Criteria  |  Multiple Value  |  Across Multi-Sheets  |  Fuzzy Lookup...
Adv. Drop-down List: Easy Drop Down List  |  Dependent Drop Down List  |  Multi-select Drop Down List...
Column Manager: Add a Specific Number of Columns  |  Move Columns  |  Toggle Visibility Status of Hidden Columns  Compare Columns to Select Same & Different Cells ...
Featured Features: Grid Focus  |  Design View  |  Big Formula Bar  |  Workbook & Sheet Manager | Resource Library (Auto Text)  |  Date Picker  |  Combine Worksheets  |  Encrypt/Decrypt Cells  |  Send Emails by List  |  Super Filter  |  Special Filter (filter bold/italic/strikethrough...) ...
Top 15 Toolsets12 Text Tools (Add Text, Remove Characters ...)  |  50+ Chart Types (Gantt Chart ...)  |  40+ Practical Formulas (Calculate age based on birthday ...)  |  19 Insertion Tools (Insert QR Code, Insert Picture from Path ...)  |  12 Conversion Tools (Numbers to Words, Currency Conversion ...)  |  7 Merge & Split Tools (Advanced Combine Rows, Split Excel Cells ...)  |  ... and more

Kutools for Excel Boasts Over 300 Features, Ensuring That What You Need is Just A Click Away...


Office Tab - Enable Tabbed Reading and Editing in Microsoft Office (include Excel)

  • One second to switch between dozens of open documents!
  • Reduce hundreds of mouse clicks for you every day, say goodbye to mouse hand.
  • Increases your productivity by 50% when viewing and editing multiple documents.
  • Brings Efficient Tabs to Office (include Excel), Just Like Chrome, Edge and Firefox.