Formula Errors

Why Excel Shows the #NAME? Error

The #NAME? error means Excel does not recognize something in a formula. Here are the usual causes, from typos and missing quotes to missing functions.

On this page
  1. A misspelled function
  2. Text without quotation marks
  3. A named range that doesn’t exist
  4. Sheet names with spaces or symbols
  5. A function your version doesn’t have
  6. Check the formula carefully
  7. Google Sheets

The #NAME? error means Excel doesn’t recognize something in the formula. It might be a function name, a named range, or text that should be in quotation marks. In most cases the cause is a typo, and the fix takes a minute.

A misspelled function

=SUMM(A2:A10) shows #NAME? because there is no function called SUMM. Excel’s formula autocomplete suggests function names as you type. If you’re not sure of a name, click the fx button beside the formula bar to open the Insert Function dialog and search by what you want to do.

Text without quotation marks

Text inside a formula needs double quotation marks. =IF(B2=yes,"Paid","Unpaid") shows #NAME? because Excel reads yes as a name. The fix is =IF(B2="yes","Paid","Unpaid").

A named range that doesn’t exist

If a formula uses a name such as TaxRate, Excel looks for a named range with exactly that name. If the name was deleted, misspelled or never created, the result is #NAME?. Open Formulas > Name Manager to see the names in the workbook. If the name is missing, how to create named range in excel shows how to add it.

Sheet names with spaces or symbols

A sheet name with spaces or punctuation needs single quotation marks around it in a reference, such as ='Q1 Sales'!B2. Without them, Excel may show #NAME? or reject the formula. For the full rules on pointing at other sheets, see how to reference cell on another sheet in excel.

A function your version doesn’t have

Several newer functions need Excel 2021 or Microsoft 365. These include XLOOKUP, FILTER, UNIQUE, SORT, SEQUENCE and LET. In Excel 2019 or earlier, a formula that uses them shows #NAME?. A workbook built in a new version can show the same error when someone opens it in an older one.

To check your version, go to File > Account. If you need a formula that works in older versions, use an older equivalent such as INDEX and MATCH. If you’re mixing versions, how to use xlookup in excel is a useful reference for the function itself.

Check the formula carefully

  • Select the cell, press F2, and read each name and function in turn.
  • Use Evaluate Formula on the Formulas tab to find the first part that fails.
  • After you correct the formula, press Enter to recalculate.

Google Sheets

Google Sheets also shows #NAME?. Its message usually says what it couldn’t find, such as “Unknown range name” or “Unknown function.” Read the message first, because it tells you which part of the formula to check.

The complete guide to formula errors

Excel Formula Error Messages Explained
Read the guide

Keep exploring

Guides from other topics

All topics →

How to Look Up Data in Excel

How lookups work in Excel, with VLOOKUP, XLOOKUP and INDEX with MATCH, how to set up your data, and how to choose the right function for the job.

Lookups 3 min read