How to Fix the #NAME Error in Excel (Complete Guide for 2026)

The #NAME error in Excel appears when Excel cannot recognize text in a formula. It usually means Excel does not understand a function name, a named range, or some text you typed inside a formula. The fix is almost always simple once you know what caused it.

This guide covers every reason the #NAME error shows up, how to find the exact cause fast, and how to fix each one. No fluff, just solutions.

What Does the #NAME Error Mean in Excel?

When you see #NAME? in a cell, Excel is saying: “I don’t know what this word means.”

Excel reads your formula left to right. The moment it hits a word or string it cannot match to a known function, defined name, or valid text format, it stops and returns #NAME?.

It is not a data error. It is a formula recognition error. That means the problem is always inside the formula itself.

#NAME Error Causes and Fixes

CauseExampleFix
Misspelled function name=SUMM(A1:A10)Correct the spelling to =SUM
Undefined named range=TotalSales where range not definedDefine the name or fix the reference
Missing quotation marks around text=IF(A1=Yes,”OK”,”No”)Use =IF(A1=”Yes”,”OK”,”No”)
Using a function from another version=XLOOKUP() in Excel 2016Upgrade Excel or use VLOOKUP instead
Colon missing in range=SUM(A1 A10)Fix to =SUM(A1:A10)
Text instead of cell reference=A1+Total where Total is not namedDefine the name or replace with reference
Add-in function without the add-in loaded=EUROCONVERT()Enable the add-in in Excel options

Top Reasons You Get the #NAME Error in Excel

#NAME Error in Excel

1. Misspelled Function Name

This is the most common cause. Excel function names must be spelled exactly right.

See also  Top Areas to be Improved in Recent Trends of Cybersecurity

If you type =AVEREGE(A1:A10) instead of =AVERAGE(A1:A10), Excel returns #NAME? immediately.

How to avoid it: Start typing the function name and press Tab when Excel suggests it in the autocomplete dropdown. This guarantees the correct spelling every time.

To fix it: Click the cell, go to the formula bar, and correct the spelling.

2. Text Without Quotation Marks

If you type text directly in a formula without wrapping it in double quotation marks, Excel treats that text as a named range or function. When it cannot find a match, it returns #NAME?.

Wrong:

=IF(A1=Yes, "Approved", "Denied")

Correct:

=IF(A1="Yes", "Approved", "Denied")

The word Yes without quotes looks like a named range to Excel. Wrap all literal text values in double quotes.

3. Using a Named Range That Does Not Exist

If your formula references a name like =Budget_2026+Expenses and you never defined those names in Excel, you will get #NAME?.

How to check: Go to the Formulas tab and click Name Manager. You will see every defined name in the workbook. If your name is not listed there, Excel does not know it exists.

How to fix it: Either create the named range using Define Name in the Formulas tab, or replace the name in the formula with the actual cell reference like =B2+C2.

4. Using a Function Not Available in Your Excel Version

Some functions only exist in newer versions of Excel. If you open a file from someone using Microsoft 365 and your version is Excel 2016 or 2019, formulas using newer functions will return #NAME?.

Examples of functions that require newer Excel versions:

  • XLOOKUP (requires Excel 2019 or Microsoft 365)
  • FILTER (requires Microsoft 365)
  • UNIQUE (requires Microsoft 365)
  • IFS (requires Excel 2019+)
  • TEXTJOIN (requires Excel 2016 update or higher)

How to fix it: Either upgrade your Excel version, or replace the newer function with a compatible alternative. For example, replace XLOOKUP with VLOOKUP or INDEX/MATCH.

You can check which functions are available in your version on the Microsoft Excel function compatibility page.

5. Missing or Wrong Colon in a Range Reference

A range in Excel always uses a colon between the start and end cell. If you forget it or use a comma instead, Excel may return #NAME?.

Wrong:

=SUM(A1 A10)

Correct:

=SUM(A1:A10)

If Excel sees A1 A10 with just a space, it interprets this as an intersection operator, not a range. Depending on the context, this might return #NULL! or #NAME?.

6. Unloaded Add-In Functions

Some Excel functions come from add-ins like the Analysis ToolPak or the Euro Currency Tools add-in. If the add-in is not loaded, those functions return #NAME?.

Common add-in functions that cause this:

  • EUROCONVERT (Euro Currency Tools)
  • GESTEP, BESSELI, CONVERT (Analysis ToolPak)

How to fix it:

  1. Go to File, then Options
  2. Click Add-ins
  3. At the bottom, set the Manage dropdown to Excel Add-ins and click Go
  4. Check the box for the relevant add-in and click OK

The formula should now resolve correctly.

7. Curly Quotes or Smart Quotes Instead of Straight Quotes

If you paste a formula from a website or Word document, the quotation marks might be curly or “smart” quotes. Excel only accepts straight double quotes in formulas.

See also  REST vs GraphQL vs gRPC: The Comparison of APIs in 2024

Curly quotes look like this: ” ” Straight quotes look like this: ” “

If your formula contains curly quotes around text, Excel will return #NAME?.

How to fix it: Manually retype the quotation marks directly inside Excel. Do not paste them from outside.

How to Find the Exact Cause of the #NAME Error Fast

Method 1: Use the Formula Auditing Tool

  1. Click the cell showing #NAME?
  2. Go to the Formulas tab
  3. Click Error Checking
  4. Excel will highlight the part of the formula it cannot recognize

Method 2: Check the Formula Bar Manually

Click the cell and look at the formula bar. Scan for:

  • Any word outside of quotes that is not a function name
  • Any text that looks like it should be in quotes but is not
  • Any function name that looks slightly off

Method 3: Use Evaluate Formula

  1. Click the cell
  2. Go to Formulas, then Evaluate Formula
  3. Click Evaluate step by step

Excel will walk through each part of the formula and stop at the point where the error occurs. This is very useful for long, nested formulas.

How to Fix #NAME Error in Specific Situations

Fixing #NAME in VLOOKUP

If =VLOOKUP(A1,SalesData,2,FALSE) returns #NAME?, the most likely cause is that SalesData is a named range that does not exist in this workbook.

Fix: Go to Name Manager and check if SalesData is defined. If not, replace it with the actual range like =VLOOKUP(A1,$B$2:$D$100,2,FALSE).

Fixing #NAME in IF Formulas

If =IF(A1=Pending,”Yes”,”No”) returns #NAME?, the word Pending is not in quotes.

Fix: Change to =IF(A1=”Pending”,”Yes”,”No”).

Fixing #NAME When Using XLOOKUP in Older Excel

If a file from a Microsoft 365 user uses XLOOKUP and you get #NAME?, your version does not support that function.

Fix: Replace with INDEX/MATCH:

Instead of:

=XLOOKUP(A1, B:B, C:C)

Use:

=INDEX(C:C, MATCH(A1, B:B, 0))

This works in all Excel versions from 2007 onward.

Fixing #NAME When Copying Formulas Between Workbooks

Named ranges are local to a workbook by default. If you copy a formula that uses named ranges from Workbook A to Workbook B, Excel looks for those names in Workbook B. If they are not there, you get #NAME?.

Fix: Either recreate the named ranges in the new workbook, or replace the names with absolute cell references before copying.

Preventing the #NAME Error Before It Happens

These habits will stop most #NAME errors before they start.

Use the formula autocomplete dropdown. When you start typing a function, Excel shows a dropdown list. Press Tab to select the function. This eliminates typos.

Use the Function Arguments dialog. Press Shift+F3 or click the fx button next to the formula bar. Excel guides you through building the formula with the correct syntax.

Always test named ranges. After creating a named range, type it directly into a cell preceded by = and confirm it returns the expected result before using it inside a larger formula.

See also  How to Create a Resume That Gets Results

Lock your Excel version assumptions. If you share files with users on older Excel, avoid Microsoft 365-only functions unless everyone has upgraded. You can check version compatibility on ExcelJet’s function list, which notes version requirements clearly.

Check for smart quotes after pasting. Any time you paste a formula from outside Excel, inspect the quotes carefully before pressing Enter.

#NAME Error vs Other Excel Errors

Understanding what each error type means helps you diagnose problems faster.

ErrorWhat It Means
#NAME?Excel does not recognize a word in the formula
#VALUE!Wrong type of data used in a calculation
#REF!A cell reference is no longer valid (often from deleted rows/columns)
#DIV/0!Formula is trying to divide by zero
#NULL!Invalid intersection of two ranges
#N/ALookup value was not found
#NUM!Formula contains an invalid numeric value

The #NAME? error is unique because it always points to a formula syntax problem, never a data problem. Fix the formula and the error disappears.

Advanced: #NAME Error in Array Formulas

In older Excel versions (before Excel 365), array formulas must be entered with Ctrl+Shift+Enter. If you enter them with just Enter, they may behave incorrectly or return errors.

In Excel 365, dynamic arrays handle this automatically, but if you are using CTRL+SHIFT+ENTER formulas in Excel 2019 or earlier and see #NAME?, check whether:

  • The function supports array entry in your version
  • You entered it with Ctrl+Shift+Enter (you will see curly braces around the formula like {=SUM(IF(…))})

What to Do If You Cannot Find the Cause

If you have checked everything and still see #NAME?, try this:

  1. Copy the entire formula from the formula bar
  2. Paste it into a text editor like Notepad
  3. Read through it character by character
  4. Look for any character that looks similar to a standard character but is not (special Unicode characters can slip in)

Sometimes text copied from PDFs or web pages contains invisible or non-standard characters that look normal but confuse Excel.

You can also delete the formula entirely and retype it from scratch. This removes any hidden characters that survived from copy-paste.

Conclusion

The #NAME error in Excel always points to something in your formula that Excel cannot recognize. In most cases it is a typo in a function name, text without quotation marks, or a named range that does not exist. In less common cases it is a function that requires a newer Excel version or an add-in that is not loaded.

The fastest way to fix it is to click the cell, read the formula carefully in the formula bar, and look for the word or text that Excel cannot match. Use Evaluate Formula when the issue is not obvious. Build the habit of using autocomplete when typing functions, and you will rarely see this error again.

Every #NAME? error has a clear cause, and every one of them has a fix.

Frequently Asked Questions

Why does my formula suddenly show #NAME after I moved the file?

Named ranges are stored in the workbook. If you moved the formula to a different file without bringing the named ranges along, Excel cannot find them. Open Name Manager in the Formulas tab and check which names are defined. Recreate any missing ones or replace names with direct cell references.

Can #NAME error appear in a formula that was working before?

Yes. This can happen if someone deleted a named range that your formula depended on, if you upgraded Excel and a function name changed, or if the file was opened on a different version of Excel that does not support one of the functions. Check Name Manager first, then verify function compatibility with your current Excel version.

Does #NAME error affect other cells in the spreadsheet?

If another cell references the cell showing #NAME?, it will also return an error, typically #VALUE! or #NAME? itself. Fix the original cell first and the dependent cells will usually resolve automatically.

How do I fix #NAME error in Excel on Mac?

The causes and fixes are identical on Mac. The only difference is navigation: on Mac, access Name Manager via the Formulas tab as well, and access Add-ins via the Tools menu instead of File, Options. Formula syntax and function names are the same across Windows and Mac versions of Excel.

Is #NAME error the same as #NAME! in some Excel versions?

Excel always shows it as #NAME? with a question mark. If you see it written as #NAME! somewhere, that is likely a typo in documentation. The actual error displayed in Excel cells is always #NAME? with a question mark.

MK Usmaan