logo
search
Excel Error Codes

How to Fix the #NAME? Error in Excel Formulas

Nimra MalikNimra Malik Oct 10, 2026 869 views

Question details

The user is encountering a #NAME? error when calculating formulas containing AVERAGE, OFFSET, and INDIRECT, and needs to identify the causes and apply a fix.

Product
Excel
Device & OS
not provided
Scenario
Entering or updating complex mathematical and lookup formulas within a spreadsheet workbook.
Observed behavior
The formulas fail to calculate and instead return a #NAME? error in the respective cells.
Before you start

Before troubleshooting, review your computer's regional settings, as incorrect list separators (e.g., using a comma instead of a semicolon) can disrupt formula syntax and cause calculation errors.

Solution 1Recommended

Verify Function Names and Text Quotation Marks

The most common cause of a #NAME? error is a misspelled function name or missing double quotation marks around text strings.

Excel does not recognize plain text inside a formula unless it represents a defined name or is enclosed in double quotes. Functions like INDIRECT rely heavily on exact text strings to build cell references.

1
Select the error cell

Click on the cell displaying the #NAME? error to view its contents in the formula bar.

2
Check function spelling

Carefully inspect the formula bar for any typos in the function names. Ensure that functions like AVERAGE, OFFSET, and INDIRECT are spelled exactly as shown.

3
Add missing quotation marks

Verify that all text strings within functions, such as the column letter "A" in an INDIRECT formula, are properly enclosed in double quotes (e.g., INDIRECT("A"&ROW(A1)*1200-1199)).

4
Recalculate the formula

Press Enter to apply the changes and force the spreadsheet to recalculate the formula.

Verify Function Names and Text Quotation Marks
Formula Auto-Complete: Relying on the formula auto-complete drop-down menu while typing can help prevent spelling mistakes in function names.
Efficient Formula Troubleshooting

Fix Formula Errors Easily with WPS Spreadsheet

WPS Spreadsheet offers a robust calculation engine equipped with smart formula auditing tools, helping you quickly identify and resolve syntax errors like #NAME? without frustration.

  1. 1. Open the spreadsheet in WPS: Launch WPS Spreadsheet and open the workbook containing the formula errors.
  2. 2. Select the error cell: Click on the cell displaying the #NAME? error and click into the formula bar.
  3. 3. Utilize formula auto-complete: Delete the suspected misspelled function and begin typing it again. Select the correct function from the auto-complete drop-down list provided by WPS.
  4. 4. Apply and recalculate: Ensure all text values are wrapped in quotes, then press Enter to instantly resolve the error and display the correct value.
100% compatible with Microsoft Excel formulas, functions, and named rangesSmart auto-complete suggestions to eliminate function spelling errorsBuilt-in formula evaluation tools to trace errors step-by-stepFree, lightweight, and accessible across multiple devices
microsoft office alternative - wps office

Frequently Asked Questions

Why does the INDIRECT function frequently cause a #NAME? error?

The INDIRECT function requires a valid text string to interpret as a cell reference. If you forget to wrap the text portion of your reference in double quotes (e.g., using A1 instead of "A1"), the software assumes it is looking for an undefined named range, leading to a #NAME? error.

How can I find all cells with a #NAME? error in a large workbook?

You can quickly locate all errors by using the Go To Special feature. Press Ctrl+G, click 'Special', select 'Formulas', and uncheck all boxes except 'Errors'. This will highlight every cell in the current worksheet containing an error.

Will opening my workbook on a different computer cause formula errors?

It can, especially if the computers have different regional settings. Some regions use commas as list separators in formulas, while others use semicolons. If the software fails to adapt the syntax automatically, you may see formula errors until the separators are corrected.