Documente Academic
Documente Profesional
Documente Cultură
5
Microsoft Excel
2010
How PivotTables
Reveal
Data Secrets
For
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Table of Contents
Creating PivotTables
Creating PivotTables.......................................... 2
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
CHAPTER
Microsoft
Excel 2010
How PivotTables
Reveal
Data Secrets
For
Jerry Maletsky
Dash Designs
Training And Consulting
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 1
CHAPTER
1 Creating PivotTables
Reference Worksheet: Orders
CREATING PIVOTTABLES
Column Field
d ld
el ie
PivotTable Filled in Screen
Fi F
ow
ue
R
al
V
2 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Creating PivotTables
CHAPTER
CREATING PIVOTTABLES
A Row field is used as the labels for each row. Additional row fields
placed in the PivotTable are nested (grouped) within the primary row field
(the left-most field)
A Column field is used as the label for each column. Additional column
fields placed in the PivotTable are nested (grouped) within the primary
column field (the top-most field)
A Report Filter field can be used to filter the PivotTable for a particular
item in that Page field.
After you create a PivotTable report, you can customize it to focus on the
information you want: change the layout, change the format, or drill
down to display more detailed data.
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 3
Creating PivotTables
CHAPTER
1
CREATING PIVOTTABLES
4 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Creating PivotTables
CHAPTER
1
CREATING PIVOTTABLES
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 5
Creating PivotTables
CHAPTER
1
CREATING PIVOTTABLES
Create a PivotTable
Steps:
Click anywhere in contiguous area that makes up the list
Click Insert tab: PivotTable button
In the Create PivotTable dialog box , confirm the source for the Piv-
otTable (Table/Range)
If necessary, select Use an external data source option and choose the
source list file name
Select whether the PivotTable should be placed on a New Worksheet
(recommended) or an Existing Worksheet)
Click OK
6 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Creating PivotTables
CHAPTER
1
CREATING PIVOTTABLES
Note: Above Table/Range of source data is based on records added within the
contiguous range of records on that worksheet. Therefore, it is important to add
future new records by inserting new rows within the contiguous range of the list (see
previous information on Page 4).
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 7
Creating PivotTables
CHAPTER
1
CREATING PIVOTTABLES
Just drag the fields from the PivotTable Field List into the area
of the PivotTable you want to populate.
8 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Creating PivotTables
CHAPTER
1
CREATING PIVOTTABLES
Populated PivotTable
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 9
Creating PivotTables
CHAPTER
1
PIVOTTABLE COMMAND RIBBONS
10 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Creating PivotTables
CHAPTER
1
REARRANGING PIVOTTABLE FIELDS
PivotTables are extremely flexible. After placing the initial fields to
be viewed in the PivotTable, they can be resituated to another
position in that PivotTable or removed from the PivotTable.
Additional fields can also be added to a Row, Column, Data, or Page
field area.
Steps:
Re-Arranging PivotTable Fields
Drag field to another field area in that PivotTable
(i.e. Row to Column area)
Removing PivotTable Fields
Drag field out of the PivotTable area back into the Field List
Adding Additional PivotTable Fields
Click on the PivotTable toolbar Show Field List button
(if necessary)
Select field and drag into the preferred PivotTable area
(i.e. Row, Column, Value, or Report Filter area)
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 11
Creating PivotTables
CHAPTER
1
UPDATING PIVOTTABLES
Steps:
Click into the PivotTable
Click the Refresh button on the PivotTable Tools: Options Tab
Note: The PivotTable tools that contain the Options and Design tabs are
only visible when the user has activated the PivotTable by clicking into
it.
Remember! New data added to the bottom of the list will not be included in the
PivotTable. To avoid having to reset the original cell range the PivotTable is
based on, insert a row within the original cell range to add the new record(s).
You can then sort the list to re-order the data.
Not Included In PivotTable
12 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Creating PivotTables
CHAPTER
PIVOTTABLE OPTIONS BUTTON
The PivotTable Options dialog box allows the user to set controls on
the PivotTable. These include setting refresh options, turning off
Grand Totals, Preserving formatting, and how to display empty cells
and error values.
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 13
Creating PivotTables
CHAPTER
1
UPDATING THE PIVOTTABLE TO INCLUDE NEW RECORDS
As discussed previously, PivotTables do not update automatically after data
changes in the source list. The Refresh Data command on the Options Tab of
the PivotTable Tools group will update the table to reflect current data from the
original source range. However, if new records are added to the end of the
data source list, the PivotTable will not include them because they fall outside
the original source list range. For example, if the source list is originally a
range from A5:M600 and new records are added to the next 175 rows making
the list range A5:M775, the PivotTable must be adjusted to include these new
records or fields. The Change Data Source command on the PivotTable
Options tab will allow you to update the source list range.
Steps:
Click anywhere in the PivotTable
Click the PivotTable Options tab
Click Change Data Source button
Update the new source list range by changing the ending cell
address in the dialog box or select the new range with your
mouse
Click OK
14 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Creating PivotTables
CHAPTER
UPDATING THE PIVOTTABLE TO INCLUDE NEW RECORDS
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 15
CHAPTER
2 Analyzing Data With PivotTables
By default, Value Fields summarize their data using the Sum function. Excel
allows Value Fields to be summarized with a group of other functions such as
Average, Count, Min, Max, and StdDev.
The Field Settings dialog box contains the function options. In addition to the
function, this dialog box allows the user to rename the field, format field values,
and change the relationship of summarized data to the other data in that field.
Steps:
Click the field name of the Value field (i.e. Sum of Quantity Sold)
Click the Options Tab on the PivotTable Tools group
Click Field Settings command
Value Field
Settings Dialog
Box
16 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Analyzing Data With PivotTables
CHAPTER
2
CHANGING THE FUNCTIONALITY OF A VALUE FIELD
Changing The Functionality of Value FieldBefore
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 17
Analyzing Data With PivotTables
CHAPTER
2
CHANGING THE RELATIONSHIP OF SUMMARIZED DATA
18 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Analyzing Data With PivotTables
CHAPTER
2
CHANGING THE RELATIONSHIP OF SUMMARIZED DATA
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 19
Analyzing Data With PivotTables
CHAPTER
2
CHANGING THE RELATIONSHIP OF SUMMARIZED DATA
Function Result
Difference From Displays all the data in the value area as the
difference from the value for the specified Base
field and Base item. The base field and base
item provide the data used in the custom
calculation.
% Of Displays all the data in the value area as a
percentage of the value for the specified Base
field and Base item. The base field and base
item provide the data used in the custom
calculation.
% Difference Displays all the data in the value area as the
From difference from the value for the specified Base
field and Base item, but displays the difference
as a percentage of the base data. The base field
and base item provide the data used in the
custom calculation.
This information in the above table is reprinted from Microsoft Excel Help System.
20 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Analyzing Data With PivotTables
CHAPTER
2
CHANGING THE RELATIONSHIP OF SUMMARIZED DATA
Function Result
This information in the above table is reprinted from Microsoft Excel Help System.
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 21
Analyzing Data With PivotTables
CHAPTER
2
FILTERING DATA IN PIVOTTABLES
The PivotTable displays all items in the field that is placed in the
table. The data in the PivotTable can be filtered to display only the
required items in that field. Data can be filtered by hiding items in
a row or column field. In addition, data can be filtered by placing a
field in the Report Filter Field area and selecting specific items in
that field to display. All other items in that Page Field will be
hidden.
Steps:
Filtering Data In A Row/Column Field
Click on the list button of the Row or Column Labels field
Uncheck any field to be hidden
Click OK
Redisplaying Data In A Row/Column Field
Click on the list button of the Row or Column Labels field
Check (Show All)
Click OK
List Button
22 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Analyzing Data With PivotTables
CHAPTER
2
FILTERING DATA IN PIVOTTABLES
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 23
Analyzing Data With PivotTables
CHAPTER
2
FILTERING DATA IN PIVOTTABLES WITH REPORT FILTER FIELDS
Report Filter fields allow you to filter the entire PivotTable report to
display data for a single item or all the items. More than one field
can be displayed as a Report Filter field.
Steps:
To Add a Page Field
Drag the field from the field list to the Report Filter Field Area
of the PivotTable
To Filter a PivotTable with a Report Filter Field
Open the Filter button in the Report Filter Field
Select an entry to act as criteria
Report Filter
Field List
24 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Analyzing Data With PivotTables
CHAPTER
2
FILTERING DATA IN PIVOTTABLES WITH REPORT FILTER FIELDS
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 25
Analyzing Data With PivotTables
CHAPTER
2
SORTING DATA IN PIVOTTABLES
Data in a PivotTable displays in the order that data appears in the
source flat-file list. However, data can be sorted automatically or
manually at any time after the PivotTable is created.
Steps:
To Automatically Sort Data In A Row/Column Field
Click on an item in the required row or column field
Click on the Options tab in the PivotTable Tools group
Click Sort Ascending or Sort Descending buttons
26 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Analyzing Data With PivotTables
CHAPTER
2
SORTING DATA IN PIVOTTABLES
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 27
Analyzing Data With PivotTables
CHAPTER
2
CREATING CUSTOM GROUPS IN PIVOTTABLES
Steps:
To Group Selected Items In A Row/Column Field
If necessary, sort the items in the field in the preferred order
Select the items needed to create the first group
Click the Options Tab in the PivotTable Tools group
Click Group Selection button
Repeat the above 3 steps as needed
28 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Analyzing Data With PivotTables
CHAPTER
2
CREATING CUSTOM GROUPS IN PIVOTTABLES
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 29
Analyzing Data With PivotTables
CHAPTER
2
RENAMING GROUPS IN PIVOTTABLES
Steps:
To Rename Groups In A Row/Column Field
Click on the name of the group (i.e. Group1)
Type a new name
30 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Analyzing Data With PivotTables
CHAPTER
2
RENAMING GROUPS IN PIVOTTABLES
Naming Groups
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 31
Analyzing Data With PivotTables
CHAPTER
2
DRILLING DOWN ON DATA IN PIVOTTABLES
Groups of data can be collapsed to show just the totals for that
group and then expanded to display the detail data again.
Steps:
To Drill Down In A Row/Column Field
Double-Click on the name of the group (i.e. Division 1)
-- OR --
Click on the name of the group
Click the Collapse Entire Field button on the Options tab
under the PivotTable Tools group
The group data will collapse to show summary data for group
32 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Analyzing Data With PivotTables
CHAPTER
2
DRILLING DOWN ON DATA IN PIVOTTABLES
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 33
Analyzing Data With PivotTables
CHAPTER
2
BREAKING DOWN VALUE FIELDS
Steps:
Click into the PivotTable
Double-Click on a Value Field item
(A new worksheet will appear with the detail records that
make up that data field value)
Only a Value field item (i.e. Revenue) will display records from
which that value came from in a new worksheet.
34 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Analyzing Data With PivotTables
CHAPTER
BREAKING DOWN VALUE FIELDS
Double-Click
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 35
Analyzing Data With PivotTables
CHAPTER
2
BUILDING PIVOTTABLES BASED FROM REPORT FILTER FIELDS
You can build new PivotTable reports based on Report Filter Fields.
These new reports create new worksheets containing PivotTables
displaying data from each of the items in that Report Filter Field.
Steps:
Click into the PivotTable
Click the Options tab under the
PivotTables Tools group
Click the Options list button
Select Show Report Filter Pages
Select the preferred field
Click OK
Note: Choose
the preferred
page field (there
could be
several) and
click OK.
36 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Analyzing Data With PivotTables
CHAPTER
2
BUILDING PIVOTTABLES BASED FROM REPORT FILTER FIELDS
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 37
Analyzing Data With PivotTables
CHAPTER
2
CHARTING PIVOTTABLES
To Chart PivotTables
Steps:
Click into the PivotTable
Click the Options Tab under the PivotTable Tools group
Click PivotChart command
From the Chart Type box, select the preferred chart type
Edit the chart as necessary (see above notes)
38 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Analyzing Data With PivotTables
CHAPTER
CHARTING PIVOTTABLES
Category button allows you to filter the report filter field if it is placed in the Pivot Table
Sum of Quantity displays the function the value field is using
Note: The PivotChart Field buttons (see above) can be used to further
filter the data that is displayed on the chart. However, remember that any
changes to the display of the data in the chart also affects the PivotTable.
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 39
Analyzing Data With PivotTables
CHAPTER
2
USING SLICERS TO FILTER PIVOT TABLES AND CHARTS
Slicers are a new Excel 2010 tool that can be used to graphically filter a
Pivot Table and/or its Pivot Chart, much like the way Report Filter fields
are used in a Pivot Table.
The real advantage to slicers is that they are visual image buttons that
represent each item in that field and can be used to display elements of
your Pivot Table.
Steps:
Click into the PivotTable or Pivot Chart
Click the Options Tab under the PivotTable Tools group
Click Insert Slicer command
Note: In a Pivot Chart you can find this command on Analyze Tab
From the Insert Slicers box, select the field or fields you want
Click OK
Move and size the slicer pods as wanted.
To Filter Using Slicers
Click on the appropriate item in each slicer
To Un-Filter Using Slicers
Click on the Clear Filter button on the top right of filter pod
40 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Analyzing Data With PivotTables
CHAPTER
USING SLICERS TO FILTER PIVOT TABLES AND CHARTS
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 41
Analyzing Data With PivotTables
CHAPTER
2
FORMATTING PIVOTTABLES
To Automatically PivotTables
Steps:
Click into the PivotTable
Click the Design Tab under the PivotTable Tools group
Open PivotTable Styles Gallery
Choose a layout from the gallery
42 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Analyzing Data With PivotTables
CHAPTER
FORMATTING PIVOTTABLES
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 43
CHAPTER
Steps:
If items in the field to which you want to add the calculated item are grouped, un-
group them.
Select the field or an item in the field to which you want to add the calculated
item.
Click Formulas button on the Options Tab under PivotTable Tools
Select Calculated Field or Calculated Item.
In the Name box, type a name for the calculated item (or field).
In the Formula box, type the formula for the item.
To use data from an item in the formula, click the field in the Fields box, click the
item in the Items list, and then click Insert Item.
Note: You can include only items from the same field in which you are creating
the calculated item.
Click Add, and then click OK.
Note: If the items were originally grouped and you ungrouped them in step 1,
you can group them again or create new groups that include the new
calculated item, if you want.
Formulas Command on
the Options Tab under
the PivotTable Tools
group.
44 Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting
Custom PivotTable Calculations
CHAPTER
CREATE A CUSTOM CALCULATION IN A PIVOTTABLE
Excel 2010 PivotTable Secrets For The Haas School of Business, UC Berkeley - Dash Designs Consulting 45