LAMBDA Function in Google Sheets: Syntax, Examples & Compatibility
Learn how to make an inline reusable calculation without using VBA or Apps Script in Google Sheets. Includes syntax, two verified-by-reasoning results, troubleshooting and portability notes.
Verification status: See the evidence and test scope described in this guide. How formula examples are checked
Quick answer: make an inline reusable calculation without using VBA or Apps Script in Google Sheets. The reproducible examples below use explicit values so the formula’s meaning is testable without a large workbook.
Evidence: The function name and syntax are documented in the linked vendor function reference. Expected outputs were independently reasoned or checked outside the application. These are not native Google Sheets test results. A guide being published here does not certify every software release or file-import scenario.
Availability and version history
- Introduced: Announced August 24, 2022, with extended rollout expected to finish by September 26, 2022. These are service rollout dates, not desktop release numbers. Google release announcement.
- Availability: Documented in the rolling Google Sheets service; examples use the web spreadsheet workflow.
- Checked: October 14, 2026; official LAMBDA reference. Documentation check, not a new native test; existing example-verification notes retain their scope.
Syntax and arguments
=LAMBDA(name1, [name2, ...], formula_expression)
Each name identifies a local input used by the final expression. For a standalone cell result, call the LAMBDA with matching values. Helpers such as MAP supply the values themselves.
Best use case: Make an inline reusable calculation without using VBA or Apps Script.
Set up the example sheet
Start with a tax or adjustment example that takes an input amount and returns a numeric answer. These formulas require no custom named-function setup.
Enter the formula in an unused cell. For a formula returning several values, leave an unobstructed area where those values can expand. These formulas use comma argument separators in a typical English-language locale; commas or semicolons inside quoted text are data, not argument separators. Adapt the separator if your regional settings require it.
Worked example 1: LAMBDA with known input
=LAMBDA(amount,amount*0.3)(100)
Expected output: 30.
The LAMBDA multiplies the supplied amount (100) by 30%.
Worked example 2: a second LAMBDA case
=LAMBDA(a,b,a+b)(3,7)
Expected output: 10.
The second version accepts two named inputs and adds 3 and 7.
Compare both results before replacing literal values or short sample ranges with your own workbook data. For a spilling formula, compare every output cell, not only the top-left result.
Advanced example: direct calls and helper-managed calls
The calculation can accept multiple local names before its final expression, as shown by the two-input addition above. A three-input illustration is:
=LAMBDA(q,price,discount,q*price*(1-discount))(4,25,0.1)
The expected result is 90: four units at 25, reduced by an illustrative 10% discount. The supplied values follow the same order as the names. This is arithmetic practice, not a prescribed commercial discount rule.
A MAP helper invokes its LAMBDA for each input item; you do not append an immediate (value) call to that helper’s LAMBDA argument. For standalone examples here, the final call supplies the required input values.
Google permits dots and underscores in valid identifiers, but a name cannot be a range reference, contain spaces or start with a number. Do not copy Excel-specific naming restrictions or parameter limits into Sheets without checking Google’s rules. A named function is managed through Sheets’ own feature, not Excel’s Name Manager.
Practical advice and troubleshooting
When this formula helps: Use LAMBDA to encapsulate repeated logic. For very complex formulas, define a named function or equivalent named LAMBDA and include documented input ranges.
Important edge case: A standalone =LAMBDA(x,x*2) is a definition, not an executed calculation; a call with (value) is needed in the examples here.
If the result differs, first verify the text-versus-number types of the input cells, the argument separators for your locale, and the range size. For dynamic arrays, inspect occupied cells in the output area. After importing a file, check function names and the destination application’s support as well as the input data.
Compatibility and version considerations
Microsoft and Google both use the name LAMBDA, but their named-function UI and helper function families differ. Do not assume names migrate automatically.
Excel LAMBDA is supported in Microsoft 365 and Excel 2024; it is not a legacy Excel 2013 function.
Function availability and parameter behavior must be judged for the specific application and release; a function documented in one spreadsheet does not automatically work in another.
Related guides and official documentation
-
Google Sheets documentation for LAMBDA — function syntax and current vendor information.
Editorial verification: Direct function documentation reviewed October 14, 2026. The two example outputs are independently reasoned; no native application run, screenshot, or version-specific output is claimed. Review the editorial testing standards if you require stronger proof before importing a workbook.