Pivot Tables: Insert A Pivot Table
Pivot Tables: Insert A Pivot Table
Pivot Tables: Insert A Pivot Table
Pivot tables are one of Excel's most powerful features. A pivot table allows you to extract the
significance from a large, detailed data set.
Our data set consists of 213 records and 6 fields. Order ID, Product, Category, Amount, Date
and Country.
The following dialog box appears. Excel automatically selects the data for you. The default
location for a new pivot table is New Worksheet.
3. Click OK.
Drag fields
The PivotTable Fields pane appears. To get the total amount exported of each product, drag
the following fields to the different areas.
1. Product field to the Rows area.
Result.
Filter
Because we added the Country field to the Filters area, we can filter this pivot table by
Country. For example, which products do we export the most to France?
1. Click the filter drop-down and select France.
Note: you can use the standard filter (triangle next to Row Labels) to only show the amounts
of specific products.
4. Click OK.
Group Products
The Product field contains 7 items. Apple, Banana, Beans, Broccoli, Carrots, Mango and
Orange.
Note: to change the name of a group (Group1 or Group2), select the name, and edit the
name in the formula bar. To ungroup, select the group, right click and click on Ungroup.
Conclusion: Apple and Banana (Group1) have a higher total than all the other products
(Group2) together.
Group Dates
To create the pivot table below, instead of the Product field, add the Date field to the Rows
area. The Date field contains many items. 6-Jan, 7-Jan, 8-Jan, 10-Jan, 11-Jan, etc.
To group these dates by quarters, execute the following steps.
Note: also see the options to group by seconds, minutes, hours, etc.
Result:
Pivot table:
3. Next, click any cell inside the Sum of Amount2 column.
Result:
Multiple Report Filter Fields
First, insert a pivot table. Next, drag the following fields to the different areas.
1. Order ID to the Rows area.
4. Next, select United Kingdom from the first filter drop-down and Broccoli from the second
filter drop-down.
The pivot table shows all the 'Broccoli' orders to the United Kingdom.
Frequency Distribution
Did you know that you can use pivot tables to easily create a frequency distribution in Excel?
You can also use the Analysis Toolpak to create a histogram.
Remember, our data set consists of 213 records and 6 fields. Order ID, Product, Category,
Amount, Date and Country.
First, insert a pivot table. Next, drag the following fields to the different areas.
1. Amount field to the Rows area.
9. Click OK.
Result:
Result: