In Excel: press Alt+Shift+→ / Alt+Shift+← on Windows (⌘+Shift+K / ⌘+Shift+J on Mac) to group or ungroup the selected rows instantly — no mouse or menu required.
On this page8
Keyboard shortcut: Group & Ungroup
| Platform | Shortcut |
|---|---|
| Windows | Alt+Shift+→ / Alt+Shift+← |
| Mac | ⌘+Shift+K / ⌘+Shift+J |
Select whole rows or columns first, or Excel asks which direction to group.
Check whether Group & Ungroup needs a selected cell, range, or merely the active sheet.
Use Alt+Shift+→ / Alt+Shift+← on Windows or ⌘+Shift+K / ⌘+Shift+J on Mac; multi-step ribbon sequences are pressed in order.
Excel executes the Group & Ungroup operation instantly.
Undo with Ctrl+Z (⌘+Z on Mac) if the result is not what you expected.
What this does
Pressing Alt+Shift+→ / Alt+Shift+← on Windows — or ⌘+Shift+K / ⌘+Shift+J on a Mac — triggers the Group & Ungroup action instantly. The shortcut bypasses the right-click context menu and the ribbon, so you can group or ungroup the selected rows mid-keystroke without breaking your editing rhythm. Excel's shortcut model is consistent: once you learn Alt+Shift+→ / Alt+Shift+← for Group & Ungroup you can apply the same muscle-memory pattern across dozens of related operations, making the whole workflow noticeably faster. Before you run it on a workbook other people depend on, try it on a copy or a few rows first. Undo only reaches back through the current session, so a quick trial run is the cheapest way to see exactly what will change before the file is saved and shared. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “excel ungroup shortcut”. Start on a copy or a tiny sample, keep the affected cells visible, and compare the result with the outcome you expected 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
In practice: In a workbook, you need to group or ungroup the selected rows. Start with the relevant workbook or selection, use the shortcut, and check that the Group & Ungroup action produced the intended result. If the outcome is not the intended Group & Ungroup effect, stop and inspect the selection or workbook state before trying again. The Group & Ungroup shortcut is useful when you need to group or ungroup the selected rows while keeping the workbook in view. Check the effect of Alt+Shift+→ / Alt+Shift+← before continuing; some commands change content, while others only change what Excel shows. When the result is not what you expected, undo straight away rather than repairing it by hand — undo restores the sheet exactly, while manual fixes tend to leave small inconsistencies behind that surface later.
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. The short version of “excel ungroup shortcut”: the answer is at the top of this page, and the sections above explain why each step matters, so a variation of the problem does not stump you. Try it once on a copy of a real file and the steps stick far better than re-reading them.
Common mistakes
- Using Ctrl instead of the correct modifier or vice versa — always double-check whether Alt+Shift+→ / Alt+Shift+← 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 Group & Ungroup shortcuts are Excel-specific; Sheets uses different key combos for the same operations.
Frequently asked questions
Is there a Mac shortcut for Group & Ungroup?
Use ⌘+Shift+K / ⌘+Shift+J on Mac for Group & Ungroup. 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 Group & Ungroup shortcut (Alt+Shift+→ / Alt+Shift+←) 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 Group & Ungroup shortcut multiple times in a row?
It depends on Group & Ungroup: 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.