How to Fix the #NAME? Error in Excel Formulas
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 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.
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.
Click on the cell displaying the #NAME? error to view its contents in the formula bar.
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.
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)).
Press Enter to apply the changes and force the spreadsheet to recalculate the formula.

Inspect Named Ranges and Workbook References
If your formula references a named range that does not exist or has been deleted, it will trigger the #NAME? error.
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. Open the spreadsheet in WPS: Launch WPS Spreadsheet and open the workbook containing the formula errors.
- 2. Select the error cell: Click on the cell displaying the #NAME? error and click into the formula bar.
- 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. Apply and recalculate: Ensure all text values are wrapped in quotes, then press Enter to instantly resolve the error and display the correct value.

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.




