30 Advanced Excel Tips for 2026

Excel Champs / Excel Keyboard Shortcuts / Group (Excel Shortcut)
By Puneet Gogia (Microsoft MVP)

Group (Excel Shortcut)

Select the rows or columns and press Alt + Shift + → (Right Arrow) to group them. Press Alt + Shift + ← (Left Arrow) to ungroup the same selection.

To collapse a group from the keyboard, select a cell inside it and press Alt, A, H (Data → Hide Detail). To expand it again, press Alt, A, J (Data → Show Detail). With the mouse, click the − and + buttons in the outline bar, or the numbered level buttons at the top of it to collapse or expand every group at once.

If you select a block of cells rather than whole rows or columns, Excel asks whether to group Rows or Columns. Select whole rows first with Shift + Space, or whole columns with Ctrl + Space, to skip that prompt.

By default the +/− button sits on the row below the group, so it looks attached to the wrong rows. To move it above, click the dialog launcher in Data → Outline and untick Summary rows below detail.

If the outline bar and its buttons have disappeared, press Ctrl + 8 to show them again. On a Mac the grouping shortcuts use different keys.

Latest Video Tutorial – 10 Excel Keyboard Shortcuts (Probably YOU are NOT Using)

Group in Excel is a feature used for grouping rows and columns. If you work with huge data sets, you may have felt the need to group rows and/or columns so you can hide those groups and make the data easier to work with.

By using this group feature, you can create multiple groups by adding different selected rows or columns into those groups, and like other Excel features, you can do it manually or using the keyboard shortcut.

If you are a shortcut lover, then this tutorial is for you to learn how to group rows and columns using the keyboard shortcut.

Keyboard Shortcut to Group in Excel

Alt + Shift + ➞

Steps to Group Rows or Columns Using Keyboard Shortcut

  1. First, select the rows or columns which you want to group.
    select-rows-for-grouping
  2. After that, press the “Alt + Shift + ➞ (Right Arrow)” keys, and you will get the selected rows or columns grouped.
  3. Now, to collapse the grouped rows, you can go to any cell of the grouped rows and press the “Alt → A → H” (Hide Detail) keys, and your group will be collapsed and the rows hidden.
  4. Or you can click the grouping (-) sign on the left bar of the spreadsheet to collapse the grouped rows.
    grouped-rows
  5. To expand the grouped rows, go to the grouped row and press the “Alt → A → J” (Show Detail) keys or click the (+) sign, and your group will be expanded.
    collaped-grouped-rows

If you select the cells only instead of selecting the entire rows or columns, when you press the “Alt + Shift + ➞” keys, it will show you a pop-up asking you to select the rows or columns option for grouping.

group-dialog-box

Ungroup Rows or Columns

To ungroup, select the grouped rows or columns and press Alt + Shift + ← (Left Arrow). You can also use Data ➜ Outline ➜ Ungroup, or Data ➜ Outline ➜ Ungroup ➜ Clear Outline to remove all the groups of the sheet at once.

More Grouping Shortcuts and Tips

  • Show or hide the outline symbols: Ctrl + 8 hides or shows the (+)/(-) buttons and the level numbers.
  • Outline levels: the small 1, 2, 3 buttons at the top-left of the outline collapse or expand all groups to that level.
  • Nested groups: group rows that are already inside a group to create a second level, up to eight levels.
  • Mac: use Command + Shift + K to group and Command + Shift + J to ungroup.

Frequently Asked Questions

Why does Alt + A + H not work?

Alt → A → H is a key sequence, not a combination: press and release Alt, then A, then H. It hides the detail of the group that the active cell is in, so the cell must be inside a grouped range.

Can I group columns in a protected sheet?

You can’t create groups on a protected sheet, and you can’t even expand or collapse them unless the sheet was protected with a macro that sets EnableOutlining to True.

What is the difference between grouping and hiding?

Hidden rows have no visible marker, while grouped rows show a (+)/(-) button and level numbers, so you can collapse and expand them with one click.

Leave a Comment