Undo in Excel reverses the most recent action—like typing, formatting, or deleting—so you can correct mistakes without restarting. It works instantly using the Undo button, keyboard shortcuts, or the Undo list. No special setup is needed beyond having Excel open and an active workbook.
What You'll Need
- Microsoft Excel installed (version 2010 or later; steps work similarly across modern versions)
- An active Excel workbook (new or existing file)
- Keyboard (for shortcut access)
Step-by-Step
- Perform an action you want to undo. This could be typing data, deleting a cell, applying formatting, inserting a row, or using any Excel feature. Undo only works after an action has been completed.
- Click the Undo button. Locate the Quick Access Toolbar at the top of the Excel window (above the ribbon). Find the curved left-pointing arrow icon labeled "Undo". Click it once to reverse the last action. If you perform multiple actions, each click reverses the most recent one still in the undo stack.
- Use the keyboard shortcut. Press Ctrl + Z (Windows) or Cmd + Z (Mac) immediately after the action. This is the fastest method and works in all Excel views (Normal, Page Layout, Page Break Preview).
- Access the full Undo list. Click the small downward arrow next to the Undo button on the Quick Access Toolbar. A dropdown menu appears showing the last 25 actions (or up to 100 in newer versions). Click any listed action to undo all steps up to and including that point. For example, selecting "Undo: Paste Values" will undo Paste, Format, and any earlier actions listed above it.
- Undo multiple steps at once. Hold down Ctrl (Windows) or Cmd (Mac) while pressing Z repeatedly to step backward one action at a time. Alternatively, in the Undo dropdown, scroll to the earliest action you want to preserve, then click it—Excel undoes all intermediate steps in one go.
- Confirm the result. After undoing, verify the cell, range, or structure reflects the expected state (e.g., deleted data reappears, formatting reverts). Note that undoing an action may trigger dependent changes (e.g., formulas recalculating).
Common Mistakes
- Pressing Ctrl+Z too many times. This can undo important work unintentionally. If you undo too far, use the Redo shortcut (Ctrl+Y or Cmd+Y) to step forward again.
- Using Undo after saving and closing. Excel clears the undo history when you close a file. Once saved, closed, and reopened, you cannot undo actions from the previous session.
- Expecting Undo to work on protected sheets. If a sheet is protected, Undo may be disabled for protected elements (e.g., locked cells). Unprotect the sheet first (Review > Unprotect Sheet), then try Undo.
- Confusing Undo with Clear vs. Delete. Undo works for both, but if you delete a cell (Delete > Shift cells left), Undo restores the cell and its contents. If you clear contents (Home > Clear > Clear Contents), Undo restores only the data—not formatting or comments—unless they were part of the same operation.
- Trying to Undo across workbooks. Undo is workbook-specific. If you switch to another open workbook, the undo history for the first workbook resets and cannot be recovered.
Tips
- Pin the Undo button. If it’s missing from the Quick Access Toolbar, right-click any ribbon tab > Customize Quick Access Toolbar > Choose commands from "All Commands" > select "Undo" > Add > OK.
- Combine Undo with AutoSave. With AutoSave enabled on OneDrive/SharePoint, Excel keeps a local undo history even if you save. However, AutoSave does not extend the undo limit—it still caps at ~100 steps.
- Use Undo for formatting errors. Undo is especially reliable for formatting changes (font size, color, borders). Try it before manually reformatting.
- Watch the Undo list label. The dropdown shows exact action names (e.g., "Undo: Paste Special: Values"). This helps you identify which step to stop at when reversing multiple actions.
- Undo works in macros only if built-in. Custom VBA macros don’t automatically appear in the Undo list. To include them, add
Application.EnableEvents = Trueand ensure the macro doesn’t disable undo manually (many do).
Troubleshooting
If Undo isn’t working as expected, follow these checks:
- Restart Excel. Close all workbooks, reopen Excel, then try Undo. A temporary glitch may have cleared the undo stack.
- Check if another program blocked it. Some add-ins (e.g., PowerPoint, Outlook integration, or third-party tools) interfere with undo. Start Excel in Safe Mode (hold Ctrl while opening Excel) and test Undo there. If it works, disable add-ins via File > Options > Add-ins.
- Verify you’re in a compatible view. Undo is disabled in Full Screen view (press Esc to exit). Switch to Normal view (View > Normal) to restore functionality.
- Confirm the action supports Undo. Rare actions like saving to a network drive, printing, or using certain macros (especially those with
Application.Undo = False) cannot be undone. Check if the action appears in the Undo list—if not, it’s likely unsupported. - Reset the undo stack manually. If the list is stuck or corrupted, press Ctrl+Z repeatedly until the stack empties, then try a new action and undo it. If still broken, go to File > Options > Advanced > Display > uncheck "Show the undo history when typing in the formula bar", click OK, restart Excel, and re-enable it.
- Check for workbook corruption. Create a new blank workbook, copy data from the original, and test Undo there. If it works, the source file may be damaged. Use File > Open > Browse > select the file > click the arrow next to Open > Open and Repair.
Frequently Asked Questions
How many steps can Excel undo?
Up to 100 actions in Excel 365 and Excel 2021. Older versions (2010–2019) support up to 25. The exact number depends on system memory—complex actions (e.g., large paste operations) may reduce the available slots.
Can I undo after saving the file?
No. Once you save and close the workbook, the undo history is permanently deleted. Saving does not preserve undo steps—you must undo before closing Excel.
Why does Ctrl+Z not work on some actions?
Actions like printing, sending a workbook via email, or running macros with manual undo disabling won’t appear in the history. Also, operations performed on a protected sheet (e.g., editing locked cells) are excluded unless the sheet is unprotected first.
Does Undo work across different Excel versions?
Yes, but only if the file is opened in a newer version. For example, undo steps made in Excel 2016 remain usable in Excel 365. However, opening the file in Excel 2007 or earlier may reset the undo stack or cause compatibility issues.
Can I undo a deleted worksheet?
Yes—if you haven’t closed Excel or performed too many other actions. Right-click any sheet tab > Undo Delete Sheet (if available in the context menu). If not, click the Undo button or press Ctrl+Z. Note: This only works if the worksheet was deleted within the current Excel session.
Is there a way to extend the undo limit?
No. Microsoft does not provide a setting to increase the 100-step limit. To safeguard against accidental loss, save versions frequently or use Excel’s AutoRecover (File > Options > Save > AutoRecover time interval).