The following guide shows you how to create an advanced Pivot Table in Excel 2003. In this example, we use the the following spreadsheet, which stores sales figures for the first quarter of 2010:
|1||Date||Invoice Ref||Amount||Sales Rep.||Region|
For this advanced pivot table example we will create a pivot table that shows the total sales amounts for each of the sales regions and for each sales rep. during each month of the year. The procedure for creating this advanced pivot table in Excel 2003, is shown in the following steps. Note that the first few steps are the same as for the basic pivot table, described in part 2 of this tutorial.
Click any single cell within the data or select the entire range of data that you want to use in your Pivot Table.
Note: If you click any single cell within the data range, Excel will select the whole of your current data range as the range to be used in your Pivot Table. This requires that:
From the drop-down menu at the top of your spreadsheet, select Data → PivotTable and PivotChart Report...
You will be presented with the window entitled 'PivotTable and PivotChart Wizard - Step 1 of 3' (shown aboveon the right).
Make sure the optionsand
are selected and click Next.
You will now be presented with the window entitled 'PivotTable and PivotChart Wizard - Step 2 of 3' (see aboveright).
Make sure that the selected range is the range that you want to use for your Pivot Table and click Next.
The final window is entitled 'PivotTable and PivotChart Wizard - Step 3 of 3' (see aboveright).
There is an option asking if you want the Pivot Table to appear on a new worksheet or in an existing worksheet. This allows you to place the pivot table onto a specified worksheet if required. If you are not sure, select the option 'New worksheet'.
Excel will now present you with an empty Pivot Table, and a 'Pivot Table Field List'. Note that the data fields within the 'Field List' are the headers from your initial data spreadsheet.
As we want to break down the sales figures per month, we will use the 'Date' field as the row field (we will group this by month later). Therefore, we need to drag the 'Date' field into the area of the Pivot Table marked 'Drop Row Fields Here'.
Drag the 'Amount' field into the area of the Pivot Table marked 'Drop Data Items Here'. This provides you with the sum of the sales amounts, in the middle of the Pivot Table.
We also want to break down our data by sales region and sales rep. Drag the 'Sales Rep.' and then the 'Region' field into the area of the Pivot Table marked 'Drop Column Fields Here'.
You will be presented with the above pivot table on the right, which shows the total sales amounts for each sales rep., and each sales region, on each date.
However, we want to group the dates by month. To do this:
The resulting Pivot Table is shown below:
As required, the final pivot table shows the total sales for each of the sales regions and for each sales rep. during each month of the year.
The Pivot Table might be improved visually, by formatting. For example, if you format columns B - G in a currency format, this will make the values easier to read. This has been done in the spreadsheet used in the following section.
The Pivot Table page field allows you to view the data for a single value or a specified sub-set of values in one or more of your data fields. For example, in the example 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, in the above example, simply drag the 'Region' field header into the page drop area, as shown below.
The resulting Pivot Table, which displays just the sales for the North region, is shown aboveon the right.