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. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “excel undo shortcut”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the tool above before you touch the real workbook. 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. The point is a workflow that saves repeating the same clicks every week, but the practical win is that someone else can open the file and understand what happened without asking you.
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. If there is any chance you will reuse this, drop it into a small template tab right now: a labelled input area on the left and the formula beside it, checked once against the tool above. Next time the same question comes up, the answer is a single paste away instead of a rebuild from memory.
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. Keep this page bookmarked for the next time the same question comes up. Better still, rebuild the example once in your own sheet — doing it yourself, with the tool above to check against, is what turns a copied formula into a technique you own. The short version of “excel undo shortcut”: the answer is at the top of this page, the tool proves it on your own numbers, and the sections above explain why it holds so the next variation does not stump you. Excel rewards people who reference cells instead of typing values and who keep inputs separate from formulas, because that is what makes a result you can audit months later. Build it once, deliberately, with the live tool as a check, and you convert a one-off lookup into a reusable skill — which is the whole point of learning the why and not just the what.
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.
Other ways people ask this
This is also commonly searched as “excel shortcut for undo”, “undo shortcut key in excel”, “excel shortcut undo” and “shortcut to undo in excel”. They describe the identical operation, so you are in the right place no matter how you phrased it.
Is there a keyboard shortcut for this?
Yes — “excel undo shortcut” is one key combination away rather than a trip through the menus. Use the Windows/Mac toggle above to see the exact keys for your machine, and remember Ctrl on Windows maps to ⌘ on Mac.
Why do people search for this in so many different ways?
Because the same task has many names. “excel shortcut for undo”, “undo shortcut key in excel”, “excel shortcut undo” all point at the one operation explained on this page, which is why they all lead here.