Function Problems

How to Fix a LAMBDA Function Returning #NAME? Error in Excel

Elise WilliamsElise Williams Nov 10, 2026 870 views

Question details

The user needs to resolve a #NAME? error that occurs when calling a custom named LAMBDA polynomial function.

How to Fix a LAMBDA Function That Returns #NAME? in Excel
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.
Before you start

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.

Solution 1Recommended

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.

1
Open Name Manager

Navigate to the Formulas tab on the Excel ribbon and click on Name Manager.

2
Create a New Name

Click the New button. In the Name field, type the exact name you want to use for your function (e.g., Polynomial).

3
Enter the LAMBDA Formula

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.

4
Call the Function

Return to your worksheet and call the function using the name and the required five arguments: =Polynomial(1,2,3,4,5).

Verify and Recreate the Function in Name Manager
Test Inline Syntax: Before saving it in the Name Manager, you can verify your LAMBDA syntax works by testing it inline in a cell with parameters appended at the end: =LAMBDA(a,b,c,d,x,((a*x+b)*x+c)*x+d)(1,2,3,4,5).
Free Microsoft Office alternative

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. 1. Download and Install: Visit the official WPS Office website to download and install the free suite on your device.
  2. 2. Open Your Workbooks: Launch WPS Spreadsheet and easily open your existing Excel workbooks without formatting loss.
  3. 3. Use Advanced Features: Take advantage of built-in advanced formulas and data processing tools to streamline your workflow.
Completely free and lightweight office suiteExcellent compatibility with Microsoft Excel formats (.xlsx, .xls, .csv)Familiar user interface requiring zero learning curve
microsoft office alternative - wps office

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.