How to Fix the #NAME? Error in Excel
The #NAME? error in Excel means a formula contains text Excel does not recognize. Learn the common causes and clean fixes.
#NAME? means Excel found text inside a formula that it cannot identify. The formula may have a misspelled function, an unquoted text value, a missing named range, an unsupported function, or a typo in an add-in function.
Do not treat #NAME? as a calculation problem first. Treat it as a spelling and reference problem. Excel is telling you that part of the formula is not a known function, range, name, or properly quoted text value.
Check for misspelled functions
The most common cause is a simple typo in the function name:
=SUMM(A2:A20)Excel does not know SUMM, so it returns #NAME?. Fix the spelling:
=SUM(A2:A20)This also happens with longer function names such as XLOOKUP, AVERAGEIF, NETWORKDAYS, and CONCATENATE. If the formula was typed manually, check the function name before rewriting the whole calculation.
Put text criteria in quotes
Excel also returns #NAME? when text appears in a formula without quotes. This formula is broken because Excel reads East as an undefined name:
=IF(A2=East,"Yes","No")Use quotes around literal text:
=IF(A2="East","Yes","No")The same rule applies inside lookup formulas, conditional sums, and status logic. If the formula is checking a word, label, region, product name, or status value, that text usually needs quotes.
Check named ranges
If a formula references a named range that no longer exists, Excel may show #NAME?:
=SUM(June_Revenue)Open Name Manager and confirm the name exists, is spelled correctly, and points to the right range. In small business budget templates and project trackers, named ranges often break after someone copies a sheet, deletes a table, or renames a planning section.
Check whether the function exists in your Excel version
Modern functions such as XLOOKUP, FILTER, SORT, UNIQUE, LET, and dynamic arrays require newer versions of Excel. Older desktop versions can return #NAME? because the function itself is not available.
If the workbook needs to work across older Excel installs, use a compatible formula. For example, replace XLOOKUP with INDEX and MATCH when compatibility matters:
=INDEX(B:B,MATCH(E2,A:A,0))Common causes and fixes
| Cause | Example | Fix |
|---|---|---|
| Misspelled function | SUMM instead of SUM | Correct the function name |
| Text without quotes | A2=East | Use "East" |
| Missing named range | June_Revenue no longer exists | Recreate or replace the named range |
| Unsupported function | XLOOKUP in older Excel | Use a compatible formula |
| Missing add-in function | Add-in formula not loaded | Enable the add-in or replace the formula |
WATCH OUT
The Griddy way
#NAME? errors are annoying because the broken token can be buried inside a long formula. A quick spelling check is easy, but named ranges and unsupported functions take longer to trace.
"Find every #NAME? error in this workbook, identify the unrecognized function or name, and repair the formulas without changing the sheet layout"
Griddy can inspect the formulas, identify the unknown names, and update the workbook with the right function, text quotes, or restored range reference.
Skip the manual work
Describe it. Griddy does it.
Instead of writing this formula yourself, just tell Griddy what you need in plain English. Works in Excel and Google Sheets.
Use this on real templates
Repair broken formula names in real workbooks
NAME errors often show up when named ranges, text criteria, or newer functions break inside shared budgets, invoices, CRMs, and planning sheets.
Invoice Template
Professional invoice template with automatic subtotal, tax, and total calculations. Customise with your logo and send in minutes.
Open templateFinanceSmall Business Budget
Plan revenue, direct costs, overhead, and EBITDA in one compact operating budget. Keep H1 totals, margin, and owner notes visible without building a giant finance model.
Open templateSalesCRM Lead Tracker
Track contacts, lead source, owner, next due date, and follow-up status in one lightweight CRM sheet. Keep hot opportunities and stale leads visible without paying for heavy sales software.
Open templateProject ManagementProject Tracker
Track tasks, owners, priorities, due dates, and blockers in one delivery board. Group work by stream, review progress, and keep next steps visible.
Open template