Pivot Table Tutorial Part 4 - Advanced Pivot Table

This page shows you how to create an advanced pivot table in Excel 2010 (or Excel 2007). If you have an earlier version of Excel, go to the page on how to create an advanced pivot table in Excel 2003.

For the example pivot table, we will use an example spreadsheet of company sales figures obtained during the first quarter of 2013. This spreadsheet, which was introduced in Part 1 of this tutorial, is repeated below:

  A B C D E
1 Date Invoice Ref Amount Sales Rep. Region
2 01/01/2013 2013-0001 $819 Barnes North
3 01/01/2013 2013-0002 $456 Brown South
4 01/01/2013 2013-0003 $538 Jones South
5 01/01/2013 2013-0004 $1,009 Barnes North
6 02/01/2013 2013-0005 $486 Jones South
7 02/01/2013 2013-0006 $948 Smith North
8 02/01/2013 2013-0007 $740 Barnes North
9 03/01/2013 2013-0008 $543 Smith North
10 03/01/2013 2013-0009 $820 Brown South
11 .

For this advanced pivot table example we will create a pivot table that shows the total sales for each month of the year, broken down by sales region and sales rep. The process for creating this Pivot Table is described below. Note that the initial steps are the same as for the basic pivot table in part 2 of this tutorial.


Select any cell within the data range or select the entire data range to be used in your Pivot Table.

Note: If you select a single cell in the data range, Excel will automatically identify, and select the whole data range for your Pivot Table. In order for Excel to successfully do this, the following must be satisfied:

-   Each column in the data range has a unique header


-   The data does not contain any blank rows


Click on the Pivot Table button, which is generally (in Excel versions 2010 or 2007) located on the left, within the 'Insert' tab.

Excel 2010 Pivot Table Select Button

You will be presented with the window entitled 'Create PivotTable' (shown on the right).

Make sure that the selected range is the range that you want to use for your Pivot Table.

There is also an option asking where you want the Pivot Table to be placed. If you are not sure, select the option 'New worksheet'

Click OK

Excel 2010 Create Pivot Table Window

You will now be presented with an empty Pivot Table, and a 'Pivot Table Field List', which contains the data fields for your Pivot Table. Note that these are the headers from your data spreadsheet.

We want the Pivot Table to show the sums of the sales figures for each month, broken down by region and sales rep.

Therefore, from the 'Pivot Table Field List':

  • Drag the 'Date' field into the area marked 'Row Labels'
  • Drag the 'Amount' field into the area marked 'Σ Values'
  • Drag the 'Region' field into the area marked 'Row Labels'
  • Drag the 'Sales Rep.' field into the area marked 'Row Labels'
Excel Advanced Pivot Table Field List

The resulting Pivot Table (shown on the right) will be populated with the daily sales totals for each sales region and each sales rep.

However, we want to group the dates by month. To do this:

  • Right click on any of the dates in the left hand column of the Pivot Table
  • Select the option Group...
  • A window will pop up. Select the option Months
    (note that you can also group dates and times by other time periods, such as quarters, days, hours, etc)
  • Click OK

The resulting Pivot Table is shown below:

Excel Advanced Pivot Table

As required, the final pivot table shows the total monthly sales, broken down by sales region and sales rep.

The Pivot Table might be improved visually, by formatting. For example, if columns B - G are formatted as currencies, this will make the Pivot Table easier to read.

Excel Advanced Pivot Table, Grouped by Month

Pivot Table Report Filter

The Pivot Table report filter allows you to view the data for a single value in one of your data fields. For example, in the pivot table above, you could view just the data for the North sales region or just the data for the South sales region. This is illustrated below.

In order to view just the data for the 'North' sales region, return to the 'Pivot Table Field List', and drag the 'Region' field header into the Report Filter area, as shown on the right.

Excel Pivot Table Report Filter

You will see that the 'Region' field is now located in the page drop area, at the top left of the Pivot Table. Use the drop-down list for this field to select the Region 'North'. The resulting Pivot Table, which shows just the sales for the North region, is shown on the right.

You can also quickly view just the sales for the South region by selecting 'South' from the drop down menu.

Excel Advanced Pivot Table with report filter
Go To Excel Pivot Table Tutorial Part 5 - How to Sort a Pivot Table in Excel

Return to the Excel Pivot Table Tutorial Page

Valid XHTML 1.0 Transitional Valid CSS!
Disclaimer   Privacy Policy
Copyright © 2008-2015 ExcelFunctions.net