In Excel: press Ctrl+Z on Windows (⌘+Z on Mac) to undo the last action instantly — no mouse or menu required.
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.
Select your target — for row/column operations, select the header; for cell operations, position the cursor first.
Press Ctrl+Z on Windows. The Undo action fires without any dialog.
On Mac use ⌘+Z. The keystroke is slightly different but achieves the exact same result.
Combine with Shift+arrow (or Ctrl+Shift+arrow) to pre-select multiple targets before pressing the shortcut.
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
Example: a colleague sends you a data table and you need to undo the last action twice in quick succession. Select the first target, press Ctrl+Z (or ⌘+Z on Mac), then move to the next target and press Ctrl+Z again — the repetition locks in quickly. For inserting or deleting multiple rows/columns at once, pre-select that many rows before pressing the Undo shortcut and Excel applies the action to all of them simultaneously. Reach for Ctrl+Z (⌘+Z on Mac) every time you need to undo the last action and want to stay keyboard-first. The payoff is consistency: the same shortcut works in any Excel version from 2010 through Microsoft 365, on Windows and Mac (with the appropriate key), so the muscle memory you build transfers across every version you ever use. A practical tip before you scale it up: build it once on a small block of test data, confirm the number against the tool on this page, and only then point it at your real sheet. That one habit catches almost every mistake while it is still cheap to fix, long before a wrong figure reaches a report or a colleague.
In Google Sheets
If you are in Google Sheets rather than Excel, the good news is that the formula shown here is identical and the workflow barely changes — menus sit across the top instead of in a ribbon, and a few function names differ slightly, but anything you build here moves across with little or no rework. Nothing on this page is behind a login: the tool runs entirely in your browser, the formula is shown in full with one-click copy, and the steps work the same on Windows and Mac. That is the whole promise here — the exact answer, a way to prove it on your own numbers, and just enough context to make it stick. Treat “excel undo redo shortcut” as a small building block rather than a chore. Once the inputs sit in their own cells and the formula reads from them, the same setup answers a dozen related questions with a tweak, and Excel keeps every dependent figure current as the data changes. The tool above is there so you can rehearse and verify before committing anything to a real workbook; the steps and worked example are there so the logic sticks. Get it right once and it stops costing you time — it starts saving it, every time the question comes back around.
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?
Yes — on Mac use ⌘+Z. The function is identical to pressing Ctrl+Z on Windows; only the modifier keys differ because Mac replaces Ctrl with ⌘ and sometimes Alt with Option (⌥).
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?
Yes — press Ctrl+Z repeatedly for each Undo action, or pre-select multiple rows/columns and press the shortcut once to apply it to all of them simultaneously. You can also press F4 after the first use to repeat the last action.