#NAME? error: what it means and how to fix it
The spreadsheet found a word in the formula that is not a function, a cell or a named range.
The usual causes
- Text without quotes: =IF(B2>50,Pass,Fail) instead of =IF(B2>50,"Pass","Fail").
- A misspelled function name, like SUMM or VLOKUP.
- A function that your version does not have, such as XLOOKUP in Excel 2019 or older.
- Curly “smart” quotes pasted from a document instead of straight quotes.
How to fix it
- Put every piece of text inside straight double quotes.
- Check the function name: start typing it and pick it from the suggestions.
- Use INDEX with MATCH where XLOOKUP is not available.
Fix a broken formula live
The words Pass and Fail have no quotes. Cell C2 shows #NAME?. Change the formula in the bar until the error goes away, or press “Show the fix”.
| A | B | C | D | E | F | |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | ||||||
| 3 | ||||||
| 4 | ||||||
| 5 | ||||||
| 6 | ||||||
| 7 | ||||||
| 8 |
#NAME? "Pass" isn't a cell or a function. Text inside a formula needs quotes: "Pass".
Runs in your browser; nothing you type is sent anywhere. Works like Excel, Google Sheets and LibreOffice Calc for the common functions.
Learn the skill behind it
Make decisions with IF, free →