Troubleshoot Excel Formulas Replaced by #N/A Errors
Question details
Determine why Excel cells show #N/A and recover or correct the formulas when possible.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user opens or reviews a workbook and needs to determine whether formulas were replaced or are returning lookup errors.
- Observed behavior
- Affected cells display #N/A, but it is unclear whether the formulas still exist or only calculated results are available.
Open the affected workbook in Excel and make sure the formula bar is visible through View > Formula Bar. If you have an original or submitted copy, have it available for comparison.
Inspect the Formula Bar to Identify the Cause
Use this first to determine whether an affected cell still contains a formula or stores an error value.
Click a cell displaying #N/A and examine its contents in the formula bar.
If the formula bar starts with an equals sign, the formula still exists and is returning #N/A. If it shows #N/A without a formula, the cell contains the error value rather than a formula.
Open the original and submitted workbooks, if available, and select the same cell in each to compare their formula bars.
If the formula exists but its displayed result may be outdated, choose Formulas > Calculation Options > Automatic, then use Formulas > Calculate Now.

Restore Formulas from an Earlier Workbook Version
Use version history when formulas were replaced and the workbook has an earlier version stored in OneDrive or SharePoint.
Correct a Formula That Returns #N/A
Use this when the formula bar confirms that the formula still exists.
Review Spreadsheet Formulas with WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface for reviewing workbooks. Its Microsoft Office format compatibility makes it easier to move between applications, although it does not restore overwritten Excel formulas or replace Excel version history.

Frequently Asked Questions
How can I tell whether an Excel formula was replaced?
Select the affected cell and check the formula bar. A formula begins with an equals sign; if the bar shows #N/A without a formula, the cell contains the error value instead.
Why does a formula return #N/A?
A lookup formula often returns #N/A when it cannot find a matching value. Check the lookup value, referenced range, match settings, and source data for differences such as extra spaces or numbers stored as text.
Can I recover a deleted formula from version history?
If an earlier version exists in OneDrive or SharePoint, open File > Info > Version History in Excel. Open an earlier version and copy the formula, or restore the entire version.
Will recalculating the workbook bring back missing formulas?
No. Formulas > Calculate Now updates the results of formulas that remain in the workbook, but it cannot recreate a formula that was replaced by a value.




