#NAME? Error in Excel: Typos, Quotes and Missing Functions
By ExcelReady TeamUpdated 5 min read
The short answer
#NAME? means Excel found a word in your formula it doesn't recognise. The usual causes are a misspelled function (=SUMM), text without double quotes (=IF(A2>50,Pass,Fail)), a range missing its colon (A2A9), a named range that doesn't exist, or a function your Excel version doesn't have, such as XLOOKUP in Excel 2019.
Key takeaways
- #NAME? means Excel can't recognise a function name, named range or word in the formula.
- Text in a formula needs straight double quotes: "Pass", not Pass.
- Type function names in lowercase; Excel turns them uppercase only if it recognises them.
- A range needs a colon: A2:A9, not A2A9.
- Newer functions like XLOOKUP and FILTER show #NAME? in older versions of Excel.
On this page+
- What does the #NAME? error mean?
- Cause 1: a misspelled function name
- Cause 2: text without double quotes
- Cause 3: a range without its colon
- Cause 4: a named range that doesn't exist
- Cause 5: the function isn't in your version of Excel
- Cause 6: a reference to another sheet typed by hand
- How to find the problem in a long formula
- Practise it
The #NAME? error in Excel means your formula contains a word Excel doesn't recognise. It's almost always a typing problem: a misspelled function, text without quotes, a missing colon in a range, or a function that your version of Excel doesn't have. The good news is that it's quick to fix once you know where to look, and this guide covers each cause.
What does the #NAME? error mean?#
Every word in a formula must be something Excel knows: a function (SUM, IF), a cell or range (A2, B2:B9), a named range you created (TaxRate), or text inside double quotes ("Pass"). Anything else is an unknown name, and Excel shows #NAME?.
Like #REF!, #NAME? means the formula is wrong, not the data. So the fix is always to edit the formula. If formulas are new to you, start with how to write your first Excel formula.
Cause 1: a misspelled function name#
A single wrong letter is enough:
| Broken | Fixed |
|---|---|
=SUMM(B2:B9) | =SUM(B2:B9) |
=VLOKUP(F2,A2:C6,3,FALSE) | =VLOOKUP(F2,A2:C6,3,FALSE) |
=AVERGE(C2:C9) | =AVERAGE(C2:C9) |
=COUNTIFF(B2:B9,"Yes") | =COUNTIF(B2:B9,"Yes") |
A tip that catches typos: type function names in lowercase, like =sum(b2:b9). When you press Enter, Excel
changes the names it recognises to uppercase. If a name stays lowercase, Excel didn't recognise it.
Even better, let Excel spell it. As you type =VL, Formula AutoComplete shows a list of matching functions.
Use the arrow keys to pick one and press Tab. Excel inserts the correct name and the opening bracket.
Cause 2: text without double quotes#
Text inside a formula must be in double quotes. Without them, Excel thinks the word is a name.
=IF(B2>=50,Pass,Fail)Excel looks for something called Pass, finds nothing, and returns #NAME?. The fix:
=IF(B2>=50,"Pass","Fail")For a score of 72 in B2, the result is Pass. The same rule applies everywhere text appears: in criteria like
=COUNTIF(B2:B9,"Paid"), in comparisons like =B2="Leeds" (see the
TRUE, FALSE and comparisons lesson), and when joining text with &.
Curly quotes from Word, email or web pages#
If you copy a formula from a document or website, the quotes may be "smart" curly quotes (“Pass”) instead of straight ones ("Pass"). Excel only accepts straight quotes, so the formula breaks. Delete the curly quotes and retype them in Excel's formula bar.
Numbers, TRUE and FALSE don't need quotes. =IF(B2>=50,1,0) is fine.
Cause 3: a range without its colon#
A range needs a colon between the first and last cell. A2A9 isn't a range; it's an unknown name.
| Broken | Fixed |
|---|---|
=SUM(A2A9) | =SUM(A2:A9) |
=AVERAGE(C2C20) | =AVERAGE(C2:C20) |
The easiest way to avoid this is to select the range with the mouse or with Shift plus the arrow keys while you type the formula. Excel writes the colon for you.
Cause 4: a named range that doesn't exist#
If you write =B2*TaxRate, Excel needs a name called TaxRate. If it was never created, was deleted, or is spelled
differently (Tax_Rate), the formula returns #NAME?.
To check, open Formulas > Name Manager (on Windows, also Ctrl+F3). It lists every name in the workbook and the cells it refers to. Create the missing name, or correct the spelling in the formula. You can also pick a name from Formulas > Use in Formula so you never mistype it.
Cause 5: the function isn't in your version of Excel#
New functions show #NAME? in versions of Excel that don't have them. The formula is correct; the software is too old to understand it.
| Function | Needs |
|---|---|
| XLOOKUP, FILTER, UNIQUE, SORT, SEQUENCE | Excel 2021, Excel 2024 or Microsoft 365 |
| IFS, SWITCH, MAXIFS, MINIFS, TEXTJOIN, CONCAT | Excel 2019 or later |
| TEXTSPLIT, TEXTBEFORE, TEXTAFTER | Microsoft 365 or Excel 2024 |
This often appears when a file built in Microsoft 365 is opened in an older version. If the file must work everywhere, use older equivalents: VLOOKUP or INDEX MATCH instead of XLOOKUP, nested IF instead of IFS. Our comparison of Excel 365, 2021 and 2019 lists what each version includes.
Cause 6: a reference to another sheet typed by hand#
References to other sheets can also go wrong when they're typed instead of clicked. A sheet name with spaces must be
wrapped in single quotes, like ='Last Year'!B5, and the exclamation mark separates the sheet from the cell. Leave
out the !B4 part of =Sales!B4 and Excel reads Sales as a name it doesn't know, so it returns #NAME?.
The fix is the same as for ranges: don't type references to other sheets. Type =, click the other sheet's tab, click
the cell and press Enter. Excel writes the sheet name, quotes and exclamation mark correctly every time.
How to find the problem in a long formula#
When the cause isn't obvious:
- Click the cell and the warning icon next to it, then choose Show Calculation Steps. Evaluate Formula shows which part turns into #NAME?.
- Click inside the formula bar. Excel colors each cell reference it recognises. A word that should be a range but isn't colored is a likely suspect.
- Use Insert Function (the fx button next to the formula bar, or Shift+F3 on Windows) to rebuild the function with labelled boxes for each argument.
Don't wrap #NAME? in IFERROR. It would hide the error, but the formula would still be broken.
Once the formula runs, check that it gives the answer you expect: a formula without brackets in the right places
calculates without any error but can still be wrong, as our guide to
Excel's order of operations explains. For a different-looking problem, a cell full of
#####, see why Excel shows ##### in a cell.
Practise it#
Fix the IF formula in the exercise on this page. Then go back to basics with the your first formulas lesson to build the habit of typing clean formulas, and the TRUE, FALSE and comparisons lesson to practise text in quotes. If you're wondering how long it takes to get comfortable, see how long it takes to learn Excel for a job.
Try it yourself
This is a live spreadsheet. Type the formula in the green cell and press Enter.
C2 should say Pass for scores of 50 or more and Fail otherwise, but =IF(B2>=50,Pass,Fail) shows #NAME?. Fix it in C2 by putting the text results in double quotes.
| A | B | C | D | |
|---|---|---|---|---|
| 1 | Result | |||
| 2 | ||||
| 3 | ||||
| 4 | ||||
| 5 | ||||
| 6 | ||||
| 7 | ||||
| 8 |
Tip: Excel reads Pass without quotes as a name. Put each text result in straight double quotes.
Practise this in a lesson
Frequently asked questions
What does #NAME? mean in Excel?
It means Excel doesn't recognise a name in the formula. That name can be a function, a named range, or a word you meant as text but didn't put in quotes.
Why does my IF formula show #NAME?
The text results are probably missing their double quotes. Write =IF(B2>=50,"Pass","Fail"), not =IF(B2>=50,Pass,Fail).
Why does XLOOKUP show #NAME? on another computer?
That computer runs a version of Excel without XLOOKUP, such as Excel 2019 or earlier. XLOOKUP needs Excel 2021, Excel 2024 or Microsoft 365; use VLOOKUP or INDEX MATCH for files shared with older versions.
Should I use IFERROR to hide #NAME??
No. #NAME? always means the formula is written wrongly, so hiding it leaves a broken formula in place. Fix the spelling or quotes instead.
How can I avoid typing function names wrong?
Use Formula AutoComplete: type = and the first letters, then press Tab to insert the highlighted function. Excel spells it and adds the opening bracket for you.