Fix the #NAME? Error
You type a formula you've used a hundred times, press Enter, and get #NAME? instead of a result — the spreadsheet is acting like the function doesn't exist.
Excel & Google Sheets
This formula works in both Excel and Google Sheets.
How it works
#NAME? means the spreadsheet found a word in your formula it doesn't recognize. The most common cause is a typo in the function name — =VLOKUP instead of =VLOOKUP — because a misspelled function simply doesn't exist. The second is text without quotes: =IF(A2=High,1,0) makes the sheet hunt for a named range called High, fail, and error out. The third is a named range that was deleted or never defined. And in Excel specifically, a fourth: the function isn't available in your version — XLOOKUP, FILTER, and TEXTSPLIT need Excel 365 or 2021, so opening the file in Excel 2019 turns them into #NAME?. Read the formula character by character; the unrecognized word is your answer.
When to use it
Run this checklist whenever #NAME? appears right after typing a new formula, pasting one from the web, or opening a 365 workbook in an older Excel version.
Common mistakes
Got a file full of these?
Open it in your browser — every error cell gets highlighted with its fix. Nothing is uploaded.
Did this formula help?
Engine-verified against the sample data aboveLast reviewed 2026-07-08