Skip to main content

#NAME? Error in Excel: Causes, Fixes, and Prevention Tips

Learn why the #NAME? error occurs in Excel formulas and discover practical steps to troubleshoot, fix, and prevent it for smoother spreadsheet workflows.
May 26, 2025  · 8 min read

Maybe you have typed a formula into Excel and seen the #NAME? error pop-up. This error means Excel doesn’t recognize something you’ve typed. Maybe there’s a small typo, a name’s missing, or a formula is written in a way Excel doesn’t understand. Whatever the cause, it can be a headache if you don’t fix it.

In this article, we’ll go through the causes of the #NAME? Error and explore ways to fix it. 

What Is the #NAME? Error in Excel?

The #NAME? error occurs when Excel encounters something in a formula that it cannot interpret. Formulas follow a strict syntax, and each element—whether a function name, named range, or text string—must be something Excel recognizes. When a component is undefined, misspelled, or improperly formatted, Excel raises the #NAME? error. It's not simply a typo warning that you can ignore. It's a signal that part of the formula is actually unresolvable within Excel's formula language.

Common Causes of the #NAME? Error

Here are a few reasons why you may see #NAME? error in your spreadsheet. 

Misspelled function names

One of the common causes is a typo. One wrong letter can throw an error. For example, if we write CONTIF() instead of COUNTIF(), Excel won’t recognize it and will throw the #NAME? error. 

Misspelled function names causes #NAME? Error in Excel.

Misspelled function names cause #NAME? error. Image by Author.

Using new functions in older Excel versions

Sometimes, the error happens because you’re using a function that’s only available in newer Excel versions, like Excel 365. For example, FILTER(), XLOOKUP(), and UNIQUE() won’t work in Excel 2019 or earlier, and that causes the #NAME? error.

Note: If you want to check which version of Excel you’re using, go to File > Account > About Excel to check.

Use of new function in older version causes #NAME? error in Excel.

Use of new function in older version causes #NAME? error. Image by Author.

Invalid or misspelled named ranges

Named ranges are custom names we give to groups of cells. So, if we misspell the name or it no longer exists, Excel shows the #NAME? error.

Note: Go to the Formulas tab and open Name Manager to confirm the range name.

Named ranges can apply to only one sheet (local scope) or the whole workbook (global scope). If you’ve fixed the spelling but still see the error, it might be because you’re using a local scope name in the wrong place. Make sure you’re using the right scope.

incorrect named range causes #NAME? error in Excel.

Typo in named range causes #NAME? error. Image by Author.

Incorrect range references

Excel also shows the #NAME? error if we reference a range incorrectly. For example, typing C2C11 instead of C2:C11, or using a column like CA:C11 that doesn’t exist.

A good way to avoid such typos is to use your mouse to select the range (drag your cursor til the range you want to add).

Invalid range reference causes #NAME? error in Excel.

Invalid range reference causes #NAME? error.  Image by Author.

Missing quotation marks around text

If you use text in a formula, wrap it in straight double quotes like "Apples". Single quotes won’t work. And if you leave out the quotes, Excel thinks it’s a function or named range. And if it can’t find a match, you get the #NAME? error.

For example:

  • This works: =IF(A1="Apple", "Yes", "No")

  • This won’t: =IF(A1=Apple, Yes, No)

Note: Watch out for smart quotes (like “ or ”) that you might copy from websites or Word. They won’t work in Excel.

Missing double quotes in formula around text causes #NAME? error in Excel.

Missing double quotes around text causes #NAME? error. Image by Author.

Missing add-ins or custom functions

Some functions need add-ins or custom code to work. For example, EUROCONVERT() only works if the Euro Currency Tools add-in is turned on. If it’s not installed or enabled, you’ll get the #NAME? error.

To check your add-ins: Go to File > Options > Add-ins. You can see what’s active and manage what’s missing.

Disabled add-ins causes #NAME? error in Excel.

Disabled add-ins causes #NAME? error. Image by Author.

The same thing happens if you're using a custom function built with VBA.

Let’s say you created a custom function called GetInitials, which takes a full name like John Smith and returns JS. If that function were written in one workbook, it would only work in that file (or in any workbook where the code is available).

So if you try to use =GetInitials(A1) in a different workbook where the code isn’t present, Excel won’t recognize it and will throw the #NAME? error. 

Missing custom function causes #NAME? error in Excel.

Missing custom function causes #NAME? error. Image by Author.

How to Fix the #NAME? Error in Excel

Now that we know what causes the #NAME? error, let’s look at how to fix it and how to avoid it in the future.

How to fix a single #NAME? Error

#NAME? error is small and easy to miss. Here are some ways to spot and fix it:

  • Use autocomplete to avoid typos: As you start typing a formula, Excel suggests functions and named ranges. Press Tab to select the one you want. That way, you avoid typing errors.

To avoid errors, use autocomplete suggestion in Excel.

To avoid errors, use auto suggestion. Image by Author.

  • Check named ranges with Name Manager: If your formula uses a named range, double-check it in Name Manager. Not sure of the name? Go to the Formulas tab, open Name Manager, and make sure the name exists and is spelled correctly.

Check named ranges in Name Manager to avoid typos.

Check named ranges in Name Manager to avoid typos. Image by Author.

  • Fix quote issues in text: When you use text in a formula, wrap it in straight double quotes like "Apple". Curly quotes (“ ”) copied from other apps won’t work. If you’ve copied the formula from a website or MS Word, replace the quotes manually.

  • Use your mouse for range references: Instead of typing cell references, use your mouse to select them. It’s quicker and avoids typos like C2C11 instead of C2:C11.

Use mouse to select the range to avoid typos in references in Excel.

Using mouse to select the range. Image by Author.

  • Make sure your Excel version supports the function: Some formulas only work in newer Excel versions like Excel 365. If a function name doesn’t show in the dropdown, it’s probably not supported in your version. To check your version: Go to File > Account > About Excel.

  • Enable any missing add-ins: Some functions rely on add-ins to work. To check yours: Go to File > Options > Add-ins. This will show you what’s installed and can turn on anything you need.

  • Refresh your formulas: Sometimes, a formula needs a nudge. Press F9 to refresh and force Excel to recalculate everything.

How to find and fix all #NAME? errors in a workbook

If you’ve more than one #NAME? error, here are two easy ways to find and fix them all: 

Use Go To Special to highlight all formula errors

This method shows every error in your sheet, including #NAME?, #DIV/0!, and more. Here’s how you can activate it:

  1. Select the range you want to check. 

  2. Go to Home tab > Find & Select > Go To Special. Or press F5 and select Special

  3. Now, select Formulas and only tick the Error box. 

Excel will now only highlight all the cells with errors. From there, you can check which ones are #NAME? and fix them one by one.

Highlight errors with Go To Special tool in Excel.

Highlight errors with Go To Special tool. Image by Author.

Use Find and Replace

Another way is to find and replace the error with the Excel built-in Find and Replace tool:

  1. In the Home tab > Find & Select > Find. Or press Ctrl + F.

  2. Type #NAME? In the Find what box.

  3. Click Options and make sure Look in is set to Values.

  4. Click Find All to see every match.

You’ll now see every cell with a #NAME? error. Click through them to fix each one or remove them all at once if that’s easier.

Find the #NAME? Error with Find and Replace tool in Excel.

Find the #NAME? Error with the Find and Replace tool. Image by Author.

Note: To replace it with something else, press Ctrl + H and go to the Replace tab. Enter #NAME? in the Find what box, and type your replacement in the Replace with box.

How to Prevent #NAME? Errors

The best way to fix #NAME? errors is to stop them before they happen. And you can do this by writing error-free formulas using the Formula Wizard. If you’re unsure how to write a formula, the Formula Wizard can walk you through it. Here’s how:

  1. Click the cell you want to use
  2. Press the fx button next to the formula bar
  3. Pick a function or search for one, then press OK
  4. Fill in the input boxes with Excel’s helpful hints
  5. Press OK, and your formula appears

Use Excel's Formula Wizard to enter the formula.

Use the Formula Wizard to enter the formula. Image by Author.

Additional Tips and Best Practices

A few good habits can save you from running into the #NAME error again:

Don’t hide the error: fix it

Functions like IFERROR() can be helpful, but they don’t solve the problem. We can use them to cover up errors, but if you don’t fix the root cause, the issue is still there, only hidden. So, fix it first. Then use IFERROR() to smooth out your spreadsheet.

Keep an eye on named ranges

If you're working in a large or shared spreadsheet, check your named ranges regularly. Why? Because over time, things can get renamed, deleted, or changed if lots of people are editing the file. So, a quick check in Name Manager can save you from confusing errors later on.

Final Thoughts 

And that’s the #NAME? error in Excel. It might seem confusing at first, but it usually comes down to something simple, like a typo, a missing quote, or a broken reference. Once you know what to check, it’s easy to fix.

To avoid these errors, use Excel’s autocomplete, double-check your named ranges, and make sure the function works in your version of Excel. Don’t just hide the error with IFERROR(), fix its root cause.

If you want to explore more, check out our #SPILL! Error Excel guide and our Excel Fundamentals skill track. 


Laiba Siddiqui's photo
Author
Laiba Siddiqui
LinkedIn
Twitter

I'm a content strategist who loves simplifying complex topics. I’ve helped companies like Splunk, Hackernoon, and Tiiny Host create engaging and informative content for their audiences.

Advance Your Career with Excel

Gain the skills to maximize Excel—no experience required.

Start Today for Free

FAQs

Does Excel differentiate between uppercase and lowercase in function names?

No, Excel functions are not case-sensitive. Typing sum() or SUM() works the same. However, spelling must be exact.

Can protected sheets or locked cells contribute to #NAME? errors?

No, protection does not directly cause #NAME? errors, but it can prevent fixing them if you can’t edit the formula cell.

Topics
Related

Tutorial

#SPILL! Error Excel: What It Means and How to Fix It

Understand why the #SPILL! error appears when using dynamic arrays in Excel. Learn how to fix it, prevent it, and make the most of Excel’s array formulas.
Allan Ouko's photo

Allan Ouko

8 min

Tutorial

How to Separate Names in Excel: 3 Easy Methods

Discover how to separate names in Excel with features like Text to Columns, Flash Fill, and custom-built formulas. Make your spreadsheets cleaner and easier to work with.
Laiba Siddiqui's photo

Laiba Siddiqui

7 min

Tutorial

Spell Check in Excel: Find and Fix Errors

Learn how to effectively use Excel’s built-in spell check feature to identify and correct errors in your worksheets. This guide covers everything from basic steps to advanced techniques.
Jachimma Christian's photo

Jachimma Christian

6 min

Tutorial

Excel INDIRECT(): How to Build Dynamic References in Your Formulas

Discover how Excel's INDIRECT() function transforms text into live references. Learn how to use it for dynamic worksheets, stable cell references, named ranges, and more.
Allan Ouko's photo

Allan Ouko

8 min

Tutorial

Absolute Reference Excel: Stop Cell References from Moving

Learn how absolute references work in Excel formulas to keep specific cell references constant. Discover when to use absolute, relative, and mixed references.
Allan Ouko's photo

Allan Ouko

8 min

Tutorial

How to Divide in Excel: A Beginner-Friendly Breakdown

Learn how to divide numbers, cells, and columns in Excel using simple formulas and tools. Discover how to handle errors, use functions like QUOTIENT and MOD, and ensure results sum to whole numbers when needed.
Laiba Siddiqui's photo

Laiba Siddiqui

7 min

See MoreSee More