Grouping columns hides related data behind a clickable button
Column grouping in Excel lets you collapse related columns into a single expandable section. When you group columns, Excel adds a small minus button above the grouped area. Click it to hide those columns, and a plus button appears so you can expand them again. This is useful when you have many columns of similar data — like monthly sales figures, regional breakdowns, or different versions of the same calculation — and want to reduce visual clutter without deleting anything.
The grouping feature works on any set of adjacent columns. You select the columns you want to group, use the Data menu, and Excel handles the rest. You can create multiple groups at different levels, so you might group Q1 months together, Q2 months together, and then group all quarters into one larger group.
Key Takeaways
- Select the columns you want to group by clicking the column header of the first column, then holding Shift and clicking the last column header in the range.
- Go to the Data menu, choose Group, and select Group Columns from the dropdown to create the grouping.
- A minus button appears above the grouped columns; click it to collapse, and a plus button replaces it to expand again.
- You can create nested groups by grouping columns within already-grouped columns, and Excel shows numbered outline levels on the left side of the sheet.
Selecting the columns you want to group
Start by identifying which columns belong together. They must be adjacent — next to each other with no gaps. If your columns are not next to each other, you will need to move them first or create separate groups for each section.
Click the column header letter of the first column in your group. The entire column highlights. Then hold Shift and click the column header letter of the last column you want to include. All columns from the first to the last are now selected, shown by the blue highlight across all of them. If you select the wrong range, simply click elsewhere to deselect and start over.
Using the Data menu to create the group
With your columns selected, click the Data menu at the top of the screen. Look for the Group option — it appears as a button or menu item depending on your Excel version. Click Group, and a small dropdown menu appears with options including "Group Columns" or just "Group".
Click that option. Excel immediately adds a grouping control above your selected columns. You will see a horizontal line with a minus button (−) centered above the grouped area. The columns remain visible; the grouping is now active and ready to use.
Collapsing and expanding grouped columns
Click the minus button to collapse the group. The selected columns disappear from view, and the minus button changes to a plus button (+). The columns are still there — they are just hidden. Click the plus button to expand and show them again.
When columns are collapsed, Excel shows a thin vertical line where they were, so you know something is hidden there. This keeps your spreadsheet readable while preserving all your data and formulas that depend on those columns.
Creating nested groups for multiple levels
You can group columns within groups. For example, if you have 12 columns representing 12 months, you might first group columns B through D (January, February, March) as Q1, then group E through G as Q2, and so on. After creating those four groups, you can then select all 12 month columns and create one larger group around them.
When you do this, Excel adds numbered outline buttons on the left side of your sheet — usually showing 1, 2, 3, or more depending on how many levels deep your groups go. Click the number 1 to collapse everything to the highest level. Click 2 to show the first level of groups but keep the nested groups collapsed. Click 3 to expand everything. This gives you quick navigation through different levels of detail.
Removing a group when you no longer need it
Select any column within the group you want to remove. Go to Data, click Group, and look for an Ungroup option. Click it, and the grouping control disappears. The columns remain visible and unchanged; only the grouping structure is removed.
If you have nested groups and ungroup the outer group, the inner groups remain. You will need to ungroup each level separately if you want to remove all grouping from that section.
Common reasons grouping does not work
The most common issue is selecting non-adjacent columns. If your columns have a gap between them, the Group option will be grayed out or will not work as expected. Move your columns next to each other first, or create separate groups for each section.
Another issue is having the wrong sheet selected. Grouping works on the active sheet only. If you are looking at Sheet1 but your data is on Sheet2, switch to the correct sheet before selecting and grouping.
Frequently Asked Questions
Can I group rows instead of columns?
Yes. The process is identical: select the row numbers on the left side instead of column headers, go to Data, choose Group, and select Group Rows. The collapse and expand buttons appear to the left of the row numbers instead of above the columns.
What happens to my grouping if I add a new column in the middle of a grouped section?
The new column is automatically included in the group. If you insert a column between grouped columns, Excel adds it to the existing group rather than breaking the grouping. If you do not want it grouped, you will need to ungroup, move the column outside the group, and then regroup.
Can I print my spreadsheet with the groups collapsed?
Yes. Set your columns to the collapsed state you want, then print normally. Excel prints only the visible columns. The grouping controls themselves do not print — only the data that is showing on screen.
Is there a limit to how many levels of nesting I can create?
Excel supports up to 8 levels of grouping. In practice, most spreadsheets use 2 or 3 levels because more than that becomes difficult to navigate and understand at a glance.