Skip to content
Blog/Excel
Excel

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.

Do this with AI

Try Griddy free

Start in your browser. Also works with Excel and Google Sheets.

By Justin Freels//5 min read

#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:

fx
=SUMM(A2:A20)

Excel does not know SUMM, so it returns #NAME?. Fix the spelling:

fx
=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:

fx
=IF(A2=East,"Yes","No")

Use quotes around literal text:

fx
=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?:

fx
=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:

fx
=INDEX(B:B,MATCH(E2,A:A,0))

Common causes and fixes

CauseExampleFix
Misspelled functionSUMM instead of SUMCorrect the function name
Text without quotesA2=EastUse "East"
Missing named rangeJune_Revenue no longer existsRecreate or replace the named range
Unsupported functionXLOOKUP in older ExcelUse a compatible formula
Missing add-in functionAdd-in formula not loadedEnable the add-in or replace the formula

WATCH OUT

Do not remove unknown names blindly. If a name points to a deleted input table, the right fix may be restoring the missing range instead of replacing the formula.

Check names and text literals separately

When Excel returns #NAME?, inspect every unquoted word in the formula. A text result such as Approved needs quotes, while a defined name should not. Also check sheet names with spaces, misspelled function names, and names whose scope is limited to another worksheet. The Name Manager can reveal whether a name still points to a valid range or now resolves to #REF!.

Sources

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.

Do this with AI

Turn the instructions into a finished spreadsheet.

Tell Griddy what you need in plain English, then inspect and keep editing the result in the browser, Excel, or Google Sheets.

Try Griddy freeStart in your browser. No download required.
Also works withExcel 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.

Finance