LAMBDA Function in Microsoft Excel: Syntax, Examples & Compatibility
Learn how to make an inline reusable calculation without using VBA or Apps Script in Microsoft Excel. 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 Microsoft Excel. 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 Microsoft Excel test results. A guide being published here does not certify every software release or file-import scenario.
Availability and version history
- Introduced: Beta announced December 3, 2020, for Windows and Mac; the original numeric build is not established here. Microsoft announcement.
- Availability: Official help lists Excel for Microsoft 365, Excel for Microsoft 365 for Mac, Excel 2024, Excel 2024 for Mac.
- 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([parameter1, parameter2, ...,] calculation)
Parameters are optional named inputs, with up to 253 allowed. The final calculation is required and must return a result. To evaluate an inline LAMBDA in a cell, call it with the intended argument values after its definition; square brackets in the syntax above are documentation notation, not literal formula characters.
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.
Reusable calculation with two named inputs
A two-parameter inline test can apply an illustrative uplift to an amount:
=LAMBDA(amount,rate,amount*(1+rate))(100,0.2)
Expected result: 120. The two values in the final call map to amount and rate in that order. A supplied rate of zero gives 100, so parameter validation should not silently treat every zero as absent.
After testing the calculation, save the definition =LAMBDA(amount,rate,amount*(1+rate)) under a descriptive workbook name through Excel’s Name Manager or Define Name workflow. Then call that saved name with the two values. Naming steps differ between Windows, Mac and the web; consult the official LAMBDA guide for the interface and scope options.
Parameter names follow Excel naming restrictions, and a period is not allowed in a LAMBDA parameter name. Avoid names that resemble cell references. The example is independently calculated and does not establish a native execution result.
A calculation can have no parameters
=LAMBDA(42)()
The independent expected result is 42. The empty final parentheses call a function with no input parameters. In the syntax notation, the comma separating parameters from the final calculation belongs inside the optional group; it is absent when there are no parameters.
The literal =LAMBDA(42) entered without the call has the documented uncalled-function #CALC! outcome. Excessive recursive calls can produce #NUM!, but the reference does not establish one universal safe recursion depth. Microsoft also notes that Evaluate returns the LAMBDA result without stepping into its internal calculation.
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: An uncalled LAMBDA entered directly in a cell returns #CALC!. Passing the wrong number of arguments, or defining more than 253 parameters, produces #VALUE!.
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
-
Microsoft Excel 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.