The examples below show misconfigured formulas that return the #NAME error and the steps needed to fix the error and get a working formula again.
Function name misspelled
In the example below, the VLOOKUP function is used to retrieve an item price in F3. The function name “VLOOKUP” is spelled incorrectly, and the formula returns #NAME?
When the formula is fixed, the formula works properly:
Range entered incorrectly
In the example below, the MAX and MIN functions are used to find minimum and maximum temperatures. the formulas in F2 and F3, respectively, are:
Below the range used in F3 has been fixed:
Note: forgetting to include a colon (:) in a range will also trigger the #NAME? error.
Named range misspelled
In the example below, the named range “data” equals C3:C7. In F2, “data” is misspelled “daata” and the MAX function returns #NAME?
Below, the spelling is corrected and the MAX function correctly returns 325 as the maximum sales number:
Notice named ranges are not enclosed by quotes ("") in a formula.
Named range has local scope
Named ranges can have local (this worksheet only) or global (all worksheets) scope, so you might see a #NAME? error if you try to reference a valid named range that is scoped locally to a different worksheet. You can use the Name Manager (Control + F3, Windows only) to check the scope named ranges. Read more about named ranges here.
Text value entered without quotes
When a text value is input without double quotes, Excel thinks tries to interpret the value as a function name, or named range. This can cause a #NAME? error when no match is found. In the example below, the LEN function is used to get the length of the word “apple”. In B3 the formula is entered without the text string “apple” in quotes (""). Because apple is not a function name or named range, the result is #NAME?
Below, quotes have been added and the LEN function now works correctly:
Text value with smart quotes
Text values needed to be quotes with straight double quotes (i.e. “apple”). If “smart” (sometimes called “curly”) quotes are used, Excel won’t interpret these as quotes at all and will instead return #NAME? To fix, simply replace the smart quotes with straight quotes: Note: some applications, like Microsoft Word, may change straight quotes to smart quotes automatically, so take care if you are moving a formula in and out of different applications or environments.
Dave Bruns
Hi - I’m Dave Bruns, and I run Exceljet with my wife, Lisa. Our goal is to help you work faster in Excel. We create short videos, and clear examples of formulas, functions, pivot tables, conditional formatting, and charts.