New Tool Radar

AI for Data & Spreadsheets

How to Restore an Earlier Version of an Excel Workbook After a Bad Edit

Restore an earlier version of an Excel workbook from OneDrive version history after a bad edit.

Schematic with three steps: Open the version history and find the; Restore the version, or save it as; Check the restored workbook against the source.

A bad edit in a shared workbook can overwrite formulas, delete rows, or change values across the whole file, and undo only reaches back to your own recent changes. OneDrive keeps earlier versions of the file, so the fix is to restore the version from just before the bad edit, not to rebuild the workbook by hand. Name the version you restore, so the recovery is traceable.

What you need

  • The workbook stored in OneDrive
  • The date and time of the bad edit, as closely as known
  • A note of what the workbook should contain after the restore

Step 1: Open the version history and find the last good version

In OneDrive, select the file, open Version history, and read the versions by date and time. Pick the newest version from before the bad edit, and preview it to confirm the formulas and rows are intact.

Step 2: Restore the version, or save it as a copy first

If the current version holds good work made after the bad edit, save the earlier version as a copy first so nothing is lost. Then restore the last good version, which becomes the current version.

Step 3: Check the restored workbook against the source

Open the restored workbook and check the formulas, the row count and one total against the source. Only when they agree should the team be told the file is fixed.

Worked example: synthetic budget workbook, bad edit at noon

The table below is a synthetic example. It shows the expected result of restoring an earlier version; no file was restored.

Check Value Result
Bad edit made at 12:00 Formulas overwritten
Versions listed 5 Since yesterday
Last good version 11:30 Before the bad edit
Rows in the restored version 120 Matches the source
Formulas intact after restore Yes All formulas work

Expected result (UNTESTED). the bad edit at 12:00 overwrote formulas, but the 11:30 version is intact with 120 rows and working formulas. Restoring it returns the workbook to the last good state. This check was not run live; the table shows the expected result for the synthetic example.

Limits

  • Restoring a version replaces the current version, so save any good work made after the bad edit first.
  • Version history is only kept for files stored in OneDrive or SharePoint, not for local-only files.
  • A restore does not tell collaborators automatically; let the team know the file was restored.
  • If the bad edit was a deleted file, restore it from the Recycle Bin instead of version history.

Sources

See all