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: Official documentation referenced; example outcomes independently reasoned or arithmetically checked where stated. Not executed in Google Sheets. 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.
Syntax and arguments
=LAMBDA(parameter, calculation)
The parameter is a valid local name and the calculation refers to it. To return a result in a cell, immediately call the LAMBDA with values.
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.
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. An error that looks like a missing function may reflect a software version rather than incorrect 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: Vendor catalogue referenced as of 2026-10-12. 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.