In Excel: press Ctrl+Z on Windows (⌘+Z on Mac) to undo the last action instantly — no mouse or menu required.
On this page8
Keyboard shortcut: Undo
| Platform | Shortcut |
|---|---|
| Windows | Ctrl+Z |
| Mac | ⌘+Z |
Excel keeps roughly 100 undo steps, but deleting a worksheet clears the whole undo stack.
Activate the workbook where you need Undo, and select a target if this action needs one.
Press Ctrl+Z on Windows. The Undo action may change the view, open a dialog, or change cells.
On Mac use ⌘+Z. The keystroke is slightly different but achieves the exact same result.
Verify the intended effect before using another command; do not assume this shortcut repeats an edit.
What this does
The Undo shortcut lets you undo the last action in Excel without touching the mouse. Press Ctrl+Z on Windows (⌘+Z on Mac) and Excel acts immediately — no right-click, no ribbon hunt. Keeping your hands on the keyboard for the Undo operation cuts context-switching overhead and keeps you in a data-entry flow that menu clicks constantly interrupt. Once Ctrl+Z becomes muscle memory you will reach for it instinctively whenever you need to undo the last action. Most people learn this as a sequence of clicks and forget it by next week; learning it as a pattern instead is what lets you apply it to the next, slightly different version of the problem without starting from scratch. That is the difference this page is trying to make. For “excel undo redo shortcut”, the reliable version is a short checking loop, not just the first command that appears to work. Run it on a deliberately small range first, watch how the affected cells change, and only then apply the same setup to the full sheet. When this is a ribbon command, the selection matters more than the button: confirm the range, apply the command, then spot-check the output before saving. That is what makes a workflow that saves repeating the same clicks every week useful in real work: repeatable, auditable, and not dependent on memory or luck.
A worked example
Worked case: In a workbook, you need to undo the last action. Start with the relevant workbook or selection, use the shortcut, and check that the Undo action produced the intended result. Compare the state before and after Ctrl+Z (or ⌘+Z on Mac) so you can tell whether Undo did what you needed. Use Ctrl+Z (⌘+Z on Mac) for the Undo action after confirming the active sheet or selection. This avoids reaching through menus without assuming that the action repeats or applies to multiple rows. A practical tip: try it on a copy of the sheet or a handful of sample rows first and check the result before you apply it to the real data. That one habit catches almost every surprise while it is still cheap to reverse.
In Google Sheets
This is a command rather than a formula, so there is no syntax to carry over. Google Sheets arranges its commands in menus across the top instead of a ribbon, names some of them differently and does not have every Excel command — look for the equivalent in the Sheets menus or its help before assuming the steps match. Nothing on this page is behind a login or a download: the exact answer is at the top, and the detail below it is there for when you need it. That is the whole promise here — the answer first, and just enough context to make it stick. Treat “excel undo redo shortcut” as a routine rather than a one-off. Once you know which setting or command controls it, the same few steps handle every workbook where it comes up in Excel, and you can explain them to a colleague in a sentence.
Common mistakes
- Using Ctrl instead of the correct modifier or vice versa — always double-check whether Ctrl+Z starts with Ctrl, Alt, or Shift.
- Activating a cell for editing (cursor visible inside the cell) before pressing the shortcut — many shortcuts only fire when a cell is selected, not in edit mode. Press Escape to exit edit mode first.
- Expecting the shortcut to work the same in Google Sheets: most Undo shortcuts are Excel-specific; Sheets uses different key combos for the same operations.
Frequently asked questions
Is there a Mac shortcut for Undo?
Use ⌘+Z on Mac for Undo. It may be a menu path rather than a direct key combination; check the action on your Excel version and keyboard layout.
What if the Undo shortcut (Ctrl+Z) doesn't work?
Check that you are not in cell-edit mode (press Escape first), that no dialog is open, and that no add-in has reassigned the shortcut. On a laptop, some function keys require pressing Fn first.
Can I use the Undo shortcut multiple times in a row?
It depends on Undo: a view toggle reverses on the next press, while an edit may apply again. Check the state before repeating; do not assume that selecting multiple rows or pressing F4 is supported for this action.