Reuse lookup
=LET(id, A2, rate, XLOOKUP(id, Keys, Rates), qty, B2, rate*qty) names id and rate before multiply.
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.
Use LET when the same subexpression repeats many times in one formula or when naming clarifies multi-step financial or lookup logic.
Skip LET for trivial one-reference formulas. Helper columns may teach better for beginners.
Alternate name1, value1, name2, value2 pairs after LET(.
Put the final calculation last using the names you defined.
Names are local to that formula only, not workbook-wide.
Define names before you use them; order matters.
Combine LET with LAMBDA for readable advanced array formulas.
Compare recalc time before and after on slow sheets with repeated lookups.
=LET(id, A2, rate, XLOOKUP(id, Keys, Rates), qty, B2, rate*qty) names id and rate before multiply.
=LET(gross, C2, exempt, D2, (gross-exempt)*0.22) clarifies taxable base.
=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.
Watch how LET works
Guides that explain LET in more depth.
Nothing is better than Google Sheets. You just need to learn more about the unlimited power of Google Sheets. Functions, Formulas, Apps Script and more.
Read post →The IF() formula is a logical function that makes it easy for users to compare a certain value and an expected value. It takes a look at a value to see if basic conditions are met.
Read post →Users can also customize the appearance of their spreadsheets with different fonts, colors, and themes.
Read post →LAMBDA defines an anonymous function inside a formula. You name parameters, write the calculation, then pass arguments when you call it. Combined with MAP, BYROW, or a named LAMBDA in the Name manager, it replaces fragile copy-paste logic across big tables.
Read guide →IFS runs several condition-result pairs in order and returns the result for the first condition that is TRUE. It replaces long nested IF trees for tiered scoring, bonus bands, and SLA buckets where each step tests a comparison.
Read guide →SWITCH evaluates an expression against a list of case values and returns the result for the first match. A default value catches everything else. It cleans up nested IF chains when you compare one cell to many constants like status codes.
Read guide →MAP walks aligned arrays element by element and applies a LAMBDA to each position. Pass one array for unary transforms or several arrays for element-wise combinations. It is the modern replacement for many ARRAYFORMULA column operations.
Read guide →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.