If Excel won't group columns, the usual cause is that grouping is being applied to rows instead of columns, or the selected cells are not a clean, contiguous block. Excel's Group feature works on whole rows or whole columns, not on a horizontal selection made inside a single row. The fix is to select the column headers (click the first column letter, then Shift-click the last), then use Data > Group. If the Group command is greyed out, the sheet is probably protected or the workbook is in a mode that blocks outline changes. Below is the full sequence, plus the mistakes that make Excel appear to ignore the command.

What You'll Need

  • Excel for Windows, Excel for Mac, or Excel for the web. Menu labels can differ slightly by version, device and region.
  • A worksheet where the columns you want to group are visible and not hidden.
  • Edit access to the workbook. If the sheet is protected, you need the password to unprotect it.
  • No active cell editing. Press Enter or Esc before starting so Excel is not still inside a cell.

Step-by-Step

  1. Click a cell outside any table. If your data is formatted as an Excel Table (the ribbon shows a Table Design tab when you click inside it), the Group command behaves differently. Click a blank cell first, or convert the table to a normal range with Table Design > Convert to Range if you need column grouping. Converting keeps the data but removes table features such as structured references.
  2. Select the columns by their letters. Click the column letter at the top of the first column you want to group, then hold Shift and click the letter of the last column. The whole columns highlight. Do not drag across cells in row 1; that selects cells, not columns, and is the single most common reason grouping appears to fail.
  3. Check that the selection is contiguous. Grouping needs adjacent columns. If you need to group columns A, B and D but not C, group A:B and D separately, or move C out of the way. Excel will not create one outline group across a gap.
  4. Open the Data tab. On Windows and the web, the Group button sits in the Outline group on the Data tab. On Mac, the same command is under Data > Group and Outline > Group. If you cannot see the Outline section, widen the Excel window; the ribbon hides groups when the window is narrow.
  5. Choose Group. In the dialog that appears, select Columns and click OK. If no dialog appears and the columns collapse immediately, Excel grouped them using the last-used setting, which is fine. A minus sign appears above the column headers, and a bracket line shows the grouped range.
  6. Test the group. Click the minus button to collapse the columns to a single narrow strip, then click the plus button to expand them. If the columns collapse and expand, grouping is working.
  7. Repeat for other column blocks. Select the next set of column letters and group again. Excel numbers the outline levels automatically, so you can nest a group inside a group by selecting a smaller range within an existing group and grouping it. Use the outline level buttons (1, 2, 3) at the top-left of the sheet to collapse or expand everything at once.
  8. Save the workbook. Outline settings are saved with the file. If you send the file to someone, their Excel will show the same groups unless they clear them.

Common Mistakes

  • Selecting cells instead of columns. Dragging across A1:C1 selects three cells, not three columns. Excel's Group command then groups rows, not columns, or does nothing useful. Always click the column letters.
  • Grouping inside a table. Excel Tables do not support column outline groups in the same way as normal ranges. Convert to a range first if you need the outline buttons.
  • Leaving the sheet protected. Review > Protect Sheet blocks outline changes. The Group button may appear active but do nothing, or Excel shows a message that the sheet is protected. Unprotect with the password, group the columns, then protect again if needed.
  • Using the wrong Group command. There is a Group command on the Data tab for outlines and a Group command in the right-click menu for shapes and objects. Right-clicking a column header and choosing Group may group drawing objects instead. Use the Data tab's Outline group.
  • Expecting hidden columns to group. If some columns in the range are already hidden, Excel may refuse or produce an unexpected outline. Unhide all columns first with Home > Format > Hide & Unhide > Unhide Columns, then group.
  • Confusing grouping with hiding. Grouping adds a collapse button; it does not hide data permanently. If you only want columns out of sight, hide them instead. Grouping is for toggling visibility quickly.

Tips

  • Use the outline level buttons at the top-left of the sheet to collapse all groups at once. Level 1 shows only ungrouped columns; higher levels reveal nested groups.
  • To remove a group, select the same column letters and choose Data > Ungroup > Columns. Clearing the outline entirely is under Data > Ungroup > Clear Outline, which removes all groups on the sheet.
  • Group columns that belong together logically, such as monthly columns inside a quarter, so the outline reads like a report structure.
  • If the Group button is greyed out, check three things in order: whether the workbook is in a protected view or read-only mode, whether the sheet is protected, and whether the selection is a valid contiguous column range.
  • On Excel for the web, outline grouping is supported but the interface is simpler. If the Group button is missing, open the file in the desktop app; some outline features are limited in the browser version.
  • Grouping does not affect formulas or calculations. Collapsed columns still calculate normally, so totals remain correct.

Troubleshooting

If the Group command is greyed out, first close and reopen the workbook, then check the title bar for [Read-Only] or Protected View. Click Enable Editing if a yellow bar appears. Next, go to Review and check whether Protect Sheet is active; unprotect it if you have the password. Then reselect the column letters and try again.

If grouping works but the columns will not collapse, look for a filter or a hidden row that is interfering. Clear filters with Data > Clear, unhide all rows and columns, and try the collapse button again. If the outline symbols themselves are missing, go to File > Options > Advanced > Display options for this worksheet and make sure Show outline symbols if an outline is applied is ticked. On Mac, the equivalent setting is in Excel > Preferences > View.

If Excel shows a message that the selection is too complex or that groups cannot be created, reduce the selection to a smaller contiguous block and group in stages. Very large or non-adjacent selections can exceed what the outline feature handles in one step.

If the workbook was created by another person and the groups behave oddly, clear the outline with Data > Ungroup > Clear Outline and rebuild the groups. This removes all outline settings on the sheet but does not delete data.

Frequently Asked Questions

Why is the Group button greyed out in Excel?

The most common reasons are a protected sheet, a read-only or Protected View workbook, or a selection that is not a contiguous set of whole columns. Check Review > Protect Sheet and the title bar first.

Can I group non-adjacent columns?

No. Excel outline groups must be contiguous. Group each block separately, or rearrange the columns so the ones you want together are side by side.

Does grouping columns hide them permanently?

No. Grouping adds a collapse button that temporarily hides the columns from view. The data stays in the workbook and formulas continue to use it.

How do I remove column grouping?

Select the same column letters, then choose Data > Ungroup > Columns. To remove every group on the sheet, use Data > Ungroup > Clear Outline.

Why does Excel group rows instead of columns?

Because the selection was made across cells in a row rather than across column letters. Excel infers the direction from the selection. Click the column letters at the top of the sheet to force column grouping.

Does column grouping work in Excel for the web?

Basic outline grouping is available in Excel for the web, but some outline controls are limited compared with the desktop app. If the option you need is missing, open the file in the desktop version.