layout graphic
layout graphic

Newsletter January 2010

  • Spreadsheet Tips - Sales Analysis 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. Fig 1 shows some sample data for the first three months of 2009.
Fig 1
Some sample data
First, highlight the table of data that we want to analyse, as in Fig 2.
Fig 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 Fig 3.
Fig 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".
Fig 4
Step 2 of 3 of the PivotTable wizard
This brings up "Step 3 of 3", as in Fig 5. We are asked where we want the PivotTable to be placed. Here, I selected "New Worksheet", then click on Finish.
Fig 5
Step 3 of 3 of the PivotTable wizard
This brings up the PivotTable in a new worksheet, as in Fig 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.
Fig 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 Fig 7.
Fig 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 Fig 8.
Fig 8
PivotTable - Grouping the Row data
This brings up the Grouping dialog box, as in Fig 9. Select "Months" and click OK.
Fig 9
PivotTable - Selecting how the data will be grouped
This groups all the order dates by month, as in Fig 10.
Fig 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 Fig 11.
Fig 11
PivotTable - Adding the column field, Customer.
Finally, we click-and-drag the "Total" field to the "Drop Data Items Here" section to get Fig 12.
Fig 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
Custom Software
Read our jargon-free guide to help you decide whether Custom Software is the solution for your business.

Newsletter Sign-up

Subscribe to our Newsletter Get free business spreadsheet tips in our newsletter

Email
Confirm your email address
Preferred format for emails:
Text HTML

Powered by PHPlist2.10.7, © tincan ltd

©2009 Working Data, White Cottage, Tysoe, Warwickshire CV35 0SG sitemap
Custom Software Development Business Spreadsheet Tips