Excel Chapter - 11
Excel Chapter - 11
Chapter - 11
Using PivotTables and Pivot Charts:
Create a PivotTable:
PivotTable is one of the best Data Analyzing tool available in excel. You can quickly
summarize your data. It is essential data your data should be standardize before using
PivotTable. Standardization means same type of data in one column. You can also use Table
as source of your PivotTable data.
Other Ways to Create a PivotTable: Select a cell in a table, click the Design tab
on the Ribbon, and click the Summarize with Pivot button in the Tools group.
2. Click the Insert tab on the Ribbon and click the PivotTable button in the Tables group.
The Create PivotTable dialog box appears and a moving dashed line appears around the
data range that Excel will use for the PivotTable.
Tip: The data range doesn’t have to be in the current workbook. Select the Use an
external data source option to select data outside the workbook.
Next decide to display the PivotTable in a new worksheet or one that already exists in the
workbook.
Tip: If selecting an Existing Worksheet, click the Collapse Dialog button and select the
worksheet and upper-left cell of the range where to put the PivotTable.
5. Click OK.
PM2 - Management Reporting – IT Office Tools (MS Excel)
The Excel window changes to display the structure for a new PivotTable, along with the
PivotTable Field List task pane. No data has been pulled into the PivotTable yet—use the
task pane to tell Excel how to lay out the PivotTable.
Tips:
Change how the PivotTable Field List task pane looks. Click the button arrow near the top
right corner of the task pane and select a layout option.
Add fields:
1. Click the check boxes next to the fields to use as data in the PivotTable.
By default, nonnumeric fields are added to the Row Labels area, numeric fields are added
to the Values area, and OLAP date and time hierarchies are added to the Column Labels
area. However, the fields can be rearranged to other areas.
Rearrange fields:
1. Click and drag fields between the areas in the task pane to reposition the PivotTable layout.
Tips:
Drag a field between the Row Labels and Column Labels boxes to change the orientation of
the PivotTable.
2. Under PivotTable Tools on the Ribbon, click the Analyze tab and click the Field
The Value Field Settings dialog box appears, displaying the “Summarize by” tab. Select
calculation options including Sum, Count, Average, or Max, among others.
3. Select the type of calculation to use to summarize the value data from the list.
4. Click OK.
The summarized value data in the PivotTable changes to using the new calculation.
Filter a PivotTable:
The Analyze and Design tabs appear under PivotTable Tools on the Ribbon.
A list sorting and filtering options appears. The bottom area of the list displays criteria by
which it can filter.
Other Ways to Select Filter Criteria: Click the Search box in the filter list and type
the criteria by which to filter. The list displays criteria that match the search.
PM2 - Management Reporting – IT Office Tools (MS Excel)
3. At the bottom of the list, click the check boxes next to the fields to filter out to uncheck
them.
Fields with checkmarks next to them will remain, while those without checkmarks will be
filtered out.
4. Click OK.
Other Ways to Filter a PivotTable: Drag a field into the Report Filter area of the
PivotTable Field List task pane. Click the field’s filter button above the PivotTable and
select what to filter by. Or, click a filter button, point to Label Filters or Values Filters,
Sort a PivotTable:
The Analyze and Design tabs appear under PivotTable Tools on the Ribbon.
Here are sort options at the top of the list, along with the filter options toward the bottom.
2. Click the Tools button at the top of the PivotTable Field List task pane and select a layout
option.
Choose to display only the fields section, only the report areas section, or both sections in
different arrangements
The Show group contains three buttons. By default, they are all shown in the PivotTable.
Field List: Show or hide the PivotTable Field List task pane.
+/- Buttons: Show or hide the +/- buttons that allow multi-level PivotTable items to
expand or collapse. Field Headers: Show or hide column and row field headers.
Tip: If the button is an orange color, the element is displayed in the PivotTable. If the
button is not orange, the element is hidden.
• Subtotals: Click to show or hide subtotals, and to specify where to show them.
PM2 - Management Reporting – IT Office Tools (MS Excel)
• Grand Totals: Click to show or hide grand totals, and to specify whether they appear for
rows, columns, or both.
• Blank Rows: insert or remove a blank line between each grouped item in the PivotTable.
To select the field, click the name of the field in the PivotTable, such as the row or column
header.
2. Under PivotTable Tools on the Ribbon, click the Analyze tab and click the Group Field
3. Specify the starting and ending dates to group and the interval to group by.
By default, the starting and ending dates are the first and last dates in the PivotTable.
4. Click OK.
Tip: To group dates by weeks, select Days in the By area of the Grouping dialog box and
enter 7 in the Number of days box.
1. Select the numeric field in the PivotTable that contains the data to group by.
2. Under PivotTable Tools on the Ribbon, click the Analyze tab and click the Group Field
button in the Group group.
3. Specify the starting and ending values to group and the interval to group by, and then click
OK.
2. Under PivotTable Tools on the Ribbon, click the Analyze tab and click the Group
The items are grouped and collapse buttons appear to collapse or expand the group of
data, if desired.
Ungroup items:
2. Under PivotTable Tools on the Ribbon, click the Analyze tab and click the Ungroup
button in the Group group.
Updating a PivotTable:
If making changes to the source data a PivotTable is based on, the PivotTable isn’t
automatically updated. Instead, manually refresh the PivotTable anytime its underlying
source data is changed. This lesson explains how to do that, as well as how to change the
source of the data the PivotTable is based on.
2. Under PivotTable Tools on the Ribbon, click the Analyze tab and click the Refresh
button in the Data group.
2. Under PivotTable Tools on the Ribbon, click the Analyze tab and click the Change Data
The Change PivotTable Data Source dialog box appears, along with the current data
source—which has a moving dotted line around it.
4. Click OK.
The PivotTable updates with the data from the new source range.
PM2 - Management Reporting – IT Office Tools (MS Excel)
Formatting a PivotTable:
Quickly format a PivotTable with Excel’s built-in styles and style options.
2. Click the Design tab and select a style in the PivotTable Styles group.
Tip: Click the More button in the PivotTable Styles group to display an expanded
PivotTable Styles gallery.
Here is a brief description of the style options to select from in the PivotTable Style
Options group:
• Row/Column Headers: Displays special formatting for the first row or column of
the PivotTable.
Tips:
Besides using the formatting options on the Design tab, format a PivotTable using general
formatting commands found on the Home tab.
PM2 - Management Reporting – IT Office Tools (MS Excel)
2. Click the Insert tab and the Ribbon, and from the Charts group, click PivotChart.
3. The Create PivotChart window appears. Under the Choose the data that you want to
analyze heading, check Select a table or range.
Tip: If you have data outside of the worksheet that you want to use, check Use an
External Data Source and choose your connection.
4. Click New Worksheet or Existing Worksheet depending on where you want your
chart inserted.
5. Click OK.
PM2 - Management Reporting – IT Office Tools (MS Excel)
Insert a Timeline:
1. Click any cell inside the PivotTable.
The timeline filter is cleared from the PivotTable, showing all the data once again.
To remove the timeline entirely…
2. Right-click the timeline.
3. Select Remove Timeline.
Using Slicers:
Slicers have been added in Excel to provide an easy way to filter PivotTable data. Slicers
label the filters applied, with details, so it’s easy to understand the data that is displayed
and filtered in the PivotTable report.
WorkingPM2
with- PivotTables
Management Reporting – IT Office Tools (MS Excel)
2. Click the Analyze tab under PivotTable Tools on the Ribbon and click the Insert Slicer
The Insert Slicers dialog box appears. All the fields in the PivotTable are listed here; decide
which fields to filter by in the PivotTable.
Keep in mind that a separate slicer is designated for each field selected.
4. Click OK.
The slicer(s) appear above the PivotTable. Move a slicer to another location on the
worksheet, and resize it as needed.
1. Click a button in a slicer. Press and hold the <Ctrl> key to select multiple buttons.
Tip: Simply click the button again to stop filtering out the selected data.
Format a slicer:
Change the appearance of a slicer to match the color scheme of the PivotTable.
Delete a slicer:
To no longer filter PivotTable data, remove the slicer
completely.
2. Click the Options tab under Slicer Tools on the Ribbon and click the Report
The Report Connections dialog box appears. Other PivotTables to share the slicer with are
listed.
PM2 - Management Reporting – IT Office Tools (MS Excel)
3. Click the check boxes of the PivotTables to make the slicer available.
4. Click OK.