7.10 Pivot tables

Just wait until you can see what you can do with a pivot table! No more tedious summarising of endless worksheets and data, the pivot table does it all for you.

You can go from this list of data to this organised pivot table and pivot chart in seconds.

P0749

A pivot table is most useful when data within some of the columns is out of a few values (e.g. the product is one of three machines, the salesperson is either Owens, Phillips or Richards). The pivot table can be summarised easily around these distinctive categories.

Pivot tables work best with lists of data where there is a clear list of records with obvious headings as in the list above. The headings of each column are used to organise the data into a summary.

Spreadsheets exercise 16

Create a pivot table

Skills practised
  • Open a file
  • Create a pivot table
  • Modify a pivot table
  • Save file

Now we will create our own pivot table.

  1. Open the Pivot workbook downloaded from the above link.
  2. Select any cell in the list.
  3. Click on the tab INSERT then the PIVOT TABLE button in the ribbon. For Google Sheets, click on DATA then PIVOT TABLE and then skip to step 7.
    P0751
  4. Check that the whole list is selected and the correct cell range is in the Table/Range box.
  5. Check that NEW WORKSHEET is selected so the new pivot table is put into a separate worksheet.
  6. Click on OK.
    TS0752
    The new worksheet will be displayed and the pivot table task pane is opened as shown below. Notice that the task pane lists the fields from the original table. The lower part of the task pane is used to organise the structure of the pivot table. The pivot table task pane is only displayed while the active cell is within pivot table. The order you add fields to the structure determines the layout of the pivot table.
  7. Click on the field BRAND, then MONTH – they will automatically be put in the ROW LABELS box.
    For Google Sheets, click on ADD FIELD for ROWS and select BRAND only.
  8. Click on the field UNITS – it will automatically be put into SUM VALUES.
    For Google Sheets, click on ADD FIELD for VALUES and select UNITS.
  9. Drag the MONTH field buttons over to the COLUMN LABELS box in the Task pane.
    For Google Sheets, click on ADD FIELD for COLUMNS and select MONTH. Your pivot table should appear as follows summarising the number of units sold for each product in each month.
    P0753
Video 7.3 Pivot tables 1 (01:10)

Spreadsheets exercise 17

Create a pivot table

Skills practised
  • Open a file
  • Create a pivot table
  • Modify a pivot table
  • Save file

Now to create another pivot table that summarises the monthly dollar value of sales by each salesperson for each brand.

  1. Select the Pivot data worksheet to move back to the list.
  2. Click on any cell in the list.
  3. Click on the tab INSERT then the PIVOT TABLE button in the ribbon.
    For Google Sheets, click on DATA then PIVOT TABLE and skip to step 7.
  4. Check that the whole list is selected and the correct cell range is in the Table/Range box.
  5. Check that NEW WORKSHEET is selected so the new pivot table is put into a separate worksheet.
  6. Click on OK.
  7. Click on the fields in this order: SALESPERSON, MONTH, BRAND – they will automatically be put in the ROW LABELS box.
    For Google Sheets, click on ADD FIELD for ROWS and select SALESPERSON and MONTH only.
  8. Click on the field SALES – it will automatically be put into SUM VALUES. For Google Sheets, click on ADD FIELD for VALUES and select SALES.
  9. Drag the BRAND field over to the COLUMN LABELS box.
    For Google Sheets, click on ADD FIELD for COLUMNS and select BRAND. Your table should appear as below.
    P0754
  10. Drag the label for MONTH to the COLUMN LABELS box.
  11. Drag the label for BRAND to appear before SALESPERSON. Now the data will be summarised by brand, then by salesperson for each month. Your pivot table should appear as follows.
    P0755
  12. Save the file.
Video 7.4 Pivot tables 2 (01:04)
×
P0749
×
A0718a.png