Docsity

Microsoft Excel: PivotTables & PivotCharts (L3) at Massey University, Lecture notes of Information Technology

Partial preview of the text

Download Microsoft Excel: PivotTables & PivotCharts (L3) at Massey University and more Lecture notes Information Technology in PDF only on Docsity!

I N F O RM A T I O N T EC H N O L O G Y S ERV I C ES

M I C RO S O FT Ex c e l 2 0 1 0

Ex c e l C h a r t s & Pi v o t T a b l e s ( L 3 )

LEARNING

GUIDE

Workshop Information

Information Technology Services is happy to provide you with this training

opportunity. We hope you enjoy it and the time you invest in participating is

valuable to your work here at Massey University.

Learning Outcomes (^) In this workshop you will learn how to:

 Create and modify Excel charts.  Change the design of Excel charts (Styles, layout, labels, axis etc. ….)  Create a PivotTable.  Change the way values are displayed in the PivotTable.  Create calculated fields to use in the PivotTable.  Use Slicers.  Use Report Filters.  Create, use and manipulate PivotCharts.  Work with TrendLines.

Format Face to face workshop, duration approximately 2 hours. All the exercises in this course make use of the Excel 3 Workbook.xlsx file.

Additional Resources

Pivot Tables for Excel 2010

Microsoft Excel 2010 - PivotTables & PivotCharts

Help For further assistance please contact ITS Service Desk on extension 82111.

Feedback After this workshop please complete our online ITS Training Feedback form. Your feedback is appreciated. Hearing from you about your training experience allows us to improve the relevance and quality of this training. http://www.massey.ac.nz/itstraining/feedback/

A digital copy of this document is available online. ITS thanks you for considering the environment before printing.

  • Workshop Information
    • Learning Outcomes
    • Format
    • Additional Resources
    • Help
    • Feedback
  • Creating Excel Charts
    • Create a chart
    • Chart location
    • Change chart type
  • Excel Chart Design
    • Chart styles
    • Chart Layout
    • Change Shape Styles
    • Shape colours
    • Shape outlines
    • Shape effects
    • Chart text design
    • Chart labels
    • Chart axes
    • Chart gridlines
    • Chart background
    • Moving an Embedded Chart
    • Resizing an Embedded Chart
    • Adding more data
    • Exercise chart creation
  • Pivot Tables
    • Parts of a PivotTable
    • Field List
    • Create PivotTable
    • Add data to the table.
    • Other customisation options
    • Exercise creating a pivot table
    • Data field summary options
    • Changing displayed values..................................................................................................................................
    • Exercise working with data.................................................................................................................................
    • Calculated fields
    • Exercise calculated fields
    • Refreshing data
    • Sorting and Filtering Data
    • Filtering by Selection
    • Exercise sorting and filtering
    • Slicers and Report Filters
    • Formatting slicers
    • Exercise slicers
    • Report Filters
    • Exercise report filters
    • Formatting a PivotTable
    • Selecting a Style
    • Changing the Layout
    • Inserting Blank Rows
    • Report Layouts
    • Changing number formats
  • Pivot Charts
    • Introduction........................................................................................................................................................
    • Creating a PivotChart..........................................................................................................................................
    • Column pivot chart
    • Create a PivotChart from a PivotTable
    • PivotCharts vs. Ordinary Charts
    • Moving a PivotChart
    • Pivoting and Filters
    • Formatting a PivotChart
    • Formatting Individual Elements
    • PivotChart Layouts
    • Changing the Layout
    • PivotChart Types.................................................................................................................................................
    • Changing Chart Type
    • Trend lines
    • Exercise Pivot Charts

Creating Excel Charts

Charts introduction

Charts are a good way of displaying information on a worksheet. Excel has many types of charts, 2D and 3D, standard and custom. A chart is automatically embedded in a worksheet (it sits on top of the worksheet).

When you create a chart, the chart tools become available and the Design , Layout , and Format tabs are displayed. You can use the commands on these tabs to modify the chart so that it presents the data the way that you want it to.

Create a chart Step^ Action

Select the data to be graphed including text for the X and Y -axis. Do not include any row or column totals.

On the Insert tab, in the Charts group, click the chart type, and then click a chart subtype that you want to use.

Chart location Step^ Action

Click the embedded chart or the chart sheet to select it and to display the Chart Tools.

2 On the Design tab, in the Location group, click Move Chart.

3 To display the chart in a chart sheet, select New sheet.

Note : If you are unsure what the different parts of a chart are called, hover the mouse above any part of a chart and a label will appear identifying the chart element.

Excel Chart Design

Introduction You can change the appearance of a chart using the^ Chart Tools^ contextual tab. In this section we look at some of the available options.

Chart styles Step^ Action

1 Select the chart.

On the Design tab, in the Chart Styles group, click the chart style that you want to use.

Chart Layout Step^ Action

1 Select the chart.

On the Design tab, in the Chart Layouts group, click the chart layout that you want to use.

Change Shape Styles

Step Action

1 Select the chart data.

2 Select the item you want to style (e.g. series, plot area, legend, value axis).

On the Format tab, in the Shape Styles group, click the shape style that you want to use.

Shape colours Step Action

1 Select the Chart.

2 Select the item you want to design i.e. a column or title.

On the Format tab, in the Shape Styles group, click the shape fill button and choose a colour.

Shape outlines Step Action

1 Select the Chart.

2 Select the item you want to design i.e. a column or title.

3 On the^ Format^ tab, in the^ Shape Styles^ group, click the shape outline button and choose a colour.

Chart axes On a 2D chart the x axis runs along the bottom and the y axis runs up the left side. In a 3D chart the x axis is on the bottom, y axis along the side and the z axis comes out of the page towards you (i.e. the 3D).

The axes can be shown or hidden and displayed in different units

Step Action

1 Select the chart.

On the Layout tab under the Axes group choose Axes.

Chart gridlines Gridlines are the lines shown behind the chart elements to aid the viewer to read the correct information. These can be hidden or displayed as major or minor gridlines

Step Action

1 Select the chart.

On the Layout tab under the Axes group choose Gridlines.

Chart background The Background is the area on which the Gridlines are displayed behind the chart. The Plot Area is the background when a 2D chart is displayed. The Chart Wall is the main background behind a 3D chart with the Chart Floor displaying the 3D effect underneath the chart

Step Action

1 Select the chart.

On the Layout tab under the Background group choose a background to change.

Moving an Embedded Chart

To move the chart, click and drag the Chart Area (just inside the border of the chart) to the new location.

Resizing an Embedded Chart

Select the chart by clicking on Chart. Drag handles will appear at each corner and at the centre of each of the borders of the chart. To resize, click and drag the appropriate handle with the mouse to the new size.

Adding more data Step Action

1 Select the chart.

On the Design tab under the Data group click the Select Data button.

Change the Chart Data Range as necessary.

Exercise chart elements

In this exercise we will use a chart layout and then modify some of the elements of the layout.

Step Action

With the chart selected, under Chart Tools , Design tab in the Chart Layouts group, click the More button and select Layout 8.

2 A chart title and axis titles have been added to the chart.

Replace the chart title by selecting it and typing Sales Data Regional Locations.

4 Select the x-axis title (horizontal axis) and overwrite it by typing Month.

5 Select the y-axis title (vertical axis) and overwrite it by typing^ Sales Units 1000’s.

6 Next we are going to add a legend.

7 With the chart selected, under^ Chart Tools^ on the^ Layout^ tab, in the^ Labels group click the arrow below Legend.

8 Click Show Legend at Right.

Exercise chart elements

In this exercise we will change the chart type to a line chart.

Step Action

1 With the chart selected, under^ Chart^ Tools , on the^ Design^ tab in the^ Type group, click the Change Chart Type button.

2 In the Change Chart Type dialogue box in the left column select Line.

3 In the right column select Line (first icon) and click OK.

4 The chart changes from a bar chart to a line chart.

Pivot Tables

Introduction The aim of a PivotTable is to create a report.

A PivotTable is used as an interactive worksheet table that allows you to quickly summarise large amounts of data using the format and calculation method specified by you. The name refers to the table’s ability to rotate rows and columns headings to access and present different perspectives of your data.

When creating a PivotTable, you will be asked to specify the data to be used as row fields, column fields and page fields.

Parts of a PivotTable

The following table describes the terms used to describe different aspects of the PivotTable.

Part Function

Fields Categories of data such as rows or columns. Items These are sub-categories. Data area The data to be summarised.

Layout The arrangement of the fields within the table.

Page Fields Also known as a Report Filter field. A field that you can use to filter your PivotTable.

These screenshots below show the different parts of a PivotTable. The four blue bordered fields are the different areas where you can put information

Create PivotTable, continued

Once you create a pivot table a new (or existing) worksheet will be displayed showing the empty table.(i.e. the template)

Add data to the table.

  • Drag and drop items from the PivotTable Field List into the four areas below the list. •The locations you choose to drop the items will control what information the table displays and where it is displayed. •You can also select the tick box next to the field name to add it to the PivotTable. •The Row Labels and Column Labels are the row and column headings. •The Values area is the actual information that will be measured. (E.g. count, totals, averages etc. …).

Other

customisation

options.

 You can remove fields from the table by dragging them out of the four areas, or un-tick them in the field list  You can drag fields from one area to another if required. You can add more than one field to any area.

Exercise creating a pivot table

In this practice we will create a Pivot Table and display the data, so that we can see the average sales for both Delta and United Airlines.

Step Action

1 Create a new worksheet and call it Airline Summary Report. 2 Select cell A1 of the Airline Summary Report worksheet. 3 Select Insert > PivotTable > Pivot Table.

4

For the Table/Range select the Travel Data Worksheet and then cells A1:L 49. 5 Click OK. The PivotTable will be created. 6 Add Revenue to the Values area. 7 Add Company to Column Labels. 8 Select cell B.

9

Right click cell B3 and from the shortcut menu select Summarize Values By Average. 10 Delta Airlines ________ United Airlines ________

11

Right click cell B3 and from the shortcut menu select Summarize Values By Sum again.

Data field summary options

PivotTables allow you to perform different summary calculations. You can also choose the type of values to be shown in the data area

Summarise by averages

To change the way data is summarised in the PivotTable, right click a data cell in the table ( Note : Do not select a label, total, or subtotal field). Then from the shortcut menu select a suitable option.

Show values as, continued

Step Action

Select % of. This displays values as a percentage of the value of the Base item in the Base field.

The options selected below will display each month as a percentage of the previous month.

The displayed items will look similar to the image alongside.

Select Running Total in. This displays the value for successive items in the Base field as a running total. If I chose Month as my base field, this is how it would look.

Exercise working with data

In this practice we will work out what percentage of July’s sales for 2009 August was, for United Airlines. (i.e. August Sales / July’s Sales X 100)

Step Action

1 On the^ Airline Summary Report^ worksheet, add the^ Year^ field, and then the Month field to Row Labels. 2 Click a data cell in the PivotTable.

3

Select PivotTable Tools > Options > Calculations > Show Values As >% of where Base Field = Month and Base Item = (previous) 4 August was ___% of July’s sales for United for 2009. Right click an ordinary cell in the PivotTable and from the shortcut menu select Show Values As > No Calculation.

Calculated fields You can create custom fields that summarise PivotTable data using a formula

Step Action

Select PivotTable Tools > Options > Field, Items, & Sets (from the Calculations group).

From the drop down list select Calculated Field.

In the Name field type the name you want for your calculated field. (I.e. Average Sale).

Create your calculation (i.e. revenue as a % of sales count) by clicking into the Formula field after the equals sign. Then select the appropriate field from the list of Fields by clicking the Insert Field button.

5 Now click back into the Formula field and type your mathematical operator (i.e. + , - , / , ***** ). 6 Repeat steps 4 and 5 as appropriate.

7 Select OK when you have finished.