Microsoft Excel 2010 Pivot Tables



Similar documents
About PivotTable reports

Create a PivotTable or PivotChart report

MICROSOFT EXCEL 2010 ANALYZE DATA

Computer Training Centre University College Cork. Excel 2013 Pivot Tables

CREATING EXCEL PIVOT TABLES AND PIVOT CHARTS FOR LIBRARY QUESTIONNAIRE RESULTS

Excel Using Pivot Tables

Scott Harvey, Registrar Tri County Technical College. Using Excel Pivot Tables to Analyze Student Data

Analyzing Excel Data Using Pivot Tables

To complete this workbook, you will need the following file:

Excel Using Pivot Tables

Microsoft Excel 2007 Consolidate Data & Analyze with Pivot Table Windows XP

Microsoft Excel: Pivot Tables

Advanced Microsoft Excel 2010

Basic Pivot Tables. To begin your pivot table, choose Data, Pivot Table and Pivot Chart Report. 1 of 18

How To Create A Powerpoint Intelligence Report In A Pivot Table In A Powerpoints.Com

Excel What you will do:

Monthly Payroll to Finance Reconciliation Report: Access and Instructions

Produced by Flinders University Centre for Educational ICT. PivotTables Excel 2010

Microsoft Excel 2010 Part 3: Advanced Excel

Excel Pivot Tables. Blue Pecan Computer Training Ltd - Onsite Training Provider :: :: info@bluepecan.co.

Overview What is a PivotTable? Benefits

PivotTable and PivotChart Reports, & Macros in Microsoft Excel

BUSINESS DATA ANALYSIS WITH PIVOTTABLES

Advanced Excel 10/20/2011 1

Microsoft Excel 2010 Charts and Graphs

CHAPTER 6: ANALYZE MICROSOFT DYNAMICS NAV 5.0 DATA IN MICROSOFT EXCEL

MS Excel: Analysing Data using Pivot Tables

Excel Database Management Microsoft Excel 2003

Data exploration with Microsoft Excel: analysing more than one variable

EXCEL PIVOT TABLE David Geffen School of Medicine, UCLA Dean s Office Oct 2002

ITS Training Class Charts and PivotTables Using Excel 2007

Introduction to Microsoft Excel 2007/2010

Excel 2007 Charts and Pivot Tables

Create Charts in Excel

ACADEMIC TECHNOLOGY SUPPORT

Excel 2010: Create your first spreadsheet

Pastel Evolution BIC. Getting Started Guide

Sample- for evaluation purposes only! Advanced Excel. TeachUcomp, Inc. A Presentation of TeachUcomp Incorporated. Copyright TeachUcomp, Inc.

3 What s New in Excel 2007

Using Excel s PivotTable to Analyze Learning Assessment Data

Excel 2003 PivotTables Summarizing, Analyzing, and Presenting Your Data

How To Create A Report In Excel

Appendix 2.1 Tabular and Graphical Methods Using Excel

Excel Unit 4. Data files needed to complete these exercises will be found on the S: drive>410>student>computer Technology>Excel>Unit 4

Microsoft Excel Training - Course Topic Selections

By: Peter K. Mulwa MSc (UoN), PGDE (KU), BSc (KU)

New Orleans 2007 Workshop Tips For Using Microsoft Excel to Analyze EMSC Data and Generate Reports Pivot Tables and Other Goodies

Information Literacy Program

MicroStrategy Analytics Express User Guide

Getting Started with Excel Table of Contents

Getting Started Guide SAGE ACCPAC INTELLIGENCE

Excel Working with Data Lists

Excel PivotTables Basics and Beyond

Analytics with Excel and ARQUERY for Oracle OLAP

Getting Started Guide

Microsoft Excel 2010 Linking Worksheets and Workbooks

As in the example above, a Budget created on the computer typically has:

A Beginning Guide to the Excel 2007 Pivot Table

Data exploration with Microsoft Excel: univariate analysis

Excel Intermediate Session 2: Charts and Tables

Microsoft Office Excel 2013

Pivot Tables & Pivot Charts

MS Excel. Handout: Level 2. elearning Department. Copyright 2016 CMS e-learning Department. All Rights Reserved. Page 1 of 11

Excel 2007 Tutorials - Video File Attributes

Participant Guide RP301: Ad Hoc Business Intelligence Reporting

Excel Math Project for 8th Grade Identifying Patterns

Microsoft Excel 2010 Tutorial

Kingsoft Spreadsheet 2012

Intro to Excel spreadsheets

Using Pivot Tables in Microsoft Excel 2003

Microsoft Excel 2013: Charts June 2014

Microsoft Access 2010 handout

Excel: Analyze PowerSchool Data

Excel 2003 Tutorials - Video File Attributes

NAVIGATION TIPS. Special Tabs

HRS 750: UDW+ Ad Hoc Reports Training 2015 Version 1.1

Microsoft Access 2010 Advanced Queries

Using Excel as a Management Reporting Tool with your Minotaur Data. Exercise 1 Customer Item Profitability Reporting Tool for Management

Excel -- Creating Charts

Access 2007 Creating Forms Table of Contents

How to Use a Data Spreadsheet: Excel

Lesson 9. Reports. 1. Create a Visual Report. Create a visual report. Customize a visual report. Create a visual report template.

RIFIS Ad Hoc Reports

Microsoft Excel 2007 Mini Skills Overview of Tables

MicroStrategy Desktop

Working with Spreadsheets

The Center for Teaching, Learning, & Technology

Excel 2007 Basic knowledge

DataPA OpenAnalytics End User Training

Microsoft Office Word 2010: Level 1

Detail Report Excel Guide for High Schools

Business Objects Version 5 : Introduction

SAP BUSINESS OBJECT ANALYSIS FOR EXCEL DEVELOPER GUIDE

Using PivotTables and PivotCharts

How to make a line graph using Excel 2007

SECTION 2-1: OVERVIEW SECTION 2-2: FREQUENCY DISTRIBUTIONS

Sample Table. Columns. Column 1 Column 2 Column 3 Row 1 Cell 1 Cell 2 Cell 3 Row 2 Cell 4 Cell 5 Cell 6 Row 3 Cell 7 Cell 8 Cell 9.

Creating Pivot Tables

Search help. More on Office.com: images templates. Here are some basic tasks that you can do in Microsoft Excel 2010.

Transcription:

Microsoft Excel 2010 Pivot Tables Email: training@health.ufl.edu Web Page: http://training.health.ufl.edu

Microsoft Excel 2010: Pivot Tables 1.5 hours Topics include data groupings, pivot tables, pivot charts, formatting pivot tables, adding and removing data, multiple data forms, and sorting in pivot tables. This workshop assumes a level of comfort when working with Excel. What is a PivotTable Report?... 1 Ways to work with a PivotTable Report... 2 Create a PivotTable from Worksheet Data... 2 Create a PivotTable from an External Data Source... 4 What is a PivotChart Report?... 5 Create a PivotChart Report from an Existing PivotTable Report... 6 Convert a PivotChart Report to a Standard Chart... 7 Create a Standard Chart from some or all data in a PivotTable Report... 8 Delete a PivotTable Or PivotChart Report... 8 Delete a PivotTable Report... 8 Delete a PivotChart Report... 8 Workshop Examples... 9 Pivot Sales.xlsx... 9 PivotSurvey.xlsx... 10 KangarooRats.xlsx... 11 Pandora Rose Cowart Education/Training Specialist UF Health IT Training C3 013 Communicore (352) 273 5051 PO Box 100152 prcowart@ufl.edu Gainesville, FL 32610 0152 http://training.health.ufl.edu Updated: 5/22/2016

What is a PivotTable Report? A PivotTable report is an interactive way to quickly summarize large amounts of data. Use a PivotTable report to analyze numeric data in detail and to answer unanticipated questions about your data. A PivotTable report is especially designed for: Querying large amounts of data in many user friendly ways. Subtotaling and aggregating numeric data, summarizing data by categories and subcategories, and creating custom calculations and formulas. Expanding and collapsing levels of data to focus your results, and drilling down to details from the summary data for areas that are of interest to you. Moving rows to columns or columns to rows (or "pivoting") to see different summaries of the source data. Filtering, sorting, grouping, and conditionally formatting the most useful and interesting subset of data to enable you to focus on the information that you want. Presenting concise, attractive, and annotated online or printed reports. You often use a PivotTable report when you want to analyze related totals, especially when you have a long list of figures to sum, and aggregated data or subtotals would help you look at the data from different perspectives and compare figures of similar data. In the following PivotTable report example, you can easily see how the total third quarter Golf department sales in cell F3 compare to sales for another sport, or quarter, or to the total sales of all departments. In a PivotTable report, each column or field in the source data becomes a PivotTable field that summarizes multiple rows of information. In the previous example, the Sport column becomes the Sport field, and each record (a collection of information about a field) for Golf is summarized in a single Golf item. A value field, such as Sum of Sales, contains the values to be summarized. In the previous report, the Qtr3 Golf summary contains the sum of the Sales value from every row in the source data for which the Sport column contains Golf and the Quarter column contains Qtr3. By default, data in the Values area summarize the underlying source data in the PivotChart report in the following way: numeric values use the SUM function to add values, and text values use the COUNT function to count the number of values. To create a PivotTable report, you must define its source data, specify a location in the workbook, and lay out the fields. Definition (field: In a PivotTable or PivotChart report, a category of data that's derived from a field in the source data. PivotTable reports have row, column, page, and data fields. PivotChart reports have series, category, page, and data fields.) Definition (item: A subcategory of a field in PivotTable and PivotChart reports. For instance, the field "Month" could have items such as "January," "February," and so on.) Modified from the Office 2010 Help Page 1 Source data, in this case, from a worksheet The source values for Qtr3 Golf summary in the PivotTable report The entire PivotTable report The summary of the source values in C2 and C8 from the source data An example of source data and the resulting PivotTable report

Ways to work with a PivotTable Report After you create the initial PivotTable report by defining the data source, arranging fields in the PivotTable field List, and choosing an initial layout, you can perform the following tasks as you work with a PivotTable report. Explore the data by doing the following: Expand and collapse data, and show the underlying details that pertain to the values. Sort, filter, and group fields and items. Change summary functions, and add custom calculations and formulas. Change the form layout and field arrangement by doing the following: Change the PivotTable report form: compact, outline, or tabular. Add, rearrange, and remove fields. Change the order of fields or items. Change the layout of columns, rows, and subtotals by doing the following: Turn column and row field headers on or off, or display or hide blank lines. Display subtotals above or below their rows. Adjust column widths on refresh. Move a column field to the row area or a row field to the column area. Merge or unmerge cells for outer row and column items. Change the display of blanks and errors by doing the following: Change how errors and empty cells are displayed. Change how items and labels without data are shown. Display or hide blank lines Change the format by doing the following: Manually and conditionally format cells and ranges. Change the overall PivotTable format style. Change the number format for fields. Create a PivotTable from Worksheet Data When you create a PivotTable report from worksheet data, that data becomes the source data for the PivotTable report. 1. Do one of the following: To use worksheet data as the data source, click a cell in the range of cells that contains the data. To use data in an Excel table as the data source, click a cell inside the Excel table. Note Make sure that the range has column headings or that headers are displayed in the table, and that there are no blank rows in the range or table. Modified From the Office 2010 Help Page 2 Excel displays the Create PivotTable dialog box.

2. On the Insert tab, in the Tables group, click PivotTable, or click the arrow below PivotTable, and then click PivotTable. Tip To create a PivotTable and PivotChart report at the same time, on the Insert tab, in the Tables group, click the arrow below PivotTable, and then click PivotChart. Excel displays the Create PivotTable with PivotChart dialog box. 3. Under Choose the data that you want to analyze, make sure that Select a table or range is selected, and then in the Table/Range box, verify the range of cells that you want to use as the underlying data. Excel automatically determines the range for the PivotTable report, but you can replace it by typing a different range or a name that you defined for the range. For data in another worksheet or workbook, include the workbook and worksheet name by using the following syntax [workbookname]sheetname!range. Tip You can also click Collapse Dialog to temporarily hide the dialog box, select the range on the worksheet, and then click Expand Dialog. 4. Under Choose where you want the PivotTable report to be placed, specify a location by doing one of the following: To place the PivotTable report in a new worksheet starting at cell A1, click New Worksheet. To place the PivotTable report in an existing worksheet, select Existing Worksheet, and then in the Location box, specify the first cell in the range of cells where you want to position the PivotTable report. 5. Click OK. Excel adds an empty PivotTable report to the specified location and displays the PivotTable Field List so that you can add fields, create a layout, and customize the PivotTable report. Note If you create a PivotChart report at the same time that you create a PivotTable report, Excel displays the chart on top of the associated PivotTable report. A PivotChart report and its associated PivotTable report must always be in the same workbook. 6. To add fields to the report, do one or more of the following: To place a field in the default area of the layout section, select the check box next to the field name in the field section. By default, nonnumeric fields are added to the Row Labels area, numeric fields are added to the Values area, and Online Analytical Processing (OLAP) date and time hierarchies are added to the Column Labels area. Definition (OLAP: A database technology that has been optimized for querying and reporting, instead of processing transactions. OLAP data is organized hierarchically and stored in cubes instead of tables.) Modified from the Office 2010 Help Page 3

To place a field in a specific area of the layout section, right click the field name in the field section, and then select Add to Report Filter, Add to Column Label, Add to Row Label, or Add to Values. To drag a field to the area that you want, click and hold the field name in the field section, and then drag it to an area in the layout section. Tip You can use the PivotTable Field List to rearrange the fields at any time by right clicking the fields in the layout section and then selecting the area that you want, or by dragging the fields between the areas in the layout section. Tip Changes that you make to the source data after you create the PivotTable report are reflected in the report when you refresh the selected PivotTable report (PivotTable Tools, Options tab, Data group, Refresh button). Tip If you add rows to the range of source data, you can include those rows in the PivotTable report by changing the source data (PivotTable Tools, Options tab, Data group, Change Source Data button). If the source data is in an Excel table, additional rows are automatically displayed when you refresh the PivotTable report. Create a PivotTable from an External Data Source When you create a PivotTable report from external data, you are creating a connection to source data that is stored outside Excel, for example in a database program (such as Microsoft Access or Microsoft SQL Server) or an Online Analytical Processing (OLAP) cube. Definition (external data: Data that is stored outside of Excel. Examples include databases created in Access, dbase, SQL Server, or on a Web server.) 1. Click a cell on the worksheet. 2. On the Insert tab, in the Tables group, click PivotTable, or click the arrow below PivotTable, and then click PivotTable. Tip To create a PivotTable and PivotChart report at the same time, on the Insert tab, in the Tables group, click the arrow below PivotTable, and then click PivotChart. Excel displays the Create PivotTable with PivotChart dialog box. 3. Under Choose the data that you want to analyze, click Use an external data source. 4. Click Choose Connection. 5. In the Show box at the top of the Existing Connections dialog box, select the category of connections for which you want to specify a connection or select All Connections (which is the default). 6. Under Select a Connection, select a connection, and then click Open. Note If you select a connection from the Connections in this Workbook category, you will be reusing or sharing an existing connection. If you select a connection from the Connection files on the network or Connection files on this computer categories, Excel copies the connection file into the workbook as a new workbook connection, and then uses that file (an.odc file) as the new connection for the PivotTable report. Modified From the Office 2010 Help Page 4 Excel displays the Create PivotTable dialog box.

7. Under Choose where you want the PivotTable report to be placed, specify a location by doing one of the following: 8. Click OK. To place the PivotTable report in a new worksheet starting at cell A1, click New Worksheet. To place the PivotTable report in an existing worksheet, select Existing Worksheet, and then in the Location box, specify the first cell in the range of cells where you want to position the PivotTable report. Excel adds an empty PivotTable report to the specified location and displays the PivotTable Field List so that you can add fields, create a layout, and customize the PivotTable report. Note If you create a PivotChart report at the same time that you create a PivotTable report, Excel displays the chart on top of the associated PivotTable report. A PivotChart report and its associated PivotTable report must always be in the same workbook. Definition (associated PivotTable report: The PivotTable report that supplies the source data to the PivotChart report. It is created automatically when you create a new PivotChart report. When you change the layout of either report, the other also changes.) 9. To add fields to the report, do one or more of the following: Select the check box next to each field name in the field section. The field is placed in a default area of the layout section, but you can rearrange the fields if you want. By default, nonnumeric fields are added to the Row Labels area, numeric fields are added to the Values area, and Online Analytical Processing (OLAP) date and time hierarchies are added to the Column Labels area. Right click the field name and then select the appropriate command, Add to Report Filter, Add to Column Label, Add to Row Label, and Add to Values, to place the field in a specific area of the layout section. Tip You can also click and hold a field name, and then drag the field between the field section and an area in the layout section. Tip You can use the PivotTable Field List to rearrange the fields at any time by right clicking the fields in the layout section, and then selecting the area that you want, or by dragging the fields between the areas in the layout section. What is a PivotChart Report? A PivotChart report provides a graphical representation of the data in a PivotTable report, which in this case is called the associated PivotTable report. A PivotChart report is interactive, which means that you can sort and filter it to show subsets of the PivotTable data. When you create a PivotChart report, PivotChart report filters are displayed in the chart area so that you can sort and filter the underlying data of the PivotChart report. Changes that you make to the field layout and data in the associated PivotTable report are immediately reflected in the PivotChart report. Modified from the Office 2010 Help Page 5

A PivotChart report displays data series, categories, and data markers, and axes just as standard charts do. You can also change the chart type and other options such as the titles, the legend placement, the data labels, and the chart location. Definitions (associated PivotTable report: The PivotTable report that supplies the source data to the PivotChart report. It is created automatically when you create a new PivotChart report. When you change the layout of either report, the other also changes.) (chart area: The entire chart and all its elements.) (data series: Related data points that are plotted in a chart and originate from datasheet rows or columns. Each data series in a chart has a unique color or pattern. You can plot one or more data series in a chart. Pie charts have only one data series.) (data marker: A bar, area, dot, slice, or other symbol in a chart that represents a single data point or value that originates from a worksheet cell. Related data markers in a chart constitute a data series.) (axis: A line bordering the chart plot area used as a frame of reference for measurement. The y axis is usually the vertical axis and contains data. The x axis is usually the horizontal axis and contains categories.) (titles in charts: Descriptive text that is automatically aligned to an axis or centered at the top of a chart.) (legend: A box that identifies the patterns or colors that are assigned to the data series or categories in a chart.) (data label: A label that provides additional information about a data marker, which represents a single data point or value that originates from a worksheet cell.) Create a PivotChart Report from an Existing PivotTable Report 1. Click the PivotTable report. This displays the PivotTable Tools, adding the Options and Design tab. 2. On the Options tab, in the Tools group, click PivotChart. 3. In the Insert Chart dialog box, click the chart type and chart subtype that you want. You can use any chart type except an xy (scatter), bubble, or stock chart. 4. Click OK. The PivotChart report that appears has PivotChart report filters that you can use to change the data that is displayed in the chart. Note A PivotChart report and its associated PivotTable report must be in the same workbook. Note If you insert a standard chart for the PivotTable data (Insert tab, Charts group), the chart will be a PivotChart that is associated with the PivotTable report. A PivotChart report of sport sales by quarter Modified From the Office 2010 Help Page 6

Convert a PivotChart Report to a Standard Chart You can convert a PivotChart report to a standard chart by deleting its associated PivotTable report. If you have multiple PivotTable reports and PivotChart reports in your workbook, you may first have to find the associated PivotTable report that has the same name as the PivotChart report. Definition (associated PivotTable report: The PivotTable report that supplies the source data to the PivotChart report. It is created automatically when you create a new PivotChart report. When you change the layout of either report, the other also changes.) 1. Do one of the following: If you know which PivotTable report is associated with the PivotChart report that you want to change, click that PivotTable report. If you do not know which PivotTable report is associated with the PivotChart report that you want to change, do the following: i. Click the PivotChart report that you want to change. This displays the PivotChart Tools, adding the Design, Layout, Format, and Analyze tab. ii. To find the name of the associated PivotTable report, do the following: a. On the Design tab, in the Data group, click Select Data. b. In the Select Data Source dialog box, in the Chart data range box, note the associated PivotTable name, which is the text that follows the (!) exclamation point, and then click OK. iii. To find the associated PivotTable report, do the following: a. Click a PivotTable report in the workbook. b. On the Options tab, in the PivotTable group, click Options, and then click Options. c. In the Name box, note whether the name matches the name of the associated PivotTable report. d. Repeat steps 1 through 3 of this procedure for each PivotTable report in the workbook until you find the same name in the Name box. e. Click OK, and then select the associated PivotTable report that has the same name as the PivotChart report that you want to change. This displays the PivotTable Tools, adding the Options and Design tabs. 2. On the Options tab, in the Actions group, click Select, and then click Entire PivotTable. 3. Press DELETE. Modified from the Office 2010 Help Page 7

Create a Standard Chart from some or all data in a PivotTable Report 1. Select the data in the PivotTable report that you want to use in your chart. Tip To include field buttons and data in the first row and column of the report, start dragging from the lower right corner of the data that you select. 2. On the Home tab, in the Clipboard group, click Copy. 3. Click a blank cell outside the PivotTable report. 4. On the Home tab, in the Clipboard group, click the arrow below Paste, and then under Paste Values, click Values, Values & Number Formatting, or Values & Source Formatting. 5. On the Insert tab, in the Charts group, click the chart type that you want, and then click a chart subtype. Delete a PivotTable Or PivotChart Report Delete a PivotTable Report 1. Click anywhere in the PivotTable report that you want to delete. This displays the PivotTable Tools, adding the Options and Design tabs. 2. On the Options tab, in the Actions group, click the arrow below Select, and then click Entire PivotTable. 3. Press DELETE. Note Deleting a PivotTable report that is associated with a PivotChart report turns that PivotChart report into a standard chart that you can no longer pivot or update. Delete a PivotChart Report 1. Click anywhere in the PivotChart that you want to delete. 2. Press DELETE. Note Deleting a PivotChart report does not delete the associated PivotTable report. Modified From the Office 2010 Help Page 8

Pivot Sales.xlsx Workshop Examples Workshop Examples Page 9

PivotSurvey.xlsx Count the number of occurrences by using the same field twice, once as the Row Label, once as the Value (where the value is summarized with "Count") To find the number of occurrences across more than one field, you can "count" any of the fields to get the correct answer. Remember just because the table 'looks good' doesn't mean it's summarizing correctly. Workshop Examples Page 10

KangarooRats.xlsx Average Weight per Rat Highest and Lowest Temp (Min/Max Temp) First and Last Date. Since all of our dates are in the past, our "First" date is actually the Minimum Date, our "Last Date" the Maximum Date. Don't forget to format the values with a Date format; otherwise you will only see the date code. Average Weight by Month. When you place the date field in the row or column headings you will see all of the unique dates in the dataset. To have the table show by Quarters and Months, right click on any date and chose Group If the option is not available, click on the Date filter and uncheck any text fields, including (blanks) and try again. If your data goes across several years, make sure to include the year in the grouping. Workshop Examples Page 11