The Working Data Logo - specialists in high quality, affordable
				bespoke business software and bespoke databases
 
Image of a keyboard when using a database

How to analyse sales using pivot tables

Pivot Tables offer a fast and powerful method for compiling simple data into meaningful graphs. You can follow the example below using your own data. Alternatively, the sample data included in this example is available as a free download.

Sales Analysis using Pivot Tables

At the start of a new year, it is useful to examine last year's sales figures. This gives us a baseline against which to measure this year's performance.

Pivot Tables are Excel's in-built tool for quickly compiling standard data into meaningful data analysis. Spreadsheet Data 1 shows some sample data for the first three months of 2009.

Spreadsheet Data 1

Some sample data

First, highlight the table of data that we want to analyse, as in Spreadsheet Data 2.

Spreadsheet Data 2

Table of sample data highlighted

From the DATA menu we now select "PivotTable and PivotChart Report.." which brings up the "PivotTable and PivotChart Wizard - Step 1 of 3", as in Spreadsheet Data 3.

Spreadsheet Data 3

Step 1 of 3 of the PivotTable Wizard

We click "Next" and this brings up "Step 2 of 3". As we have already highlighted the data we want to use, we can click "Next".

Spreadsheet Data 4

Step 2 of 3 of the PivotTable wizard

This brings up "Step 3 of 3", as in Spreadsheet Data 5. We are asked where we want the PivotTable to be placed. Here, I selected "New Worksheet", then click on Finish.

Spreadsheet Data 5

Step 3 of 3 of the PivotTable wizard

This brings up the PivotTable in a new worksheet, as in Spreadsheet Data 6. The areas with a blue border are the active areas of the PivotTable. We see the PivotTable Field List which lists the columns of data we highlighted at the beginning. The third element is the PivotTable menu.

Spreadsheet Data 6

PivotTable - Before selecting the data

In this example I'm going to show you how to summarise the your sales by month, and by customer. To add data to the PivotTable we click and drag from the Field List into the relevant section. For this example, I first click and drag the Date element into the "Drop Row Fields Here" section, as in Spreadsheet Data 7.

Spreadsheet Data 7

PivotTable - Selecting the Data for the Rows

This puts in the order date for each sales order in the original table of data, but we want to group these by month. To do this, right-click on "Date", then select "Group and Show Detail", then "Group ", as in Spreadsheet Data 8.

Spreadsheet Data 8

PivotTable - Grouping the Row data

This brings up the Grouping dialog box, as in Spreadsheet Data 9. Select "Months" and click OK.

Spreadsheet Data 9

PivotTable - Selecting how the data will be grouped

This groups all the order dates by month, as in Spreadsheet Data 10.

Spreadsheet Data 10

PivotTable - The row data has been grouped by month

We now add in the other data elements. Click and drag "Customer" to the "Drop Column Fields Here" section, as in Spreadsheet Data 11.

Spreadsheet Data 11

PivotTable - Adding the column field, Customer.

Finally, we click-and-drag the "Total" field to the "Drop Data Items Here" section to get Spreadsheet Data 12.

Spreadsheet Data 12

PivotTable - Adding the data field, Total.

Hopefully this short example will have demonstrated the usefulness of PivotTables. You can try lots of different combinations of parameters until you get what you want. To remove a parameter, click-and-drag it back to the Field List. The sample data and PivotTable are available as a free download. Remember to always virus scan any file you download from the internet.

..back to top

How To Use Excel in Business

Sign-up for our Quarterly Newsletter.
Free downloads of spreadsheet examples with spreadsheet tips and excel formulas.

Subscribe to our Newsletter

First Name

Surname

Enter Email Address

Confirm Email Address

Preferred format:

Text HTML

   

We never share your details