Grouping sheets lets you collapse rows or columns to see only the data you need
Grouping in Excel hides rows or columns under a collapsible bracket, so you can expand and collapse sections without deleting anything. When you group rows, Excel adds a minus sign (−) next to the row numbers on the left. Click it to hide those rows. Click the plus sign (+) to show them again. The same works for columns — the controls appear above the column letters.
You use grouping when a spreadsheet has too much detail to see at once. A budget with monthly breakdowns under each quarter, a sales report with daily numbers under weekly totals, or an inventory sheet with product variants under category headers — grouping lets you zoom in and out without rearranging anything.
Key Takeaways
- Select the rows or columns you want to hide, then use the Data menu to create a group with a single click.
- Excel adds collapse buttons (minus and plus signs) next to your row numbers or column letters so you can toggle the group on and off.
- You can create multiple nested groups — groups within groups — to show different levels of detail.
- Grouping does not delete or move data; it only hides rows or columns temporarily.
- Removing a group unhides the rows or columns but keeps all your data intact.
How to group rows in Excel
Start by selecting the rows you want to hide. Click the row number on the left side of the first row in your group, then hold Shift and click the last row number. All rows between them will highlight in blue.
Once the rows are selected, go to the Data menu at the top of the screen. Click it, then look for the word Group in the dropdown menu. Click Group, then choose Group again from the submenu that appears. Excel will add a bracket and a minus sign (−) to the left of your selected rows. Click the minus sign to hide those rows. The minus becomes a plus sign (+), and clicking it shows the rows again.
If you have already grouped some rows and want to group additional rows below them, select the new rows and repeat the same steps. Excel will nest the groups so you can collapse at different levels.
How to group columns in Excel
Grouping columns works the same way as grouping rows, but you select column letters instead of row numbers. Click the column letter of the first column you want to hide, then hold Shift and click the last column letter. The columns between them will highlight.
Go to the Data menu, click Group, then click Group again. Excel adds a bracket and a minus sign above the column letters. Click the minus to hide those columns, and click the plus to show them again.
Creating nested groups for multiple levels of detail
You can group rows or columns within rows or columns you have already grouped. This is useful when you have data organized in layers — for example, months within quarters within years.
Group the smallest sections first (the months), then select and group the larger sections (the quarters). Excel will show numbered buttons (1, 2, 3) on the left or top that let you jump between detail levels. Click 1 to see only the largest groups, click 2 to see the next level down, and so on.
Do not group the largest section first. If you do, Excel cannot nest the groups properly, and you will have to undo and start over.
How to remove a group
Select any row or column in the group you want to remove. Go to the Data menu, click Group, then click Ungroup. The bracket and the collapse buttons disappear, and all hidden rows or columns reappear. Your data is not deleted — it was only hidden.
If you have nested groups and want to remove only one level, select the rows or columns in that specific group before clicking Ungroup. The other groups will stay in place.
Common mistakes when grouping
The most common mistake is selecting the wrong rows or columns. If you select row 5 through row 10 but actually want to hide rows 6 through 9, the group will include row 5 and row 10, which you did not intend to hide. Always double-check your selection before clicking Group.
Another mistake is grouping in the wrong order when you have nested groups. Always group the smallest sections first, then the larger ones. If you group the large section first, you cannot nest smaller groups inside it without undoing and starting over.
Some people think grouping deletes data. It does not. Grouping only hides rows or columns. If you accidentally hide something, click the plus sign to show it again, or use Ungroup to remove the group entirely.
When to use grouping instead of filtering
Grouping and filtering are different tools. Grouping hides rows or columns you choose in advance and shows collapse buttons. Filtering hides rows based on the values in a cell — for example, showing only rows where the Status column says "Complete".
Use grouping when you want to organize data by structure — hiding detail rows under summary rows, or hiding supporting columns next to main columns. Use filtering when you want to show only rows that match certain values. You can use both at the same time: group your rows, then filter to show only certain groups.
Frequently Asked Questions
Can I group non-consecutive rows?
No. You can only group rows or columns that are next to each other. If you need to hide rows 5 through 7 and rows 12 through 15, you must create two separate groups. Select and group rows 5 through 7 first, then select and group rows 12 through 15.
What happens to grouped rows when I copy and paste the spreadsheet?
The groups stay in place. When you copy a sheet with grouped rows, the groups copy too. The rows remain grouped in the new location, and the collapse buttons work the same way.
Can I group rows and columns at the same time?
No. You must group rows and columns separately. Select and group all the rows you want to hide, then select and group the columns. Excel will show collapse buttons for both, and you can use them independently.
How many levels of nested groups can I create?
Excel allows up to eight levels of nested groups. In practice, most spreadsheets use two or three levels. If you need more than eight, your data structure may need rethinking.
If I group rows, will the group stay when someone else opens the file?
Yes. Groups are saved as part of the spreadsheet file. When someone else opens the file, they will see the same groups and collapse buttons you created. They can expand or collapse them, but the groups themselves stay until someone removes them.