Microsoft Excel’s undo feature lets you easily reverse mistakes—whether you accidentally deleted data, altered a formula, or misplaced formatting. Simply press Ctrl+Z (Windows) or Command+Z (Mac) to undo the last action. For deeper corrections, you can also use the undo history or reset entire sheets. This guide covers all methods, from basic undo to advanced fixes.
What You'll Need
- A computer running Microsoft Excel (Excel 2016 or newer)
- Access to the Excel ribbon or menu bar
- Basic keyboard shortcut knowledge (Ctrl+Z is the most common)
Step-by-Step
- Basic Undo with Keyboard Shortcut
Excel’s fastest undo method is the keyboard shortcut: Windows: Ctrl+Z / Mac: Command+Z. This reverses the last action (typing, deleting, formatting, etc.). Press it repeatedly to undo multiple steps. For example, if you typed a formula incorrectly, pressing Ctrl+Z once undoes the last modification.
- Undo from the Excel Menu
If you prefer not to use shortcuts, open the Home tab on the ribbon and click Undo in the Editing group. This works for all actions, including:
- Deleting cells or formatting changes
- Modifying cell values or formulas
- Applying or removing styles (bold, italics, etc.)
Hold the mouse over the undo button to see a list of recent actions—click any to undo that specific step.
- Undo Multiple Steps
To undo the last five actions, press Ctrl+Alt+Z (Windows) or Command+Option+Z (Mac). This bypasses the single undo limit and reverts multiple changes at once.
- Undo a Specific Action from History
If you need to undo something that wasn’t the most recent action, click the Undo button repeatedly until you reach the correct step. Alternatively:
- Click the Undo button—it shows a dropdown with recent actions.
- Hover over the dropdown to reveal a full list of undoable actions.
- Click the action you want to reverse (e.g., "Delete Cells," "Apply Fill").
- Reset Entire Sheets or Workbooks
If you’ve made major changes and need to revert an entire sheet or workbook, follow these steps:
- Go to the File tab and click Info.
- Under Workbook Options, click Manage and select Unprotect Sheet (if the sheet is protected).
- Enter the protection password (if one exists) and click OK.
- Now you can delete or edit cells freely. To save the original state later, use the Save As option and create a backup workbook.
- Undo AutoFill or Repeated Actions
If Excel’s AutoFill or repeated selection created unintended results, undo the last AutoFill step with:
- Ctrl+Shift+Z (Windows) / Command+Shift+Z (Mac).
- Select the affected range and press Ctrl+Z to reverse the AutoFill extension.
Common Mistakes
Users often face these issues when undoing in Excel:
- Undo fails after saving: If you saved the file before undoing, the undo history may be reset. Try restarting Excel or opening the file in a different program (like Notepad) to see raw changes before reopening Excel.
- Formulas still show errors: Pressing Ctrl+Z only reverses the last edit, not formula errors. To fix formulas, delete the erroneous line and retype it manually.
- Undo history is empty: If Excel wasn’t working properly, the undo history may be corrupted. Restart Excel or check for Excel updates in File > Account > Update Options > Update Now.
- Undo button grayed out: This happens if you’ve reached the undo limit (default: 100 actions). Press Ctrl+Alt+Z to undo multiple steps at once.
Tips
Here are pro tips to make undoing easier:
- Use the Undo Stack: The dropdown list of recent actions is your best friend. It lets you undo specific steps even if they’re not the most recent.
- Enable AutoRecover: Go to File > Info > Save > AutoRecover Settings to save your file periodically. If Excel crashes, this lets you restore the last saved version.
- Avoid deleting formulas: If you delete a formula cell, Excel may replace it with zeros or blanks. Press Ctrl+Z immediately to undo the deletion.
- Use Ctrl+Y to Redo: After undoing, press Ctrl+Y (Windows) or Command+Shift+Y (Mac) to reapply changes if needed.
- Check for hidden undo steps: Some macros or VBA actions may trigger hidden undos. Close related tools (like Power Query) before undoing.
Troubleshooting
If Excel’s undo doesn’t work as expected, try these solutions:
- Restart Excel: Close and reopen Excel. This refreshes the undo history.
- Update Excel: Go to File > Account > Update Options > Update Now to ensure you have the latest features.
- Check for Excel Errors: Open File > Options > Advanced > Edit settings in the VBA editor and enable "Enable VBE scripting for this workbook." Then open the VBA editor (Alt+F11) and check if macros are interfering with undo.
- Create a New Workbook: If undoing fails entirely, create a blank Excel file and manually recreate your data. Compare the two files to identify the issue.
- Disable Add-ins: Some add-ins (like macros or third-party tools) can break undo functionality. Go to File > Options > Add-ins > Manage Excel Add-ins and disable non-essential extensions.
- Use Notepad as a Backup: Open the problematic file in Notepad, locate the exact line causing issues, and manually edit it back into Excel.
If none of these work, Excel may have a deeper corruption. Save a backup file and try opening it in Excel Online or another program to test undo functionality.
Frequently Asked Questions
Can I undo a deleted entire column?
Yes, but only if Excel’s AutoRecover feature was enabled. Go to File > Info > Save > AutoRecover Settings and restore the latest saved version from the dropdown. If no auto-recover data exists, you’ll need to recreate the column manually from other files.
Why won’t Ctrl+Z undo a formula cell?
Undoing only reverses user actions—it doesn’t change the formula itself. If the formula cell shows an error (like #DIV/0!), press Ctrl+Z to undo the edit, then manually retype the correct formula.
How do I undo a cell that was formatted but not edited?
Right-click the cell > Clear > Clear Formats. This removes styling while keeping the data intact.
Can I undo after saving the file?
Undo is generally disabled after saving. To restore lost changes, use File > Info > Manage Workbook > Unprotect Sheet (if protected) and manually recreate the data.
Why does Excel say "No Undo Available"?
This happens if you’ve saved the file or if Excel’s undo history is corrupted. Restart Excel, check for updates, or open the file in Notepad to see raw changes before reopening Excel.
How do I undo macros or VBA actions?
Macros and VBA steps can’t be undone with keyboard shortcuts. Open the VBA editor (Alt+F11), delete or comment out problematic lines, then close the editor. If macros are corrupted, Excel may need to be reinstalled.