Yes, you can undo changes in a shared Excel document, but with a catch: the standard Undo button (Ctrl+Z / Cmd+Z) only undoes your own most recent actions, and it works only while the document is open and connected. If another collaborator makes a change, you cannot undo their edit from your screen. For changes made by others, you need to use Excel's version history or the "Show Changes" feature, depending on whether you're using Excel for Microsoft 365 or an older version. This guide covers both scenarios, plus what to do when Undo is greyed out or the file is saved and closed.

What You'll Need

  • Access to the shared workbook in Excel (desktop, web, or mobile).
  • Edit or owner permissions for the file (viewers cannot undo anything).
  • If the file is stored on OneDrive, SharePoint, or Teams, you need a Microsoft account.
  • For older shared workbooks (legacy Shared Workbook mode), the file must be opened with "Track Changes" enabled.

Step-by-Step

Undoing Your Own Recent Action (All Versions)

  1. While the shared workbook is open, press Ctrl+Z (Windows) or Cmd+Z (Mac) on your keyboard, or click the Undo arrow in the top-left corner of the Quick Access Toolbar.
  2. Repeat the shortcut to undo multiple of your own recent actions. Excel keeps a stack of your actions, but that stack is cleared when you save and close the file, or when you wait too long (the stack is limited to about 100 actions).
  3. If Undo is greyed out, it means there is nothing left for you to undo—either you already undid everything, or the last action was performed by someone else.

Undoing a Change Made by Someone Else (Excel for Microsoft 365)

  1. Open the shared workbook in Excel for Microsoft 365 (desktop or web).
  2. Go to the Review tab on the ribbon.
  3. In the "Changes" group, click Show Changes. This opens a pane on the right side listing all recent changes with the author's name, timestamp, and the cell(s) affected.
  4. Find the change you want to undo. Click on it to select it—the cell(s) will be highlighted.
  5. To revert that specific change, you cannot directly click "Undo" from this pane. Instead, you must manually re-enter the previous value or use the Version History (see below). The Show Changes pane only lets you see who changed what, not revert it with one click.

Undoing a Change via Version History (Microsoft 365 and SharePoint)

  1. With the workbook open, go to File > Info (desktop) or click the Version History button in the top bar (web).
  2. Click Version History from the dropdown. A panel opens showing a list of saved versions with timestamps and author names.
  3. Select a version from before the unwanted change was made. The workbook will open in a read-only preview.
  4. To restore that version, click Restore (desktop) or Restore this version (web). This will overwrite the current version with the older one. Note: This restores the entire workbook to that point, not just one cell.

Undoing in a Legacy Shared Workbook (Excel 2016 and earlier)

  1. Open the shared workbook that was shared using the old "Share Workbook" feature (Review > Share Workbook).
  2. Go to Review > Track Changes > Highlight Changes.
  3. In the dialog, check "List changes on a new sheet" and set the "When" to "All". Click OK. This creates a History worksheet listing all changes.
  4. To undo a change, you must manually edit the cell back to its previous value. There is no one-click undo for changes made by others in this mode.

Common Mistakes

  • Assuming Undo affects others' changes: The Undo button only affects your own last action. It will never undo a change made by a collaborator.
  • Using Undo after saving and closing: Once you close the file, your undo history is cleared. Reopening and pressing Ctrl+Z will not undo anything from the previous session.
  • Restoring a version without checking what else changes: Version History restores the entire workbook. If you only wanted to undo one cell, you might lose other legitimate changes made after that version.
  • Ignoring the Show Changes pane: Many users try to click "Undo" inside the Show Changes pane, but there is no such button. You must manually correct the cell or use version history.

Tips

  • Before making significant edits in a shared workbook, save a personal copy (File > Save As) so you can refer to it if something goes wrong.
  • Use Excel's "Track Changes" (Review > Track Changes) even in Microsoft 365 if you want a more granular change log, but note that this is being phased out in favor of Show Changes.
  • Communicate with your team before reverting a change. If someone else is actively working on the same cells, your undo could conflict with their edits.
  • If you need to undo a change that was made by someone else and you have the file open in Excel for the web, you can use the "Version History" by clicking the file name at the top and selecting "Version History" from the dropdown.
  • For critical shared workbooks, consider using Excel's "Protect Sheet" or "Protect Workbook" features to limit who can edit specific ranges, reducing the need for undos.

Troubleshooting

Undo button is greyed out: This means there is no action to undo. If you just opened the file, you have no undo history. If you made a change and it's still greyed out, the change may have been made by someone else, or the file was saved and closed since your last action.

Version History is empty: Version history only works if the file is stored on OneDrive, SharePoint, or Teams, and if the "AutoSave" is enabled. If you have a local file that was shared via email, there is no version history. In that case, you must rely on manual backups.

Show Changes pane is missing: This feature is only available in Excel for Microsoft 365 (desktop and web). If you are using Excel 2019 or earlier, you will not see it. Use the legacy Track Changes instead.

Restoring a version doesn't seem to work: Make sure you are signed in with the same Microsoft account that has edit permissions. If you are viewing a version, you must click "Restore" (not just close the preview) to apply it.

Changes by others are not appearing: In a co-authored workbook, changes appear in real time only if all users have AutoSave on and are connected to the internet. If someone is working offline, their changes may not appear until they reconnect.

Frequently Asked Questions

Can I undo a change made by someone else in a shared Excel file?

Not directly with the Undo button. You can use Version History to restore the whole workbook to an earlier state, or manually correct the cell after seeing the change in Show Changes.

Does Ctrl+Z work in Excel online (web version)?

Yes, Ctrl+Z (or Cmd+Z on Mac) works in Excel for the web, but it only undoes your own recent actions in the current session. It does not undo others' changes.

How long does undo history last in Excel?

Undo history is temporary and is cleared when you save and close the file, or when you exceed the limit of about 100 actions. It is not stored with the file.

Can I undo a change after the file is saved and closed?

No, the undo history is lost. However, you can use Version History (if the file is stored in OneDrive/SharePoint) to restore an earlier version.

Why is the Undo button greyed out even though I just typed something?

This can happen if the action was performed by another collaborator, or if the file was auto-saved in a way that clears your undo stack. Try pressing Ctrl+Z anyway—sometimes the button is not updated.

What's the difference between "Show Changes" and "Track Changes"?

Show Changes is a newer feature in Microsoft 365 that shows a live feed of edits. Track Changes is an older feature that creates a history sheet and allows accepting/rejecting changes. They serve similar purposes but are not interchangeable.