18.11.2014 Views

Microsoft Office

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Analyzing Data with Pivot Tables 35<br />

Grouping Pivot Table Items<br />

One of the most useful features of a pivot table is the ability to combine items into groups. You can group<br />

items that appear as Row Labels or Column Labels. Excel offers two ways to group items:<br />

n<br />

n<br />

Manually: After creating the pivot table, select the items to be grouped and then choose<br />

PivotTable Tools ➪ Options ➪ Group ➪ Group Selection. Or, you can right-click and choose<br />

Group from the shortcut menu.<br />

Automatically: If the items are numeric (or dates), use the Grouping dialog box to specify how<br />

you would like to group the items. Select any item in the Row Labels or Column Labels and then<br />

choose PivotTable Tools ➪ Options ➪ Group ➪ Group Selection. Or, you can right-click and<br />

choose Group from the shortcut menu. In either case, Excel displays its Grouping dialog box.<br />

A manual grouping example<br />

Figure 35.3 shows the pivot table example from the previous sections, with two groups created from the<br />

Row Labels. To create the first group, I held the Ctrl key while I selected Arizona, California, and<br />

Washington. Then I right-clicked and chose Group from the shortcut menu. I repeated the operation to create<br />

the second group. Then I replaced the default group names (Group 1 and Group 2) with more meaningful<br />

names (Eastern Region and Western Region).<br />

FIGURE 35.3<br />

A pivot table with two groups and subtotals for the groups.<br />

You can create any number of groups and even create groups of groups.<br />

Viewing grouped data<br />

Excel provides a number of options for displaying a pivot table, and you may want to experiment with these<br />

options when you use groups. These commands are on the PivotTable Tools ➪ Design tab of the Ribbon.<br />

There are no rules for these options. The key is to try a few and see which makes your pivot table look the<br />

best. In addition, try various PivotTable Styles, with options for banded rows or banded columns. Often, the<br />

style that you choose can greatly enhance readability.<br />

Figure 35.4 shows pivot tables using various options for displaying subtotals, grand totals, and styles.<br />

611

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!