Inline double
=LAMBDA(x, x*2)(B2) doubles one cell without a helper column.
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.
Use LAMBDA when the same multi-step calculation repeats across rows and you want one maintained definition instead of dragged formulas.
Skip LAMBDA for one-line IF tests or when teammates are not ready to read functional style. A simple helper column may be clearer.
List parameter names, for example LAMBDA(x, y, x*y+1).
Write the return expression using those parameters.
Call immediately with arguments: LAMBDA(x, x*2)(A2).
Or save a named function via Data > Named functions for reuse across the file.
Pass the LAMBDA into MAP or BYROW to apply it row by row.
Document parameter meaning in a Notes tab because LAMBDA is harder to audit than visible columns.
=LAMBDA(x, x*2)(B2) doubles one cell without a helper column.
=MAP(A2:A, LAMBDA(v, IF(v>100, "High", "Low"))) classifies each value.
A named LAMBDA margin(cost, price, (price-cost)/price) centralizes pricing logic for the sales team.
Build this without starting from a blank cell
Use a Better Sheets tool for LAMBDA, then watch a walkthrough when you want the full pattern.
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 →BYROW takes an array and a LAMBDA that receives one row at a time. It returns a column of results, one per row. It is the clean way to sum across columns, test row-wide rules, or format composite keys without ARRAYFORMULA hacks.
Read guide →REDUCE walks an array left to right, carrying an accumulator value updated by a LAMBDA on each step. It can implement custom aggregates, text joins with rules, or conditional running logic that SUM alone cannot express.
Read guide →ARRAYFORMULA tells Google Sheets to treat a formula as an array operation so one expression fills many cells at once. It is common with IF, VLOOKUP, and math on full columns before dynamic arrays made many patterns automatic. It still matters for legacy sheets and explicit control.
Read guide →Done reading about LAMBDA?
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.