File Corruption & Recovery

Recover Excel Formulas Replaced with #N/A After File Repair

Kushani NimanthikaKushani Nimanthika Nov 27, 2026 868 views

Question details

Recover Excel formulas that were replaced with =#N/A after a crash, file repair, or interrupted cell move and undo.

Recover Excel Formulas Replaced with #N/A
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.
Before you start

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.

Solution 1Recommended

Restore an earlier version of the Excel workbook

Use this first if a version from before the formulas were replaced is available.

1
Open version history

In Excel, open the workbook and select File > Info > Version History. This option is generally available for files stored in OneDrive or SharePoint.

2
Check an earlier version

Open a version dated before the crash or repair, select an affected cell, and check the formula bar for the original formula.

3
Recover the formulas

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.

Restore an earlier version of the Excel workbook
No version history?: Look for an earlier local or cloud backup. If the only available copy contains =#N/A, the original formulas may need to be recreated.
Free Microsoft Office alternative

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.

Open and edit Microsoft Excel XLS and XLSX filesReview and recreate spreadsheet formulas in a familiar interfaceUse a free, lightweight office suiteMove existing compatible workbooks into WPS Spreadsheets
microsoft office alternative - wps office

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.