Just like any other error in Excel, the #NAME error also occurs in specific situations (which I will cover in this tutorial), and there are some simple ways to find and fix the #NAME error. Let’s get to it right away!

## What causes the #NAME Error?

When you use a formula and it gives you a NAME error, it means that the formula can not recognize something in it. Let’s have a look at some of the most common issues that can cause a name error to raise its ugly head in your spreadsheet.

### Misspelled Formula Name

One of the most common reasons people see the name error is when they have used the wrong formula name. For example, if you’re using the VLOOKUP formula and you type VLOKUP instead, Excel wouldn’t know what you mean, and it will show its disapproval by giving you the name error. Below is an example where I have used the wrong formula name and have been slapped with the name error. How to correct this – Just check the names of all the functions you have used. A quick way is to simply place the cursor somewhere in the function name and Excel will show you a tool-tip. If it doesn’t, there is a possibility that you have misspelled the function name. Note: You can also get the name error in case you created a User Defined formula (UDF) using VBA and then misspelled the name. In this case, you should check the formula name in the VB Editor and make sure it’s correct.

### Misspelled Named Range

If you work with named ranges, there is a possibility that you have misspelled them. And since Excel has no idea what range to refer to in this case, it shows the name error. Below I have an example where I have used the named range name ‘Scores’ for data in column A and B. And when I used the wrong name in the formula (where ‘s’ is missing in ‘Score’), Excel shows me the name error. How to correct this – Check the named ranges you have used and correct any misspelled names. When you use a named range in the formula, you will notice that its color changes. So in this case, you can spot any named range where the color is black, you may have found the culprit As a best practice, I always let Excel show me the Named Range names while I am typing. For example, if I have a named range ‘Scores’, and I type ‘Sco’, Excel will go out of the way to be helpful and show me all the names that match the text I entered (i.e., all the names starting with ‘Sco’). It’s best to choose from the list Excel shows as there would be no chance of misspelled named ranges in that case.

### Incorrect Range

In case you’re manually entering the range, there is a possibility that you may make a mistake and end up with a name error. These mistakes could include:

Missing a colon in the range reference (A1A10 instead of A1:A10)

Using a reference that isn’t valid. In Excel, the range varies from A1: XFD1048576. If you use anything outside of this range, it will show you a name error. For example, enter =XFD1048577 in a cell and you will see the error.

### Opening New Version Formulas in Older Versions

Excel has been working on adding a lot of new formulas in the new versions. For example, a lot of new functions such as XLOOKUP, FILTER, SORTBY, etc. were added in Excel 2019 and Microsoft Excel 365. There are also many functions that were added in excel 2013 or 2016 which may not work with Excel 2010 and prior versions (such as IFNA). So if you open an Excel workbook in an older version that uses these new formulas, you likely see the name error. The logic is the same – since these formulas do not exist in that version of Excel, it considers these as misspelled names. Unfortunately, there is no fix to this problem. If you are sending a file to a person who’s using an older version of Excel, you need to make sure that you don’t use any newer formulas (or insist them on upgrading to a newer version of Excel)

### Missing Quotation Around Text in the Formula

In formulas that expect the text values to be in double quotes, a missing double quote will show you the name error. When you keep a text within double quotes, Excel treats it as a text string, but when it’s not within double quotes, Excel thinks it’s a named range or formula name. For example, if I use the formula =LEN(“Excel”), it works. But if I use =LEN(Excel) or LEN(“Excel), it would show the name error. In some cases, Excel can recognize that there is a missing quotation mark and show you the prompt with a suggestion. If you click on Yes, then in some cases it sorts the issue.

## How to Fix the #NAME erorrs in Excel

Now that I have covered most of the reasons that can cause a name error in your worksheet, let’s have a look at some simple tips that will help you avoid this error to crop up in your work.

### Use the Formula Assistance

When you enter an equal-to sign and start typing the name of a formula, you will see that Excel shows you all the matching names of the formulas. I am not sure what this feature is called, but I call this formula assistance. Instead of manually typing the formula in full, it would help if you choose the from the list. This makes sure that the name of the formula is not misspelled. In case you have named ranges or tables, you will also see those show up in the list, making it easy for you to avoid any misspelled words.

### Use the Formula Wizard

In case you’re not sure about the arguments that the function takes (any error in which can result in the name error), you can use the formula wizard. To open it, click on the fx icon just next to the formula bar. In the Insert Function dialog box that shows up, enter the formula name (you can also enter a partial name and then search) and double-click on it. This opens the Function Arguments dialog box which shows a lot of help on each argument. If you’re new to Excel formulas, I recommend you use the Formula Wizard till you are confident enough to use formulas directly in the worksheet.

### Use Name Manager

If you create a lot of Excel tables and named ranges when working with complex data and calculations, there is a good chance you will forget the name you used and may end up misspelling it. Instead of relying on your wonderful memory power, give Name Manager a chance. It’s a place that will show you all the named ranges and table names, and you can choose and use the one you want right from the name manager. Below are the steps to open the Name Manager: This opens the name manager with all the names. You can also create new names or delete/edit the existing ones here. If you’re a keyboard person like I am, use the below keyboard shortcut to open the name manager: Here is another useful tip when working with a lot of named ranges. Pro Tip: If you’re writing formulas and need to use a named range, you can go to the Formula tab and then click on the ‘Use in Formula’ option in the Defined Names group. This will show you all the named ranges you have and you can get the name in the formula with a click of a button.

## How to Find all #NAME Errors in Excel?

So far, I have covered what can cause a name error and some tips to make sure it doesn’t appear in your work. But sometimes, it’s possible that you get a file from someone else and you need to find and correct any name errors (or any error) in the file. In this section, I will show you a couple of methods that you can use to quickly identify cells that have the name error and correct it (or get rid of it).

### Using Go To Special Technique

Using go to special, you can quickly select all the cells that have an error. This is not ‘Name error’ specific, which means that any cells that have any kind of error would be selected. Below are the steps to do this: The above steps would select all the cells that have any kind of error in them. Once you have these cells selected, you can treat them any way you want. For example, you can highlight these cells by giving them a background color, delete these, or you can manually go through them one by one and find out the cause for these errors.

### Using Find and Replace

If you only want to find out the name errors, you can use the Find and Replace functionality within Excel to do this. Below are the steps to find out all the name errors in a selected data set (or worksheet). If your selected range has a name error, you’ll see that an additional box opens below the Find and Replace dialog box that lists all the cells that have the name error. Here, you can select each cell one by one and treat these cells, or select all of these at once and perform operations such as highlight these cells or delete these cells. Just the way I have used this technique to find out all the name errors in the worksheet, you can use it to find out any other kind of error as well. So this is all about the name error in excel. In this tutorial, I covered the possible reasons that are causing the name error in your data, some of the techniques you can use to make sure that it doesn’t appear, and two methods that you can use to find the name errors in your worksheet or workbook. I hope you found this tutorial useful. Other excel tutorials you may also like:

#REF! Error in Excel – How to Fix the Reference Error!Excel Formulas Not Working: Possible Reasons and How to FIX IT!Microsoft Excel Won’t Open – How to Fix it! (6 Possible Solutions)Identify Errors Using Excel Formula Debugging (2 Methods)Use IFERROR with VLOOKUP to Get Rid of #N/A ErrorsHow to Get Rid of #DIV/0! Error in Excel?How to Fix #VALUE Error in Excel?