Spreadsheet error

How to fix the #NAME? error

TL;DR

#NAME? means Excel does not recognize a name in the formula — usually a misspelled function, missing quotes around text, or a named range that does not exist.

What it means

The #NAME? error means the formula parser encountered a word it does not understand. This is almost always a typo in a function name, an unquoted text value, or a reference to a deleted named range.

Common causes

How to fix it

1.Check function spelling

  1. Click the cell and read the formula bar.
  2. Look for a function name highlighted in the formula.
  3. Excel autocomplete will not suggest invalid names.

2.Quote your text

  1. Any text literal in a formula must be in double quotes.
  2. =IF(A2="West", ...) not =IF(A2=West, ...)

3.Check named ranges

  1. Formulas > Name Manager
  2. Verify the name exists and points to a valid range.

Example

Broken=IF(A2=West, "yes", "no")Fixed=IF(A2="West", "yes", "no")

The unquoted word "West" looked like a named range to Excel, but there was no such name defined.

Prevention

Related errors

#REF!#VALUE!#NULL!

Let FormulaPad debug it for you

Paste your broken formula and the error message — get a diff and an explanation in seconds.

Debug a formula