ElyxAI

#NAME?: Excel Does Not Know This Name

Severity: Moderate

#NAME? means a word in the formula is not a function, a defined name, or text in quotes. Check the spelling, the language of the function name, and any text that was left unquoted.

#NAME?

Excel returns #NAME? when it cannot resolve a piece of text in a formula. The calculation does not start. The word is treated as a name, and that name is not defined. The usual case is a misspelled function, such as VLOKUP instead of VLOOKUP, or SUMIF written SUMIFF. The language of Excel matters as much as the spelling. A French Excel calls VLOOKUP RECHERCHEV, SUMIF SOMME.SI, and FALSE FAUX. Typing the English name in that Excel returns #NOM?, which is the same error. Typing the French name in an English Excel returns #NAME?. Text that belongs in the formula as a value must sit inside straight double quotes. =IF(A1=Yes,1,0) looks for a defined name Yes. =IF(A1="Yes",1,0) compares A1 with the word Yes. Curly quotes pasted from a document do not count as those quotes. A defined name that was never created, or that was deleted, returns the same error. Formulas > Name Manager (Ctrl+F3 on Windows) lists the names in this workbook. A range written without the colon, such as A1A10, is also read as a name. A function this version of Excel does not include returns #NAME? too. XLOOKUP in Excel 2019 or earlier is the common case. The function exists in Excel for Microsoft 365 and Excel 2021. A missing parenthesis usually opens the formula warning instead of returning #NAME?. A missing value inside VLOOKUP returns #N/A, and a deleted cell reference returns #REF!.

Common Causes

The function name is misspelled

Excel only runs a function whose name it knows. One wrong letter makes the word a defined name, and #NAME? follows when that name does not exist.

=VLOKUP(A2,B:D,2,FALSE) instead of =VLOOKUP(A2,B:D,2,FALSE)

The function name is in the wrong language

Each Excel language has its own function names. VLOOKUP in a French Excel, or RECHERCHEV in an English Excel, is an unknown name. FALSE and FAUX follow the same rule.

=VLOOKUP(A2;B:D;2;FAUX) in a French Excel, where the function is RECHERCHEV and false is FAUX

Text is missing its quotes

Without straight double quotes, a word is a name, not text. The formula returns #NAME? when no defined name uses that spelling.

=IF(A1=Complete,1,0) instead of =IF(A1="Complete",1,0)

A defined name does not exist

Names are local to the workbook unless you created them with a scope. Deleting a name, or opening a file that never had it, returns #NAME? in every formula that still uses it.

=SUM(Q1Sales) when Q1Sales is not listed in Name Manager

The function is not in this Excel

XLOOKUP, FILTER, UNIQUE, SORT, and XMATCH are in Excel for Microsoft 365 and Excel 2021. In Excel 2019 or earlier those names return #NAME?.

=XLOOKUP(A2,D:D,E:E) in Excel 2019

A range is missing its colon

A1:A10 is a range. A1A10 is a name. If that name is not defined, the formula returns #NAME?.

=SUM(A1A10) instead of =SUM(A1:A10)

Diagnostic Steps

  1. 1Select the cell and read the formula bar. Find the word that is not a cell reference and not inside quotes.
  2. 2Compare that word with the function list for this Excel language. Insert Function shows the local name.
  3. 3If the word is meant to be text, wrap it in straight double quotes.
  4. 4If the word is meant to be a defined name, open Formulas > Name Manager (Ctrl+F3 on Windows) and check the spelling and the sheet scope.
  5. 5If the word is a newer function, check the Excel version under File > Account. Excel 2019 does not include XLOOKUP.
  6. 6Look for a range written without a colon, such as A1A10.

Solutions

For: Misspelled function name

The function list inserts a name this Excel recognizes, which removes the unknown word.

=VLOOKUP(A2,B:D,2,FALSE)
  • →Click the cell.
  • →Replace the name with the one from the function list.
  • →Press Enter.

For: Wrong language

A French Excel does not define VLOOKUP or FALSE. It defines RECHERCHEV and FAUX.

=RECHERCHEV(A2;B:D;2;FAUX)
  • →Note the Excel language from the ribbon labels.
  • →Replace the foreign function name with the local one.
  • →Replace FALSE or TRUE with FAUX or VRAI when the ribbon is French, and the reverse when it is English.

For: Missing quotes

Quoted text is a value. An unquoted word is a name, and an unknown name returns #NAME?.

=IF(A1="Complete",1,0)
  • →Find the bare word that should be text.
  • →Wrap it in straight double quotes.
  • →Replace any curly quotes with straight quotes.

For: Missing defined name

A range does not depend on a name. Creating the missing name also clears the error in every formula that uses it.

=SUM(A1:A10)
  • →Open Formulas > Name Manager.
  • →Create the name with the correct range, or fix the spelling.
  • →Or replace the name in the formula with the range itself, such as A1:A10.

For: Function not in this version

INDEX and MATCH exist in those older versions. XLOOKUP does not, so its name returns #NAME?.

=INDEX(E:E,MATCH(A2,D:D,0))
  • →Confirm the version under File > Account.
  • →If it is Excel 2019 or earlier, replace XLOOKUP with INDEX and MATCH, or open the file in Microsoft 365 or Excel 2021.

Prevention Tips

  • Pick the function from the suggestion list as you type, so the name matches this Excel.
  • Put text values in straight double quotes before you press Enter.
  • Review defined names in Name Manager before you delete a sheet they point at.
  • For a range, type the colon. A1:A10 is a range. A1A10 is a name.

Affected Formulas

Real-world Scenarios

Criteria written without quotes

A status column is counted with COUNTIF. The criterion is the word Open.

Problem: =COUNTIF(B:B,Open) treats Open as a name. No such name exists.

Solution: Quote the word.

A deleted named range

A total uses the name Q1Sales, created on a sheet that was later deleted.

Problem: The name was removed with the sheet, and =SUM(Q1Sales) returns #NAME?.

Solution: Point the formula at the current range, or create the name again.

XLOOKUP in an older Excel

A workbook written in Microsoft 365 is opened in Excel 2019.

Problem: =XLOOKUP(A2,D:D,E:E) returns #NAME? because Excel 2019 has no XLOOKUP.

Solution: Use INDEX and MATCH, which that version includes.

Free Tools to Fix Your Formulas

Use these free tools to create correct formulas and avoid errors:

Frequently Asked Questions

Don’t want to do it by hand? Ask Elyx

Example request

“Fix the #NAME? errors in column D and tell me what caused them”

Elyx does it directly in your Excel file.

7 days free · No credit card required

Related Errors