Quickly Hide Rows & Columns With Groups And Outlines In Excel

Bottom Line: Learn how to use the Groups and Outline features of Excel to quickly hide and unhide rows and columns. This makes it easy to collapse and expand details of summary reports.

Skill Level: Beginner

Video Tutorial

Watch on Youtube

Download the Excel File

The Excel file that I used in the video tutorial can be downloaded here:

Groups-and-Outlines.xlsxDownload

Grouping Rows or Columns

Groups and outlines allow you to quickly hide and unhide rows or columns in an Excel spreadsheet.

Outline example showing groups that you can expand or contract

The Groups feature creates row and column groupings in the Headings section of the worksheet. Each group can be expanded or collapsed with the click of a button.

Here's an image that shows the report with collapsed rows:

Example of collapsed rows

And here's how it looks when the rows are expanded:

Example of expanded rows

Why Groups? Make Your Reports Easier to Read

Groups are a fast way to manage rows and columns that you hide and unhide frequently.

If your reports have a lot of rows/columns of data, they can easily start to feel overwhelming to some readers. Groups make it much easier for users of your worksheets to navigate your summary reports and only view detail rows/columns as needed.

How to Create Groups

To create a group, simply select the rows or columns that you want to group together. Then:

  1. Go to the Data tab.
  2. Go to the Outline drop-down.
  3. Click on the Group button.
Steps for creating outlined groups in Excel
Click to enlarge

The keyboard shortcut for creating groups is Shift + Alt + →.

Outline Levels

When you create groups, you'll notice that in the upper left-hand corner of the spreadsheet some boxed numbers will appear. These indicate the levels of the outline.

Outline levels explained

Clicking the Number 1 box will collapse all of the groups. Clicking it again will expand the groups at the first level.

If you have groups within groups then you will see additional numbered levels. Clicking each number will allow you to expand and collapse the data to the level you want. As you click subsequent numbers, you'll be able to see more and more detail of the outline.

Removing Groups

To remove groups, you follow almost the same process as before. Start by select the rows or columns that you want to ungroup.

  1. Go to the Data tab.
  2. Go to the Outline drop-down.
  3. Click on the Ungroup button.
Steps for removing outlined groups in Excel
Click to enlarge

The keyboard shortcut for removing groups is Shift + Alt + ←.

If you are interested in learning more keyboard shortcuts, you can do so here: 5 Keyboard Shortcuts for Rows and Columns in Excel.

If you want to remove all of the grouping in all rows and columns simultaneously, instead of clicking on the top half of the Ungroup button, click on the bottom half, which shows you a drop-down menu. Select Clear Outline from that menu and all of the groupings you've made will disappear.

Clear Outline feature

Using Auto Outline

Excel has a feature that will group rows and columns based on information it pulls from formulas. For example if you use a SUM formula, it will group all of the rows that are added together for that sum, because it assumes the data in those cells is similar enough to group together.

Before you use the Auto Outline, you'll want to make sure you clear any groups that you have by using the Clear Outline feature mentioned above. Then go to the Data tab, the Outline drop-down, the Group drop-down, and select Auto Outline.

Auto outline in Excel

I've found that the Auto Outline feature tends toward overkill in the number of groupings it usually makes. So if you use Auto Outline, you may want to ungroup some of the groups if it feels like too much.

Another option to pare down the number of groupings from Auto Outline is to just select a set of rows or columns before running Auto Outline. Then it doesn't outline the entire sheet, just the parts that you are interested in grouping.

Checkout the video above for more on Auto Outline.

The Subtotal Feature

One other option available to you in the Outline drop-down menu is Subtotal.

The Subtotal feature button in menu

In addition to grouping together similar data, the Subtotal feature also inserts subtotals for those data sets in whatever columns you want them to appear.

Subtotal feature example

I explain more about the Subtotal feature in this tutorial: How to Use the Subtotal Feature and the SUBTOTAL Function in Excel.

Conclusion

Grouping and outlining makes it easier to navigate your reports and sheets. These features are especially helpful if you have other users who will be accessing them.

Here are the keyboard shortcuts again. These are two that I use frequently and recommend committing to memory.

Group selected rows/columns: Shift + Alt + →

Ungroup selected rows/columns: Shift + Alt + ←

Bonus: Press Shift + Space to select entire rows or Ctrl + Space to select entire columns before grouping/ungrouping to prevent the Group window from coming up first. See this post on 5 Keyboard Shortcuts for Rows and Columns in Excel to learn more.

Please leave a comment below with any questions or suggestions. Thanks!

Tag » Add Collapsible Section In Excel