In my last tutorial I showed you how to insert a Subtotal using the Subtotal tool.
If you’ve read that tutorial you will have seen how Excel can also conveniently Group and Outline your data so you can easily group and ungroup the rows to see varying levels of detail.
Thankfully you can insert these handy groups without having to insert subtotals. You will find Group and Ungroup on the Data tab in the Outline group right beside the Subtotal tool.
How to Insert a Group and Outline
1. Select the rows or columns you want to group together.
2. Click on the Group button.
3. You’re done!
You should now see the outline symbols and the and buttons.
You can either click on the + and – buttons to hide or unhide the rows in the group, or you can click the outline symbols.
You can add up to 8 levels to your outline by grouping rows within an existing group. The more levels of groups the more outline symbols you will have.
In this example we’ve looked at grouping rows, but you can also group columns in the same way.
How to Insert an Auto Outline
The Auto Outline works by identifying summary rows (rows that have formulas calculating a subtotal) in your data immediately below or above each group of detailed rows or columns. I don't see much point in using this feature for rows as you may as well use the Subtotal tool and have it do the whole job for you.
However, if you've got columns that you want grouped then Auto Outline is the tool to use as Subtotal only works on data laid out in a columnar format. i.e. Data with column headers with your data underneath.
How Remove a Group (Ungroup)
1. Select the rows or columns you want to ungroup.
2. Go to the Data tab and click on Ungroup in the Outline group.
Alternatively if you want to remove all groups go to the Data tab and click on down arrow on the Ungroup button and select Clear Outline.
Cool Tricks You Can Do With Groups
Copy the Outlined Data Only
1. Group your data to show the level of detail you want to copy.
2. Select the range of cells you want to copy.
3. CTRL+G to open the Go To window.
4. Select Special.
5. Click the Visible Cells Only radio button and click OK.
6. Now you can copy and paste.
Create a Chart from the Summary Levels Only
1. Group your data to show the level of detail you want to chart.
2. Insert Chart. (if you don’t know how to insert a chart sign up for our free training)
Now when you expand or contract your data your chart will dynamically update to match the level of detail displayed in your data.
Hide the Outline Symbols
You might want to send the workbook to someone as a report and you don’t want them to see the detailed data.
You can easily hide the Outline Symbols so they can’t use them.
1. Click the Office Button, click Excel Options, in the Advanced category under Display Options for this worksheet section, un-tick Show outline symbols if an outline is applied.
Use Outlines Instead of Hiding Rows and Columns
I often find when I hide rows or columns that I’m forever unhiding and hiding them again.
If this happens I prefer to use Groups as I can easily expand and contract my columns or rows.
Ok, so it’s only 2 less clicks but in Excel it’s light years….alright, slight exaggeration, but if you’re like me every click I can save is worth it.