ExcelReady
CourseFunction guidesBlog
Start freeStart learning for free
ExcelReady

Be Excel-ready before the interview. Hands-on practice in your browser, with instant feedback.

Learn

  • Course
  • Function guides
  • Blog

Product

  • Certificate

Company

  • Editorial policy
  • Contact
  • Terms
  • Privacy

© 2026 ExcelReady. All rights reserved.

  1. Blog
  2. Errors & fixes
  3. #NAME? Error in Excel: Typos, Quotes and Missing Functions

#NAME? Error in Excel: Typos, Quotes and Missing Functions

By ExcelReady Team·Updated October 30, 2026·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+
  1. What does the #NAME? error mean?
  2. Cause 1: a misspelled function name
  3. Cause 2: text without double quotes
  4. Cause 3: a range without its colon
  5. Cause 4: a named range that doesn't exist
  6. Cause 5: the function isn't in your version of Excel
  7. Cause 6: a reference to another sheet typed by hand
  8. How to find the problem in a long formula
  9. 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:

BrokenFixed
=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.

Excel formula
=IF(B2>=50,Pass,Fail)

Excel looks for something called Pass, finds nothing, and returns #NAME?. The fix:

Excel formula
=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.

BrokenFixed
=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.

FunctionNeeds
XLOOKUP, FILTER, UNIQUE, SORT, SEQUENCEExcel 2021, Excel 2024 or Microsoft 365
IFS, SWITCH, MAXIFS, MINIFS, TEXTJOIN, CONCATExcel 2019 or later
TEXTSPLIT, TEXTBEFORE, TEXTAFTERMicrosoft 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:

  1. Click the cell and the warning icon next to it, then choose Show Calculation Steps. Evaluate Formula shows which part turns into #NAME?.
  2. 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.
  3. 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.

fx
ABCD
1
Candidate
Score
Result
2
Amara
72
3
Luis
46
4
Wen
58
5
Joel
50
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

LessonFreeYour first formulasType values, write formulas that start with =, and see how they recalculate.LessonTRUE, FALSE and comparisonsAsk Excel yes-or-no questions with =, <>, >, <, >= and <=, and get TRUE or FALSE back. The building block of every IF.Function guideIFERRORUse IFERROR to swap #N/A, #DIV/0! and other errors for a clean value. Examples with division and VLOOKUP, pitfalls, and live practice.

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.

Sources

  • How to correct a #NAME? error - Microsoft Support
  • IF function - Microsoft Support
  • IFERROR function - Microsoft Support

Written and checked by the ExcelReady Team. First published October 30, 2026. The practice exercise runs in the same formula engine as our lessons. Found a mistake? Read our editorial policy or email hello@excelready.app.

On this page

  1. What does the #NAME? error mean?
  2. Cause 1: a misspelled function name
  3. Cause 2: text without double quotes
  4. Cause 3: a range without its colon
  5. Cause 4: a named range that doesn't exist
  6. Cause 5: the function isn't in your version of Excel
  7. Cause 6: a reference to another sheet typed by hand
  8. How to find the problem in a long formula
  9. Practise it

Keep reading

Errors & fixes· 6 min read

#NUM! Error in Excel

#NUM! means a formula asked for a calculation that can't give a valid number. The most common causes are DATEDIF with the start date after the end date, LARGE or SMALL asking for a position beyond the number of values, the square root of a negative number, and results too big for Excel. Fix the input, such as swapping the dates.

Errors & fixes· 5 min read

Why Excel Shows ##### in a Cell

Excel shows ##### when a number, date or time is too wide for its column. Double-click the right edge of the column header to widen it, and the value appears. If ##### stays however wide the column is, the cell holds a negative date or time, such as an end time before a start time. Fix that formula instead.

Tests & careers· 5 min read

How Long Does It Take to Learn Excel for a Job?

For most job tests, plan on a few weeks of short daily practice. ExcelReady's course is 69 hands-on lessons with about 6.5 hours of listed practice time. Allowing two to three times that for repeats, the basics take about a week and a typical intermediate test two to three weeks at 30 minutes a day.

Don't just read about Excel. Do it.

Practise real formulas in a live spreadsheet with instant feedback. The first lessons are free, with no download.

Start learning for free