ProofDrill

#NAME?

Excel doesn’t recognise a word in the formula.

The error, and the fix

How much is still unpaid on each invoice?

D2=IF(B2=Unpaid,C2,0)

RowABCDE
1InvoiceStatusAmountNo quotesWith quotes
2INV-31Unpaid420
3INV-32Paid180

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.

Free with a free account

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 free

Stop 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.

Lessons

Other errors