How To Fix The #NAME? Error In Excel (2026)

The #NAME? error means Excel does not recognize something in your formula.

It is almost always a typo, a missing quotation mark or a name that was never defined.

This guide follows Microsoft’s own list of causes and shows where to click to fix each one.

Table of Contents

Quick answer: six causes of #NAME?

CauseFix
Typo in a function nameRetype it using the function drop-down or Insert Function
Name used in the formula is not definedCreate it in Formulas > Defined Names > Define Name
Typo in a defined nameCorrect the spelling or insert the name from Use in Formula
Text missing double quotation marksWrap every text value in quotes
Missing colon in a rangeWrite B2:B12, not B2 B12
Add-in not enabledTurn it on in File > Options > Add-ins

Microsoft also warns not to hide the error with IFERROR, so fix the cause instead.

Fix a misspelled function name

A function Excel cannot find, such as SUMM instead of SUM, returns #NAME?.

As you type a function name in a cell or the formula bar, a drop-down lists matching functions, so pick the name from the list instead of typing it all.

After you enter the name and an opening parenthesis, the syntax appears as hover text.

  1. Select the cell with the error.
  2. Go to the Formulas tab and select Insert Function.
  3. Choose the function and fill in each argument, which Excel explains as you select it.

Fix a name that is not defined

A formula such as =SUM(Profit) returns #NAME? when the workbook has no name called Profit.

  1. Optionally select the cells you want to name.
  2. Go to Formulas > Defined Names > Define Name.
  3. Enter a unique name.
  4. Set Scope to the current sheet or the entire workbook.
  5. Select OK.
  6. Place the cursor in the formula where the name belongs.
  7. Go to Formulas > Defined Names > Use in Formula and select the name.

A name defined for one sheet only will not work from another sheet, so choose the workbook scope if you need it everywhere.

Fix a typo in a defined name

The name may exist while the formula spells it differently, such as Profti instead of Profit.

Correct the spelling in the formula and press Enter.

To avoid the problem, go to Formulas > Defined Names > Use in Formula and select the name so Excel inserts it for you.

Put text values in double quotation marks

Any text in a formula must be inside double quotation marks, even if the text is only a space.

A formula like =IF(A1=has,"yes","no") fails because has is read as a name, while "has" works.

Check every text value in the formula, including the ones in IF, COUNTIF and concatenation.

FormulaResult
=IF(A1=has,"yes","no")#NAME?
=IF(A1="has","yes","no")Works

Add the missing colon in a range

A range reference needs a colon between its two cells.

A formula such as INDEX(B2 B12,...) returns #NAME?, and writing it as B2:B12 fixes it.

Turn on the add-in a function needs

Some functions only work when an add-in is active.

Microsoft’s example is EUROCONVERT, which needs the Euro Currency Tools add-in, while custom functions or macros may need the Analysis ToolPak.

  1. Go to File > Options.
  2. Select Add-ins.
  3. In the Manage list box select Excel Add-ins, then select Go.
  4. Check the add-in you need and select OK.

Two more triggers Microsoft lists

Sheet names with spaces or special characters must be wrapped in single quotes, as in ='Quarterly Data'!D3.

Excel accepts only the asterisk for multiplication, and with cell references an x returns #NAME?.

WrongRight
=Quarterly Data!D3='Quarterly Data'!D3
=A2 x B2=A2*B2

If a missing defined name is the problem, you can also change the formula to use the range directly, such as A2:D8.

Find every error faster

Excel marks a formula error with a triangle in the top-left corner of the cell.

Click the Error Checking icon beside the cell to see options, or go to Formulas > Formula Auditing > Error Checking to step through them one at a time.

On Windows, select one cell and use Formulas > Formula Auditing > Evaluate Formula to calculate each underlined part with Evaluate, Step In and Step Out.

Background error checking is under File > Options > Formulas on Windows and Excel menu > Preferences > Error Checking on Mac.

General formula checks

Microsoft’s broken-formula checklist adds a few basics that prevent related errors.

  • Start every formula with an equal sign.
  • Make sure every opening parenthesis has a matching closing one.
  • Check whether your region uses a comma or a semicolon between arguments.
  • Do not type numbers with a dollar sign or commas inside a formula.

Why not hide it with IFERROR

Microsoft says not to wrap the formula in error-handling functions like IFERROR to hide a #NAME? error.

The error is pointing at a real problem, so a hidden error just leaves a formula that quietly returns the wrong thing.

Fix the spelling, name, quotation marks, range or add-in first, and the formula will return a real result.

A quick order to check things

  1. Click the cell and read the formula in the formula bar.
  2. Look at every function name and confirm it appears in the drop-down when you retype it.
  3. Check any name against Formulas > Defined Names > Use in Formula.
  4. Look for text without quotation marks and ranges without colons.
  5. If the formula uses a newer or specialist function, confirm the add-in is enabled.

If the formula displays as plain text instead of an error, go to Formulas > Show Formulas or press Ctrl+` to check, and set a cell formatted as text back to General with Ctrl+1.

How #NAME? differs from other errors

ErrorWhat it means
#NAME?Excel does not recognize text in the formula, often a misspelled function or range name
#DIV/0!A number is divided by zero or an empty cell
#N/AA value is not available to a function
#REF!A cell reference is no longer valid
#VALUE!The formula mixes incompatible data types

For the other common error values, see how to fix #N/A, #VALUE! and #REF! errors in Excel.

If a formula shows as text or never updates, read Excel formulas not calculating.

Official sources

Every cause and fix above comes from Microsoft’s How to correct a #NAME? error, with the error-checking paths from Detect formula errors in Excel and the checklist from How to avoid broken formulas in Excel.

Leave a Reply

Your email address will not be published. Required fields are marked *