Concept
PivotTables are one of the most powerful tools in Excel’s data management arsenal. Surprisingly, it is also one of the most overlooked tools. A PivotTable enables the reviewer to statistically analyze data in various flexible formats. By pivoting bits of data into place you are able to create new views of worksheet data in seconds.
Figure 1 PivotTable report example
Preparation:
To create a PivotTable you must start with a database. For Excel’s purposes a database can be defined as:
A table, where the first row contains the column headings (field names), each row contains data, and is devoid of blank rows or columns.
First, review your data and, if necessary cleanup the data. This will include deleting unnecessary blank rows. It may also include inserting blank rows between titles and summaries.
Execution
Click here to open ‘PivotTable Intro.XLS ‘ and follow below instructions.
To insert a PivotTable report
- Place cursor on one of the data values of the table.
- On the Insert tab, click PivotTable. The Create PivotTable dialog appears.
- Confirm the settings and click OK. A new sheet is displayed, and the PivotTable Field List pane appears at right.
- Drag the fields in the pane into the appropriate area at bottom.
- Row: Region, Product
- Column: Market
- Value: Quantity
To update the PivotTable
After editing the original database, you must manually update the PivotTable to reflect those editions.
- Click on one of the values in the PivotTable.
- On the Analyze tab, in the Data group, click Refresh.
Tip Double + Click on a PivotTable value to Quick query the data. Excel will copy the supporting records onto a new sheet for your review. This data is not dynamic. To prevent unintentional editing it is recommended that you delete this sheet, following your review.
Slicers
Slicers, new to version 2010, enable you to filter select records to display. In earlier versions of Excel, this is accomplished using Filters.
To Filter the PivotTable report using Slicers
- Click on one of the values in the PivotTable, to display the PivotTable Ribbon tools.
- On the Analyze tab, in the Filter group, click Insert Slicer. The Insert Slicers dialog appears.
- Check the field(s) you wish to create filters for and click OK. The Slicer pane(s) is added to the worksheet.
- Click on item(s) in the Slicer pane to display only those records.
Review
- When generating a PivotTable, the source data must be in a ‘clean’ table.
- Slicers can be used to enhance the report layout.
- Double + Click a data point to quickly query the data.