3 of 5
Grouping Cells Using the Subtotal Command
Grouping is a really useful Excel feature that gives you control over how the information is displayed. You must sort before you can group. In this section we will learn how to create groups using the Subtotal command.
To Create Groups with Subtotals:
- Select any cell with information in it.
- Click the Subtotal command. The information in your spreadsheet is automatically selected and the Subtotal dialog box appears.
- Decide how you want things grouped. In this example, we will organize by Category.
- Select a function. In this example, we will leave the SUM function selected.
- Select the column you want the Subtotal to appear. In this example, Total Cost is selected by default.
- Click OK. The selected cells are organized into groups with subtotals.
To Collapse or Display the Group:
- Click the black minus sign, which is the hide detail icon, to collapse the group.
- Click the black plus sign, which is the show detail icon, to expand the group.
- Use the Show Details and Hide Details commands in the Outline group to collapse and display the group, as well.
To Ungroup Select Cells:
- Select the cells you want to remove from the group.
- Click the Ungroup command.
- Select Ungroup from the list. A dialog box will appear.
- Click OK.
To Ungroup the Entire Worksheet:
- Select all the cells with grouping.
- Click Clear Outline from the menu.