What is LET in Google Sheets?

LET assigns names to calculated values inside one formula, then uses those names in the final expression. Repeated VLOOKUP keys, tax rates, or date bounds appear once, which shrinks formulas and can reduce recalc work on heavy sheets.

When to use it

Use LET when the same subexpression repeats many times in one formula or when naming clarifies multi-step financial or lookup logic.

When to skip it

Skip LET for trivial one-reference formulas. Helper columns may teach better for beginners.

How it works

  1. 1

    Alternate name1, value1, name2, value2 pairs after LET(.

  2. 2

    Put the final calculation last using the names you defined.

  3. 3

    Names are local to that formula only, not workbook-wide.

  4. 4

    Define names before you use them; order matters.

  5. 5

    Combine LET with LAMBDA for readable advanced array formulas.

  6. 6

    Compare recalc time before and after on slow sheets with repeated lookups.

Examples in Google Sheets

Reuse lookup

=LET(id, A2, rate, XLOOKUP(id, Keys, Rates), qty, B2, rate*qty) names id and rate before multiply.

Tax calc

=LET(gross, C2, exempt, D2, (gross-exempt)*0.22) clarifies taxable base.

Long IF chain

=LET(score, E2, IFS(score>=90, "A", score>=80, "B", TRUE, "C")) names score once for readability.

Build this without starting from a blank cell

Use a Better Sheets tool for LET, then watch a walkthrough when you want the full pattern.

Better Sheets resources

Common mistakes

  • Using a name before its value pair is defined.
  • LET name colliding mentally with named ranges on the sheet.
  • Over-LETting simple formulas that were clearer before.
  • Expecting LET variables to persist across cells; they do not.
  • Circular reference by naming something that depends on itself.

Frequently asked questions

LET vs named range?
Named ranges are workbook-level. LET names exist only inside one formula.
Does LET speed up sheets?
It can when the same expensive subexpression repeated many times is computed once.
LET vs LAMBDA?
LET names values in one formula. LAMBDA defines reusable functions.
How many names in LET?
Multiple pairs allowed before the final expression.
LET with arrays?
Named values can be arrays used in later steps of the same formula.
Why #NAME? on LET?
Typo in LET or unsupported in very old Sheets clients.
LET readability tips?
Pick short meaningful names like rate, qty, and base.

Related Tutorials

Watch how LET works

Browse more tutorials
Advanced Coding in Google Sheets for Programmers

Advanced Coding in Google Sheets for Programmers

Add a Custom Menu Create Native-like Functions Get URL and Sheet ID's vi...
How do I reference a different spreadsheet in Apps Script?

How do I reference a different spreadsheet in Apps Script?

I'll show you how to get text from one spreadsheet file to another with ...
Spreadsheet Automation 101: Functions

Spreadsheet Automation 101: Functions

Get introduced to Apps Script functions and functions syntax. Learn how ...
Created a GPT function in Sheets

Created a GPT function in Sheets

Unlock the Power of OpenAI: Create Ultimate GPT Prompts for Seamless Int...
Scrape Google Maps

Scrape Google Maps

Scrape any query in Google Maps into your Google Sheets. Enter your API ...
Spreadsheet Automation for Beginners

Spreadsheet Automation for Beginners

I start off this video with the idea to show beginners how to automate e...

Related blog posts

Guides that explain LET in more depth.

Browse the blog

Related glossary terms

Done reading about LET?

Membership unlocks 636+ tutorials, unlimited generators, and every template. Practical lessons. Zero fluff.

Need this once

Jump to a free tool or a single tutorial for this topic.

Learning Sheets for real

Unlock the full library, generators, and templates with membership.