How to Fix a LAMBDA Function Returning #NAME? Error in Excel
Question details
The user needs to resolve a #NAME? error that occurs when calling a custom named LAMBDA polynomial function.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Creating and calling a custom named LAMBDA function to calculate a polynomial equation in a spreadsheet.
- Observed behavior
- The cell displays a #NAME? error instead of returning the expected calculation result.
Ensure that your workbook supports the LAMBDA function, as it is primarily available to Microsoft 365 subscribers and may not work in older standalone Excel versions.
Verify and Recreate the Function in Name Manager
The most common reason a custom LAMBDA function returns a #NAME? error is an incorrect or missing definition in Excel's Name Manager.
For a custom LAMBDA function to be called by name, it must be properly saved in the Name Manager. Simply typing it into a cell without parameters or with an incorrect name mapping will trigger the #NAME? error.
Navigate to the Formulas tab on the Excel ribbon and click on Name Manager.
Click the New button. In the Name field, type the exact name you want to use for your function (e.g., Polynomial).
In the Refers to box, paste your core LAMBDA formula: =LAMBDA(a,b,c,d,x,((a*x+b)*x+c)*x+d). Do not include the trailing test parameters here.
Return to your worksheet and call the function using the name and the required five arguments: =Polynomial(1,2,3,4,5).

Check Excel Version Compatibility
If the syntax is correct and the name is defined, your Excel version might not support the LAMBDA function.
Switch to WPS Office for a Seamless Spreadsheet Experience
If you are struggling with version compatibility limitations in Excel, consider using WPS Office. It provides a highly compatible, feature-rich spreadsheet application that easily handles your daily data analysis tasks.
- 1. Download and Install: Visit the official WPS Office website to download and install the free suite on your device.
- 2. Open Your Workbooks: Launch WPS Spreadsheet and easily open your existing Excel workbooks without formatting loss.
- 3. Use Advanced Features: Take advantage of built-in advanced formulas and data processing tools to streamline your workflow.

Frequently Asked Questions
Why does my LAMBDA function work inline but return #NAME? when named?
This happens when the named function isn't correctly added to the Name Manager, or if there is a spelling mismatch between the name defined in the Name Manager and the name typed in your cell.
Which versions of Excel support the LAMBDA function?
The LAMBDA function is primarily available to Microsoft 365 subscribers and Excel for the Web users. It is not supported in standalone perpetual versions like Excel 2019 or Excel 2016.
How do I correctly pass arguments to a named LAMBDA function?
Once the function is defined in the Name Manager, type its name in a cell followed by the exact number of required arguments enclosed in parentheses, for example: =MYFUNCTION(1,2,3,4,5).
Can I define a LAMBDA function without using the Name Manager?
Yes, you can define a LAMBDA function directly within a cell formula by nesting it inside the LET function, which assigns it a name for that specific calculation without modifying the workbook's Name Manager.




