Undoing changes in Excel Online isn’t just about reverting edits—it’s about reclaiming work you may not even realize you’ve lost. Whether you accidentally deleted a row, overwrote data, or hit a wrong shortcut, Excel Online’s built-in undo/redo system lets you reverse most changes instantly. If that doesn’t work, you can also restore from a previous version of the file using the File tab. Here’s how to do it reliably, step by step.
What You’ll Need
- An active Microsoft account (for accessing Excel Online via Office 365)
- The Excel Online browser version (works in Edge, Chrome, Firefox, or Safari on desktop; mobile versions have fewer options)
- Your Excel file open in a web browser
- Knowledge of basic keyboard shortcuts (Ctrl+Z, Ctrl+Y for undo/redo)
- For file history: Your Microsoft account must be linked to a OneDrive or SharePoint account (enabled by default for Office 365 subscribers)
Step-by-Step
- Press Ctrl+Z immediately to undo the last edit. This works for all actions, including:
- Typing or deleting text
- Moving/copying shapes or tables
- Formula changes
- Formatting adjustments
- Check the Undo/Redo panel (desktop):
- Click the Home tab → Look in the bottom-right corner for the Undo button (shows the last action) and Redo button.
- Click Undo to reverse all changes up to that point.
- Use the File tab for older changes (if Ctrl+Z didn’t work):
- Open the file via OneDrive or SharePoint (where the file is stored).
- Click File → Info tab → Version History (may appear as File History in older versions).
- Select Go back to... from the dropdown.
- Choose a previous version (dates appear in the list) and click Restore.
- Try the Quick Access Toolbar (QAT) (for key shortcuts):
- Click the ⋮ (QAT) in the top-left corner → Choose More Commands.
- Search for Undo and Redo, then add them to the QAT for quick access.
- Clear browser cache (if changes won’t undo) (desktop):
- Right-click the Excel Online tab → Tab settings → Clear data → Select All time → Confirm.
- Reload the file—some browser quirks can interfere with undo.
If That Didn’t Work
If undo fails for complex edits (like merged cells or VBA macros), you can try these advanced steps:
- Create a new copy of the file
- Click File → Save As → Choose Excel Online (.xlsx) → Save as a new file.
- Open the new file and manually recreate the lost changes.
- Check OneDrive/SharePoint permissions
- If the file was stored there, ensure you have Edit or Full Control permissions (go to OneDrive/SharePoint → Share tab).
- Contact Microsoft Support (as last resort) - If the file is corrupted or the version history is empty, Microsoft’s Troubleshoot Excel Online issues
Common Mistakes
Most undo failures stem from these oversights:
- Closing the browser/Excel without saving—this permanently deletes unsaved changes. Always use Ctrl+S or the Save button.
- Using non-Excel shortcuts—e.g., Chrome’s undo (Ctrl+Z) won’t work in Excel Online. Stick to Excel’s shortcuts.
- Saving to the wrong location—if you saved to a local drive instead of OneDrive/SharePoint, the version history won’t apply.
- Ignoring the scrollbar—undo only works for the most recent action. Scroll to find older changes.
Tips
- Enable AutoRecover (to prevent permanent loss):
- Go to File → Options → Save → Check AutoRecover every (set to 10 minutes or less).
- Use the Clipboard panel (for complex edits):
- Open the Clipboard panel (click the ⋮ in the QAT, then Show clipboard) to paste recent items and undo mistakes.
- Freeze panes before making multiple edits:
- Go to View → Freeze Panes to prevent scrolling past your work.
- Avoid macros for accidental changes—if you’re using macros, test them in a copy first.
- Check for Excel add-ins:
- Some add-ins (like Power Query) may override undo. Disable them temporarily by going to File → Options → Add-ins.
Troubleshooting
If undo fails for these scenarios:
- Deleted entire rows/columns
- Try this: Use the Insert tab → Insert Sheet to add a blank sheet and shift data down.
- Formula errors prevent undo
- Right-click the cell → Error Check → Fix Errors to correct the formula first.
- Excel Online won’t load undo history
- Clear the browser cache (step 5) or try a different browser.
- Version history shows "no previous versions"
- The file may not have been saved to OneDrive/SharePoint, or the account lacks permissions. Save to OneDrive first before making significant edits.
- Undo works but reverts to an earlier empty state
- This often happens with merged cells. Unmerge cells first, then undo (step 1).
Frequently Asked Questions
Can I undo changes in Excel Online if I closed the browser?
Only if AutoRecover was enabled. Microsoft saves a temporary copy every few minutes—check your OneDrive for the recovered file or restore from Version History.
How do I undo a deleted table?
Use Ctrl+Z immediately, or go to Home → Find & Select → Delete Cells to shift remaining rows up and recreate the table.
Will undoing changes affect other collaborators?
No—Excel Online’s undo only works for your session. Collaborators see the latest version in real time.
Why won’t my undo work for merged cells?
Merged cells often break undo history. Unmerge first (Home → Merge & Center → Unmerge Cells), then undo.
Can I restore a file from 2022 if it’s stored in OneDrive?
Yes, but only if you have the account linked to the file. Go to Version History and select a date before the deletion.
What if Excel Online crashes mid-edit?
Save to OneDrive immediately (File → Save As → OneDrive), then restart Excel. AutoRecover may recover parts of the file.