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. The same idea underpins a lot of everyday Excel work, so the few minutes spent getting it right here pay back across every sheet you build afterwards. Treat it as a pattern, not a one-off, and it stops being something you look up and starts being something you reach for. The difference between a quick fix and a sheet you can trust is the extra minute you spend validating “excel group 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. If this is something you do often, add the command to the Quick Access Toolbar (right-click it on the ribbon and choose Add to Quick Access Toolbar) or learn its shortcut, so next time it is one click instead of a hunt through the menus.
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. If you take one thing from this page on “excel group shortcut”, make it the order of checks rather than the individual clicks: confirm what is selected, apply the step, and look at the result before moving on. That small routine is what keeps Excel work predictable when the same task comes back in a slightly different workbook.
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.
Other ways people ask this
On the way here you may have searched this as “excel group shortcut key”, “keyboard shortcut group excel” and “excel group keyboard shortcut” — it is all the same task, and this page is the single, complete answer to it.
Why do people search for this in so many different ways?
Because the same task has many names. “excel group shortcut key”, “keyboard shortcut group excel”, “excel group keyboard shortcut” all point at the one operation explained on this page, which is why they all lead here.