In Excel: select the rows or columns, go to Data ▸ Outline ▸ Group (Alt+Shift+→ on Windows), and a collapsible bar with a − button appears in the margin so you can fold the detail away; ungroup with Data ▸ Ungroup (Alt+Shift+←).
On this page7
Select the whole rows or columns you want to group by their headers.
Go to Data ▸ Outline ▸ Group, or press Alt+Shift+→ (Windows).
Click the − button in the margin to collapse the group, + to expand it.
Use the 1-2-3 outline level buttons to fold the whole sheet at once.
To remove a group, select it and choose Data ▸ Ungroup (Alt+Shift+←).
What this does
Grouping ties a block of rows or columns together into a collapsible outline. Excel draws a bracket in the margin to the left of grouped rows (or above grouped columns) with a − button to collapse the detail and a + button to expand it again. You can nest groups inside groups, and the 1-2-3 outline level buttons in the top-left jump the whole sheet to a chosen depth. Nothing is deleted — collapsing only hides the detail from view. Grouping sheets is different: Ctrl-click sheet tabs to edit several tabs at once. 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. Treat “group sheets in excel” as a small repeatable workflow rather than a one-off click you hope to remember next time. Use a small test block before the live file, so any surprise in the affected sheet shows up while it is still harmless. 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 turns a layout choice that keeps the sheet readable and sortable into a method you can reuse, explain, and defend when the workbook leaves your screen.
A worked example
Rows 2:10 hold line-item detail under a subtotal in row 11. Select row headers 2 through 10, go to Data ▸ Group, and a collapse bar appears in the left margin. Click the − button and rows 2:10 fold away, leaving just the subtotal; the 1 and 2 buttons at the top switch the entire outline between summary-only and full detail. Grouping turns a long detailed sheet into a tidy summary you can drill into, which is ideal for reports with subtotals and nested sections. A practical tip: try it on a copy of the sheet or a handful of sample rows first and check the result before you apply it to the real data. That one habit catches almost every surprise while it is still cheap to reverse.
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 “group sheets in excel”: 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
- Selecting cells instead of whole rows or columns before grouping.
- Confusing grouping rows with grouping sheet tabs — those are separate features.
- Deleting rows when you only meant to collapse them.
- Expecting Subtotal to undo cleanly — remove subtotals from the Data menu, not by deleting rows.
Frequently asked questions
Where is the Group button?
On the Data tab, in the Outline group.
What is the shortcut to group rows?
Alt+Shift+→ to group, Alt+Shift+← to ungroup, on Windows.
Does collapsing a group delete the rows?
No. It only hides them; click + to show them again.
How do I group in Google Sheets?
Right-click the row or column header and choose Group.
Other ways people ask this
On the way here you may have searched this as “how do you group sheets in excel”, “group sheets in excel”, “how to use group in excel” and “how to use groups in excel” — it is all the same task, and this page is the single, complete answer to it.
Platform & version notes
- If you are on a Mac, nothing here changes except the modifier key: swap Ctrl for ⌘ in every shortcut, and use the Windows/Mac toggle at the top of the page so the keystrokes shown match the keyboard in front of you.
How is it different on a Mac?
Only the keys. Press ⌘ where Windows uses Ctrl; the menus, formulas and result for "group sheets in excel" are the same on macOS as on Windows.
Why do people search for this in so many different ways?
Because the same task has many names. “how do you group sheets in excel”, “group sheets in excel”, “how to use group in excel” all point at the one operation explained on this page, which is why they all lead here.