Recover Excel Formulas Replaced with #N/A After File Repair
Question details
Recover Excel formulas that were replaced with =#N/A after a crash, file repair, or interrupted cell move and undo.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user opens or continues editing a workbook after recovery or an interrupted operation and needs the original formulas back.
- Observed behavior
- Some affected cells contain =#N/A in place of their original formulas.
Select an affected cell and check the formula bar: a formula that returns #N/A may need troubleshooting, while =#N/A means the original formula is no longer present in that cell. Check whether the workbook is stored in OneDrive or SharePoint, where version history may be available.
Restore an earlier version of the Excel workbook
Use this first if a version from before the formulas were replaced is available.
In Excel, open the workbook and select File > Info > Version History. This option is generally available for files stored in OneDrive or SharePoint.
Open a version dated before the crash or repair, select an affected cell, and check the formula bar for the original formula.
Copy the intact formulas into the current workbook, or use Restore in Version History if you want to replace the current file with the earlier version. Check any newer changes before restoring.

Repair a copy of the workbook in Excel
Try Open and Repair when the workbook may have been damaged during a crash or interrupted operation.
Test Excel add-ins and rebuild the affected workbook
Use this approach to investigate recurring problems or recover usable content when only one workbook is affected.
Work with Excel Workbooks in WPS Spreadsheets
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface. Open compatible Excel files and continue working with your data as you move between Office suites; it does not repair Excel or guarantee recovery of missing formulas.

Frequently Asked Questions
Does #N/A mean my formula has been deleted?
Not necessarily. Select the cell and inspect the formula bar. If it shows a lookup or other formula, that formula is returning #N/A. If it shows =#N/A, the original formula has been replaced.
Where can I find an earlier version of my Excel workbook?
For a workbook stored in OneDrive or SharePoint, open File > Info > Version History in Excel and inspect versions from before the problem. Otherwise, look for an earlier local or cloud backup.
Can Open and Repair recover formulas replaced with =#N/A?
It may recover content from a damaged workbook, but it cannot guarantee restoration of formulas that have already been replaced. In Excel for Windows, try File > Open > Browse, select the file, and choose Open and Repair from the arrow next to Open.
How can I tell whether an Excel add-in is involved?
On Windows, close Excel and run excel /safe from the Windows+R dialog. If the issue does not recur, restart normally and use File > Options > Add-ins to disable and test add-ins one at a time.




