pivot tables. what are pivot tables? a pivot table gives you a way to group, summarize and compare...

33
Pivot Tables

Upload: ethen-grazier

Post on 31-Mar-2015

217 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

Pivot Tables

Page 2: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

What are Pivot Tables?

• A pivot table gives you a way to group, summarize and compare data from a spreadsheet

• You can do some of the same tasks with COUNTIFs and SUMIFs, but they are much easier with pivot tables

• John Walkenbach says, “Excel’s pivot table feature is, arguably, its most innovative and powerful feature.” [pg. 565]

Page 3: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

Getting Started

• We’ll start with a small example created with the RealEstateLoops application.

• In reality pivot tables really shine when applied to large file, but this will let us see everything in action.

• [Note.. These examples were created on a Windows computer. We’ll briefly show the Mac version as well. The examples transferred over to the Mac with no problem.]

Page 4: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

Example Data

Page 5: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

About the Data

• Your data should be in a contiguous rectangular table and every column should have a heading

• Get rid of any blank rows or columns within the data before you start

• Highlight your data range and then you are ready to start (although if you just select the upper left corner, and your data is surrounded by blank rows and columns, Excel will figure things out; useful for very large tables)

Page 6: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

Pivot Tables are on the Insert tab(Data tab on the Mac)

Page 7: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

Mac screen shot showing data tab and pivot table button

Page 8: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

The Pivot Table Dialog

I created a sheet named pivot in my current workbook earlier and entered this information

I started with cell A1 selected and Excel decided I wanted to use my whole table

Page 9: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

Dialog to Create Table

My next step is to choose some fields

Page 10: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

I chose Neigborhoods and got this…

Clicking the box to the right of Row Labels gives me a bunch of choices

Page 11: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

I decided to sort…

Page 12: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

Now I have this

Page 13: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

I also chose Price

Excel totaled the sales for each neighborhood

Page 14: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

Now I added Agent

Excel broke down the neighborhood information by agents

Page 15: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

Starting over, select Agent first

Page 16: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

Now add Price to see Agent totals

Page 17: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

And here it is broken down by neighborhood for each agent

Page 18: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

The final result, with formatting added for the dollar amounts.

Page 19: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

Another Approach

• Instead of clicking the boxes by the field names, you can drag them to the boxes at the bottom

• On the next slide, I dragged Agent and then Neighborhood to the Row Labels box, and then Sales and then Commission to the Values box. Then I formatted the columns with the dollar values in them

Page 20: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same
Page 21: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

How many times does each appear?

Here I dragged Agent to both the Row Labels and Sum of Values boxes. I got the count of how many sales each agent had.

Page 22: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

I also dragged price to the Sum Values box.

Page 23: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

Filters

• You can apply a filter to your data to only see selected items

• For example, you might want to only see entries greater than or less than a certain number, or the top 10 values, or something similar

Page 24: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

To Add a Value Filter…

First, click the drop-down arrow next to the Row Labels heading and choose Value Filters

Page 25: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

Choose a Filter…

Let’s look at who sold over $1M

Page 26: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

Complete the Dialog…

Page 27: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

Here’s the Result

Page 28: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

You can clear the filter so all the data shows again…

Page 29: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

Mac Version…

Page 30: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

I selected the upper left corner of the data and clicked the pivot table button

Page 31: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

I dragged Agent to Row Labels

Page 32: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

I interchanged Agent and Price

Page 33: Pivot Tables. What are Pivot Tables? A pivot table gives you a way to group, summarize and compare data from a spreadsheet You can do some of the same

Bottom Line

• Pivot tables are a very useful and powerful tool

• You can do everything with programming that you can do with pivot tables, and more

• But if a pivot table takes care of what you need, then it’s much quicker to use

• Playing with the pivot tables for a bit will help you learn how to use them