What grouping columns does and when to use it

Grouping columns in Excel lets you collapse and expand related columns with a single click, hiding them when you don't need them and showing them again when you do. Excel draws a bracket around the grouped columns and adds a minus sign (to collapse) or plus sign (to expand) that controls the visibility.

This is useful when you have a wide spreadsheet with many columns — for example, monthly sales data where each month has columns for units sold, revenue, and profit. You can group all the January columns together, all the February columns together, and so on. When you're looking at the year-end summary, you collapse each month to see only the totals. When you need to check the details, you expand the month you're interested in.

Grouping is different from simply hiding columns. When you hide columns manually, there's no visual indicator that columns are missing, and you have to remember to unhide them. Grouping makes the structure visible and gives you an easy control to toggle visibility.

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 in the group.
  • Go to the Data menu, choose Group, and select Group Columns to create the grouping bracket.
  • Click the minus sign to collapse a group and hide those columns; click the plus sign to expand and show them again.
  • You can create multiple levels of grouping — for example, grouping individual months, then grouping those month-groups into quarters.
  • To remove grouping, select the grouped columns again, go to Data > Group, and choose Ungroup.

Selecting the columns you want to group

Start by identifying which columns belong together. In Excel, you can only group columns that are next to each other — you cannot group column A and column C while skipping column B.

Click on the column header (the letter at the top) of the first column in your group. The entire column highlights. Then hold Shift and click on the column header of the last column you want to include. All columns from the first to the last are now selected. If you select the wrong range, simply click elsewhere to deselect and start over.

For example, if you have columns B, C, and D containing January's units, revenue, and profit, click on the B column header, then Shift-click on the D column header. All three columns turn blue to show they're selected.

Creating the group using the Data menu

With your columns selected, go to the Data menu at the top of the screen. Look for the option called Group. Click it, and a submenu appears with the option Group Columns (or sometimes just Group). Click that option.

Excel immediately draws a bracket to the left of your selected columns, with a minus sign at the top. The grouping is now active. You can see the bracket clearly — it's a visual indicator that these columns are grouped together.

If you don't see the Group option in the Data menu, make sure you have actually selected multiple columns. The Group command only appears when a range is selected.

Collapsing and expanding grouped columns

Once columns are grouped, a minus sign appears in the bracket to the left of the group. Click this minus sign to collapse the group — the columns hide, and the minus sign becomes a plus sign. The bracket remains visible so you know the columns are still there, just hidden.

Click the plus sign to expand the group again and show all the columns. You can collapse and expand as many times as you want without losing the grouping itself.

If you have multiple groups on the same spreadsheet, you can collapse or expand each one independently. Collapsing one group does not affect the others.

Creating nested groups for more complex data

Excel allows you to group groups — called nested grouping. This is helpful when you have a hierarchy of data. For example, you might group columns B, C, D as January, columns E, F, G as February, and columns H, I, J as March. Then you can select all nine columns (B through J) and group them again as Q1.

When you do this, Excel adds a second level of grouping controls. You'll see numbers 1, 2, and 3 on the left side of the spreadsheet. Click 1 to collapse everything down to just the main group headers. Click 2 to show the main groups and their subgroups. Click 3 to expand everything fully. This gives you quick navigation through different levels of detail.

To create nested groups, first create your smallest groups (like individual months), then select a larger range that includes multiple groups and group that range as well.

Removing grouping when you no longer need it

If you want to remove grouping from columns, select the grouped columns again the same way you selected them to create the group — click the first column header, Shift-click the last column header. Then go to Data > Group and choose Ungroup.

The bracket and the collapse/expand controls disappear, but your columns remain visible and unchanged. Ungrouping does not delete or hide the columns; it simply removes the grouping structure.

If you have nested groups and want to remove only one level of grouping, select just the columns in that level and ungroup. The other levels remain intact.

Common issues and how to fix them

If the Group option is grayed out or missing, you likely have only one column selected. The Group command requires at least two adjacent columns. Select a range of columns and try again.

If you collapse a group and then can't remember which columns are hidden, look at the bracket on the left. The bracket shows you exactly which rows or columns are grouped. The numbers 1, 2, 3 on the far left also indicate how many levels of grouping exist — click a number to jump to that level of detail.

If you accidentally grouped the wrong columns, select them again and ungroup, then select the correct columns and group those instead. There's no limit to how many times you can group and ungroup.

Frequently Asked Questions

Can I group non-adjacent columns?

No. Excel grouping only works on columns that sit next to each other with no gaps. If you need to hide non-adjacent columns, use the manual hide feature instead — right-click the column header and choose Hide.

What's the difference between grouping and hiding columns?

Grouping adds a visible bracket and collapse/expand controls so you can toggle visibility easily. Hiding columns removes them from view with no visual indicator. Grouping is better when you plan to show and hide the same columns repeatedly.

Can I group rows the same way I group columns?

Yes. The process is identical — select the rows you want to group by clicking the row number of the first row, Shift-click the last row, then go to Data > Group. The bracket appears on the left side instead of the top.

Will grouping affect my data or formulas?

No. Grouping only changes how the columns are displayed. Your data, formulas, and calculations remain exactly the same whether columns are grouped, collapsed, or expanded.

Can I save a spreadsheet with groups already collapsed?

Yes. When you save the file, Excel remembers which groups are collapsed and which are expanded. The next time you open the file, the groups will be in the same state you left them.