Undo and redo in Excel let you reverse mistakes or restore an action you just undid. The quickest way is to press Ctrl+Z to undo and Ctrl+Y to redo (on Mac: Cmd+Z and Cmd+Y). You can also use the Undo and Redo buttons on the Quick Access Toolbar. This guide covers both methods, how to undo multiple steps at once, and what to do when undo doesn’t work as expected.
What You’ll Need
- Microsoft Excel for Microsoft 365, Excel 2021, 2019, 2016, or earlier (steps are similar across versions).
- A workbook with some data you can edit or delete for practice.
- No special add-ins or settings required.
Step-by-Step
- Make a change to your data. For example, type a value in cell A1, delete a row, or apply formatting. This gives you something to undo.
- Undo the last action. Do one of the following:
- Press Ctrl+Z (Windows) or Cmd+Z (Mac).
- Click the Undo button (the curved arrow pointing left) on the Quick Access Toolbar at the top-left of the Excel window.
- Undo multiple steps at once. Click the small drop-down arrow next to the Undo button. A list of recent actions appears (e.g., “Typing ‘Hello’ in A1”, “Delete Row 3”). Click any action in that list to undo everything up to and including that action. For example, if you see “Typing”, “Delete Row”, and “Format”, clicking “Delete Row” undoes both the delete and the typing, but not the format.
- Redo an action you just undid. After undoing, press Ctrl+Y (Windows) or Cmd+Y (Mac), or click the Redo button (the curved arrow pointing right) on the Quick Access Toolbar. This reapplies the last undone action.
- Redo multiple steps. Click the drop-down arrow next to the Redo button (if available) and select an action to redo everything up to that point. Note: the Redo list only appears after you have undone something.
- Use the keyboard shortcut for repeat (optional). In Excel, Ctrl+Y also repeats the last command (like applying bold) when there is nothing to redo. This is a handy extra, but for redo purposes, it works the same.
- Check the Quick Access Toolbar. If you don’t see the Undo/Redo buttons, right-click the ribbon and choose Customize Quick Access Toolbar. In the dialog, select “Undo” and “Redo” from the left list and click Add to move them to the right side. Click OK.
Common Mistakes
- Assuming undo works after saving. Saving does not clear the undo history, but closing and reopening the workbook does. If you close the file, you lose the ability to undo.
- Clicking the Undo button repeatedly too fast. Each click undoes one step, but if you click too quickly, you might undo more than intended. Use the drop-down list to be precise.
- Using Ctrl+Z in a dialog box. When a dialog box (like Format Cells) is open, Ctrl+Z may undo typing inside the dialog, not your spreadsheet action. Close the dialog first.
- Forgetting that some actions cannot be undone. Running a VBA macro, deleting a sheet, or using certain add-in operations cannot be reversed with Undo. Always save a backup before such actions.
- Expecting redo after a new action. If you undo something and then type or edit a cell, the redo history is cleared. You can only redo the last undone action if you haven’t made a new change.
Tips
- Increase the undo limit. By default, Excel allows up to 100 undo steps. You can change this in the Windows Registry (for advanced users), but it’s not recommended for most people. The default is usually enough.
- Use the Quick Access Toolbar for one-click access. The Undo/Redo buttons are there by default, but you can add them if missing. Right-click any ribbon tab and choose “Customize Quick Access Toolbar” to manage them.
- Keyboard shortcuts are faster. Keep your hands on the keyboard: Ctrl+Z / Ctrl+Y (Windows) or Cmd+Z / Cmd+Y (Mac).
- Undo formatting changes. Undo works for formatting like bold, fill color, and column width, so you can reverse accidental formatting.
- Test with a copy. If you’re about to do a complex operation (like a large delete), make a copy of the worksheet first (right-click the sheet tab > Move or Copy > Create a copy).
Troubleshooting
Undo is grayed out or does nothing. This means there are no actions to undo. Check if you just opened the file or if you already undid everything. Also, if you ran a macro, undo history is cleared.
Redo button is missing. The Redo button only appears after you have undone something. If you haven’t undone anything, it may be hidden or grayed out. After undoing, it should become active.
Undo only undoes one step at a time. That’s normal. Use the drop-down arrow next to Undo to select multiple steps at once.
Undo doesn’t work after saving. Saving does not clear undo, but closing the workbook does. If you saved and then closed, you cannot undo. Reopen the file and use the saved version.
Mac shortcuts don’t work. On a Mac, use Cmd+Z and Cmd+Y. If you’re using a Windows keyboard on a Mac, try Ctrl+Z and Ctrl+Y. Also, ensure the Excel window has focus (click on a cell first).
Undo history is limited to 100 steps. If you need more, consider breaking your work into smaller chunks and saving frequently. You can also use Version History (File > Info > Version History) to recover older versions of the file.
Frequently Asked Questions
Can I undo a save in Excel? No, saving a file does not create an undo point. However, if you close without saving, you can reopen the last saved version. For unsaved changes, use File > Info > Manage Workbook > Recover Unsaved Workbooks (if available).
How many times can I undo in Excel? By default, Excel keeps up to 100 undo actions. Once you exceed that, the oldest actions are dropped, and you cannot undo them.
Does undo work after running a macro? No, running a VBA macro clears the undo history. Always save a copy of your workbook before running a macro, because Ctrl+Z cannot reverse macro actions.
Why is my Redo button not showing? The Redo button appears only after you have undone an action. If you haven’t undone anything, it may be hidden. After pressing Ctrl+Z, look for the Redo button on the Quick Access Toolbar.
Can I undo a deleted sheet? No, deleting a sheet cannot be undone with Ctrl+Z. To avoid losing data, always confirm before deleting a sheet, or use File > Info > Version History to restore an earlier version of the workbook.
What’s the difference between Undo and Repeat in Excel? Undo reverses the last action. Repeat (Ctrl+Y) repeats the last command when there is nothing to redo. For example, if you just bolded a cell, Ctrl+Y will bold the next selected cell. When you have undone something, Ctrl+Y acts as Redo.
Related
- How to Sum a Column in Excel: 5 Quick Ways
- How to Learn Data Entry: Skills, Tools & Steps
- WFH Data Entry No Experience: Real Jobs & Pay
Try it: the Date Difference Calculator: days, months, years and weekdays between two dates, with the DATEDIF formulas.
More in How-to basics
- How to Highlight Half a Cell in Excel with a ShapeExcel does not have a built-in command to fill only half of a cell. To create that effect,…
- Password Protect an Excel Sheet from Editing SafelyTo password protect an Excel sheet from editing in Microsoft 365 for Windows, open the worksheet and select…
- How to Delete the Last Empty Page in Microsoft WordTo delete a last empty page in Word, go to the end of the document, turn on formatting…
- Can You Rotate an Excel Sheet? What Actually WorksYou cannot rotate an entire Excel worksheet or its grid 90 degrees inside the workbook. You can rotate…
- Outlook Signature Setup in Older Versions: Step by StepTo create a signature in classic Outlook for Windows, open File > Options > Mail > Signatures, select…
- Excel Power Query Editor: What It Does and How to Use ItThe Excel Power Query Editor is the workspace where you connect to data, clean and reshape it, and…
Sources: Function behaviour and menu paths: Microsoft Support documentation for Excel. Method & sources
Spotted an error in this guide? Let us know.