The Pivot Table Tutorial
The Pivot Table Tutorial
com
The
By John Franco
www.ExcelCream.com
2 | Page
The Pivot Table Tutorial The Pivot Table Tutorial by John Franco 2010 by ExcelCream.com Notice of Rights All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher. Notice of Liability The author and publisher have made every effort to ensure the accuracy of the information herein. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors and ExcelCream.com, nor its dealers or distributors, will be held liable for any damages to be caused either directly or indirectly by the instructions contained in this book, or by the software or hardware products described herein. Trademark Notice Rather than indicating every occurrence of a trademarked name as such, this book uses the names only in an editorial fashion and to the benefit of the trademark owner with no intention of infringement of the trademark. Cover image Kurhan - Fotolia.com
www.ExcelCream.com
3 | Page
TOC
TOC INTRODUCTION 4 5
PRINCIPLE #1: MAKE A CLEAR DISTINCTION OF THE SOURCE TABLE FIELDS 7 PRINCIPLE #2 MAKE A CLEAR DISTINCTION OF THE PIVOT TABLE REPORT ELEMENTS PRINCIPLE #3 DROP THE FIELDS TO THE CORRECT FIELD AREA PRINCIPLE #4 THE ORDER OF THE CATEGORY FIELDS COUNTS 9 13 17
PRINCIPLE #5 YOU CAN SUMMARIZE THE NUMERIC FIELDS IN SEVERAL WAYS 19 PRINCIPLE #6 THERE ARE MAINLY 5 TYPE OF REPORTS PRINCIPLE #7 YOU WILL ALWAYS ENCOUNTER SOME PROBLEMS PIVOT TABLE RESOURCES ABOUT JOHN 20 25 29 30
www.ExcelCream.com
4 | Page
Introduction
A Pivot Table allows you to quickly slice and dice information from any large table you can imagine. For example: you can crunch the "Source Table" shown below in several ways
Sales by Group Total sales for each product group. See the table below...
Product Sales Total sales for each product, organized by group Q1 & Q2 & Q3 & Q4 compares the sales between quarters. See the table below...
www.ExcelCream.com
5 | Page
Multiple Subtotals calculates additional summaries: the average, largest, and smallest sales for each group Average Sales provides the average sales amount for each product Top 3 Products Identifying the three best-selling products within each group All Quarters Sales for each product and group by quarter And more ways It appears complex at first but dont worry, if you can drag the mouse, you can create a basic Pivot Table Report. Open your mind.... and lets grasp the 7 Timeless Principles of working with Pivot Tables. This is my promise... You will use PTs intuitively for the rest of your life!
www.ExcelCream.com
6 | Page
Category field
In the above "Source Table", you have three Category fields: Group, Product and Quarter. Imagine categories as the units of data you want information about. For example, you can slice the Sales by Group, by Product and by Quarter. A category field usually contains texts that are repeated across the lines. For example, the "Quarter field" contains: Q 1, Q 2, Q 1, Q 1, Q 4, etc. See the table above
Numeric field
In the above "Source Table", you have one Numeric field: Sales.
www.ExcelCream.com
7 | Page
The Pivot Table Tutorial Imagine a numeric field as the source of information for categories; for example: you can know the total, the average, or the max Sales of any category: Group, Product or Quarter. There are other types of numeric fields like: Profit, Losses, Salaries, etc. Take into account that this type of field is necessarily a number. See the table above
www.ExcelCream.com
8 | Page
www.ExcelCream.com
9 | Page
www.ExcelCream.com
10 | P a g e
It is important to note that the Excel area (as highlighted in the graphics above) is reflected from the "Source Table". In other wordsthose fields you see there are the fields of the "Source Table". These fields can be dragged and dropped to the four main data areas Row labels (row area for Excel 2003) Column labels (column area for Excel 2003) Values (data area for Excel 2003) Report Filter (page area for Excel 2003)
www.ExcelCream.com
11 | P a g e
The Pivot Table Tutorial To create a Pivot Table report just drag and drop the fields appropriately to the drop data area (see Principle #3).
www.ExcelCream.com
12 | P a g e
Now you will learn how to configure a PT report. A Pivot Table report is built in front of you as you drop the fields to the data area APPROPRIATELY. Drag the fields from the Pivot Table Field List dialog to the Drop Fields area. Excel 2007 users can drag and drop the fields to the User area shown below.
www.ExcelCream.com
13 | P a g e
Excel 2003 users can add fields to the appropriate areas by using the Add to button in the User area shown below.
www.ExcelCream.com
14 | P a g e
The Pivot Table Tutorial Or you can drag and drop the fields from the Pivot Table Field List dialog directly to the Drop Fields area. See below
Now; each time you drop a field, you will have the report taking shape in front of you. Finally you have it
www.ExcelCream.com
15 | P a g e
The Pivot Table Tutorial Important reminder: Drop the Numeric fields to the Data area only. Can you drop a Category field to the Data area? The answer is YES. You can put a non-numeric field (category field) on the Data area, but you can only count texts, not average or sum them. You can try it A Sum will result in 0 A Max and Min will result in 0 An Average will result in #DIV/0! The graphic below has the Field called Group on the Data area
www.ExcelCream.com
16 | P a g e
www.ExcelCream.com
17 | P a g e
www.ExcelCream.com
18 | P a g e
You can also set the number format. See the image above
www.ExcelCream.com
19 | P a g e
www.ExcelCream.com
20 | P a g e
www.ExcelCream.com
21 | P a g e
Report #3 Columns
www.ExcelCream.com
22 | P a g e
www.ExcelCream.com
23 | P a g e
www.ExcelCream.com
24 | P a g e
www.ExcelCream.com
25 | P a g e
Dont frustrate too quickly when you cannot set the order of the fields in the Drop Fields Area
Dont lose sight of the four areas of the Drop Data panel. Be aware of this when you have already dropped and dragged fields. See the graphic below
www.ExcelCream.com
26 | P a g e
www.ExcelCream.com
27 | P a g e
The Pivot Table Tutorial Well You are ready; this is all you need to know to get a good strong start on Pivot Tables. Whats next? Go and explore your chunk of data. You will truly become a Pivot Table master when you make sense of your own data. DONT BE AFRAID OF MAKING MISTAKES, if the produced report is not the one you want, just drag and drop another field, move a field from one data area to the other, change the order, etc. Enjoy your data!
I am John Franco - of Ecuador South America. I invite you to visit me at my blog www.ExcelCream.com where we can become better acquainted. I will show you many amazing truths of Excel.
www.ExcelCream.com
28 | P a g e
www.ExcelCream.com
29 | P a g e
About John
John Franco is native of Ecuador, he is a Civil Engineer and a Bachelor in Applied Linguistics with focus on creating systems for work, his long term objective in life is helping others to gain momentum in the application of ideas. For over seven years, he worked as a Civil Engineer for Norberto Odebrecht Construction Company (the 44th largest construction contracting firm from around the world according to Engineering News Record 2008). During that time, He had an Excel Maven Boss; Nilton Teti, one of those old-time-Excel-geniuses who makes precious models, uses just the keyboard and hates BI corporate packages. His almost religious fervor for Excel, and his amazing knowledge, was the source of his great interest in Spreadsheets. During all these years he really experienced the professional benefits of using Excel to accomplish his duties; he says to you that being skilled in Excel gives you a tremendous advantage at the office and in your career! Having always been very entrepreneurial in his nature, he quit his job at Norberto Odebrecht in order to devote his full passion and knowledge of advanced Excel methods to others around the world who can benefit from it. His first entrepreneurial initiative was the site www.Excel-Spreadsheet-Authors.com, that later evolved to http://www.ExcelCream.com; a blog dedicated to Mid/Advanced Excel users so they know the quintessence of Excel spreadsheet and reach higher productivity and clarity. Email him at: john@excelcream.com www.ExcelCream.com 30 | P a g e