Advanced Training for Microsoft Office Excel 2003

Working with PivotTables

Creating and Using PivotTables

1To begin creating a PivotTable, in the Limited worksheet, verify that cell A1 is selected, click the Data menu, and then click PivotTable and PivotChart Report.
2On the first page of the PivotTable and PivotChart Wizard, verify that the Microsoft Office Excel list or database and PivotTable options are selected, and to move to the next page of the wizard, click Next.
3On the second page of the wizard, in the Range box, verify that the data range of $A$1:$F$101 is displayed. To accept the range and move to the final page of the wizard, click Next.
4On the final page of the wizard, verify that the New worksheet option is selected, and then to finish creating the PivotTable and close the wizard, click Finish.
5To rename the new worksheet, double-click the Sheet1 sheet tab.
6To name the worksheet, for the purposes of this exercise, press SPACEBAR to have the name typed for you, and then press ENTER.
7To add the Month field to the PivotTable, in the PivotTable Field List dialog box, click Month and drag it to the Drop Row Fields Here box, as indicated.
8To add the Week field to the PivotTable, in the PivotTable Field List dialog box, click Week and drag it to the right of Month, as indicated.
9To add the Day field to the PivotTable, in the PivotTable Field List dialog box, click Day and drag it to the right of Week, as indicated.
10To add the Hour field to the PivotTable, in the PivotTable Field List dialog box, click Hour and drag it to the Drop Column Fields Here box, as indicated.
11To add the Sales field data to the PivotTable, in the PivotTable Field List dialog box, click Sales and drag it to the Drop Data Items Here box.
12To close the PivotTable Field List dialog box, on the PivotTable toolbar, click the Hide Field List button, as indicated.
13To select the PivotTable report, click cell D5.
14To begin formatting the data list, on the PivotTable toolbar, click the Format Report button, as indicated.
15To apply AutoFormat to the PivotTable, in the AutoFormat dialog box, click twice below the scroll box, click the Table 1 format, and then click OK.
16To select a range of cells, click once on the Right scroll arrow on the horizontal scroll bar, click cell D5, hold down the SHIFT key, and then click cell N19.
17To apply a new format to the selected cells, on the Formatting toolbar, click the Currency Style button, as indicated.
18To save your changes, on the Standard toolbar, click the Save button.

Editing PivotTables

1To begin adding a field to the PivotTable, in the PivotTable worksheet, click cell D5, and then on the PivotTable toolbar, click the Show Field List button, as indicated.
2To add the Weekday field to the PivotTable, in the PivotTable Field List dialog box, click Weekday and drag it to the Drop Page Fields Here box, as indicated.
3To close the PivotTable Field List dialog box, on the PivotTable toolbar, click the Hide Field List button, as indicated.
4To dock the PivotTable toolbar below the Formatting toolbar, click the title bar of the PivotTable toolbar and drag it to the indicated area.
5To filter the PivotTable so that only the data representing sales on a particular day is displayed, click the Weekday list arrow, as indicated, click Mon, and click OK.
6To remove the filter, click the Weekday list arrow, click (All), and then click OK.
7To filter the PivotTable so that only the data representing sales in week 1 is displayed, click the Week list arrow, as indicated, clear the check box next to 2, and then click OK.
8To display data from both weeks, click the Week list arrow, select the (Show All) check box, and then click OK.
9To display the PivotTable and PivotChart Wizard, on the PivotTable toolbar, click PivotTable, and then click PivotTable Wizard.
10To begin changing the layout of the PivotTable, in the PivotTable and PivotChart Wizard, click Layout.
11To change the layout of the PivotTable, in the COLUMN box, click Hour and drag it to the PAGE box, as indicated.
12To change Weekday into a column head and finish applying the changes, in the PAGE box, click Weekday and drag it to the COLUMN box, and then click OK.
13To view the changes in the layout of the PivotTable, click Finish.
14To change the layout of the PivotTable by using pivot, click the Hour field head, as indicated, and drag it to the Drop Column Fields Here box, as indicated.
15To finish changing the layout of the PivotTable by using pivot, click the Weekday field head, and drag it to the Drop Page Fields Here box, as indicated.
16Notice that the layout of the PivotTable is changed in response to the pivot. To display the Limited worksheet, click the Limited sheet tab.
17To change the sales data, click cell F5, and for the purposes of this exercise, press SPACEBAR to have the data typed for you, and then press ENTER.
18To display the PivotTable worksheet, click the PivotTable sheet tab.
19To refresh the PivotTable data, on the PivotTable toolbar, click the Refresh External Data button, as indicated.
20Notice that the sales data is updated. To hide the hourly sales details contained in the PivotTable, double-click cell A5.
21Notice that the detail rows of the March section of the PivotTable are hidden, and only the totals for March are displayed. To show the PivotTable details again, double-click cell A5.
22To move to the Link worksheet, click the Link sheet tab.
23To begin creating a link to a PivotTable field, verify that cell C5 is selected, press SPACEBAR to have the text typed for you, and then click the PivotTable sheet tab.
24To specify that cell C5 of the Link worksheet should be linked to cell N19 of the PivotTable worksheet, click once to the right of the scroll box on the horizontal scroll bar, and then click cell N19.
25Notice that the desired formula is displayed on the formula bar, as indicated. To finish creating the link, press ENTER.
26Notice that Excel switches back to the Link worksheet and displays the value $32,939 in cell C5. To save the changes made to the workbook, on the Standard toolbar, click the Save button.

Creating PivotTables from External Data

1To begin importing a data list into Excel, click the Data menu, point to Import External Data, and then click Import Data.
2To import data from a text file, in the left pane of the Select Data Source dialog box, click My Documents, double-click Garden Company, double-click Sales, click MarData, and then click Open.
3On the first page of the Text Import Wizard, verify that the Delimited option is selected and the Start import at row box displays 1, and then to move to the next page of the wizard, click Next.
4On the second page of the wizard, in the Delimiters area, verify that the Tab check box is selected, and then to move to the next page of the wizard, click Next.
5On the final page of the wizard, in the Data preview area, verify that the data type of each column is set to General, and then to accept the values and data types assigned by the wizard, click Finish.
6In the Import Data dialog box, verify that the Existing worksheet option is selected and =$A$1 is displayed in the Existing worksheet box. To paste the imported data into the active worksheet, click OK.
7To close the External Data toolbar, click its Close button.
8To begin creating a PivotTable, verify that cell A1 is selected, click the Data menu, and then click PivotTable and PivotChart Report.
9On the first page of the PivotTable and PivotChart Wizard, verify that the Microsoft Office Excel list or database and PivotTable options are selected, and to move to the next page of the wizard, click Next.
10On the second page of the wizard, in the Range box, verify that the data range of $A$1:$F$101 is displayed. To accept the range and move to the next page of the wizard, click Next.
11On the final page of the wizard, verify that the New worksheet option is selected, and then to finish creating the PivotTable and close the wizard, click Finish.
12To add the Week field to the new PivotTable, in the PivotTable Field List dialog box, click Week and drag it to the Drop Row Fields Here box.
13To add the Day field to the PivotTable, in the PivotTable Field List dialog box, click Day and drag it to the right of Week, as indicated.
14To add the Hour field to the PivotTable, in the PivotTable Field List dialog box, click Hour and drag it to the Drop Column Fields Here box.
15To add the Sales field data to the PivotTable, in the PivotTable Field List dialog box, click Sales and drag it to the Drop Data Items Here box.
16To save the changes made to the workbook, on the Standard toolbar, click the Save button.