Excel 2013: Pivot Tables
Excel 2013: Pivot Tables
Learn how to set up your data in Excel in a format that you can use for a pivot table.
Create a pivot table with that data
Filter pivot table reports
Change the summary function used in the pivot table
Format a pivot table and change pivot table options.
Change the pivot table report to reflect different views on the same data.
Create a PivotChart with your pivot table
Figure 1
A PivotTable empty placeholder will appear on the left and the PivotTable Field List task pane will appear on the
right. (Figure 2)
PivotTable placeholder
PivotTable Field
List task pane
Figure 2
The column headings from your data table should be listed in the task pane on the right:
1. In the PivotTable Field List task pane, drag the Product field from the top section to the Rows area at the bottom.
(Figure 3)
Figure 3
2. Drag the Country field to the Columns area. The countries will appear across the top of the PivotTable, in a single
row. (Figure 4)
3. Drag the Amount field to the Values area at the bottom.
The totals appear at the intersection of the row and column labels on the PivotTable. (Figure 5)
Figure 4
Figure 5
Figure 6
5
Figure 7
The table will change to show only fruit. (Figure 8)
Figure 8
Try changing the display to only vegetables, then change it back to All.
Figure 9
Change the Table Design
1. On the PivotTable Tools Design Tab, click the drop-down arrow to see all the available styles. (Figure 10)
Figure 10
2. Choose fifth style in the third row, Pivot Style Light 18. (Figure 11)
Other formatting options include banded rows and banded columns
Figure 11
Figure 12
8
Figure 13
2. Date now appears as another filter at the top of the chart.
3. Click on the drop-down arrow by Category and choose Fruit, then click on the drop-down arrow by Date and
select 1/8/2012 from the list to display only fruit sold on that date.
4. Change the Date filter back to All to display all the data.
Click the drop-down arrow for Sum of Amount in the Values panel (Figure
Choose Value Field Settings
Figure 14
In the window that appears you have the following choices: (Figure 15)
1. Summarize Values By tab: Change from the default Sum to other calculations such as Count, Average, Max,
Min, etc.
2. Show Values As Tab: Change from No Calculation to percentages and other options.
3. Number Format Change the number format for the Value field
Figure15
Figure 16
10
Add a field to the pivot table and change its summary function
For this exercise we want to know the number of orders for a particular country or product. We need a count
instead of a sum of the order numbers
Figure 17
3. Choose Count under the Summarize Values By
4. . Change the Custom Name to Number of Orders tab
(Figure 18)
Figure 18
11
Your pivot table should now look like the excerpt below (Figure 20).
Figure 19
Exercise: Create a calculated field for a 7% sales tax on the sales amount..
1. With your pivot table open, click the Analyze Tab under PivotTableTools on the Ribbon.
2. Click the Field, Items, & Sets button and choose Calculated Field (Figure 20)
Figure 20
12
Figure 21
5. Type in *.07, the complete formula should read =Amount*.07
Figure 22
6. Click OK. Tax should now appear in the PivotTable Field List
13
Figure 23
Rearrange the view
1. Drag Product from the Columns panel to Rows, placing Product below Country. (Figure 24)
2. The table pivots to show Products listed below each country. (Figure 24)
Figure 24
14
3. Rearrange again by dragging Country below Product in the Row Labels panel.
4. The table pivots to show the countries listed below each product. (Figure 25)
Figure 25
15
To add a slicer:
1. With your pivot table selected, click the Analyze tab under PivotTable Tools on the Ribbon and click Insert
Slicer. (Figure 26)
Figure 26
2. Check the boxes next to Product and Category. (Figure 33) and click OK.
Figure 27
3. Two slicers are inserted into the pivot table. You can click on the buttons to add filters rather than use dropdowns. Visually, it is easier to see which filters are in use.
Figure 28
16
Figure 28
3. Choose the first Column chart style - Clustered Column. (Figure 29) and click OK.
Figure 29
4. Right click on the edge of the chart, choose Move Chart and move the chart to a new sheet. Name the chart Pivot
Chart (Figure 30). OR click in the chart, choose the Design tab under PivotChart Tools on the Ribbon and click the
Move Chart button.
Figure30
17
5. Just like the pivot table, use the PivotTable Field List to add or delete field and filter the results. (Figure 31)
Figure 31
Try dragging Product below Country in the Axis Fields panel and clicking to remove the check by Tax in the Field List.
CG 11/17/2016
18