#NAME?
Excel doesn’t recognise a word in the formula.
- Excel error
- The fix is practised in 3 lessons
The error, and the fix
D2=IF(B2=Unpaid,C2,0)
| Row | A | B | C | D | E |
|---|---|---|---|---|---|
| 1 | Invoice | Status | Amount | No quotes | With quotes |
| 2 | INV-31 | Unpaid | 420 | ||
| 3 | INV-32 | Paid | 180 |
Without quotes, Excel looks for something named Unpaid and finds nothing. In quotes, it is text to compare with B2.
Why it happens, and how to fix it
- A misspelt function
- =SUMM(B2:B6) or =VLOKUP(…). Start typing the name, pick it from the list Excel shows, and press Tab.
- Text without quotes
- In =IF(B2=Unpaid,…) Excel reads Unpaid as a name. Text in a formula needs quotes: B2="Unpaid".
- A range without its colon
- =SUM(B2B6) is read as a name. Write B2:B6.
- A function your Excel doesn’t have
- XLOOKUP needs Microsoft 365 or Excel 2021 or later; older versions show #NAME?. Use INDEX and MATCH, or VLOOKUP with FALSE, there.
- A named range that doesn’t exist
- Check the name’s spelling in Formulas › Name Manager.
Questions
How do I fix #NAME? in Excel?
Look for a misspelt function, text without quotes, or a range missing its colon. Retype the function and pick it from the list; if it isn’t listed, your version of Excel may not have it.
Why does XLOOKUP show #NAME??
Your version of Excel doesn’t have XLOOKUP: it needs Microsoft 365 or Excel 2021 or later. Use INDEX and MATCH, or VLOOKUP with FALSE.
Practise the fix
Real tasks in a spreadsheet, checked on changed data, so your fix has to work on data you can’t see.
Practise it freeStop it happening
- Let Excel type function names for you: pick them from the list as you type.
- Put quotes around every piece of text in a formula, including the words in IF and COUNTIF.
- Before sharing a workbook, check that everyone’s Excel has the functions it uses.