Filter and PivotTables in Excel

Similar documents
Excel Tables and Pivot Tables

Using pivot tables in Excel (live exercise with data)

Using Pivot Tables in Excel (Live Exercise with Data)

Sorting and Filtering Data

Excel Tables & PivotTables

MS Office 2016 Excel Pivot Tables - notes

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

QUICK EXCEL TUTORIAL. The Very Basics

Intermediate Microsoft Excel 2010

How to import text files to Microsoft Excel 2016:

Basic tasks in Excel 2013

File Name: Pivot Table Labs.xlsx

Intermediate Excel Training Course Content

Objective: Class Activities

Sort, Filter, Pivot Table

Excel Basics Rice Digital Media Commons Guide Written for Microsoft Excel 2010 Windows Edition by Eric Miller

How to insert table in Excel?

Solar Campaign Google Guide. PART 1 Google Drive

1 Introduction to Using Excel Spreadsheets

Data. Selecting Data. Sorting Data

Creating a Pivot Table

Instructions for Using the Databases

Become strong in Excel (2.0) - 5 Tips To Rock A Spreadsheet!

Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts. Microsoft Excel 2013 Enhanced

EXCEL BASICS: MICROSOFT OFFICE 2010

Word: Print Address Labels Using Mail Merge

Making Excel Work for Your Tribal Community

Lastly, in case you don t already know this, and don t have Excel on your computers, you can get it for free through IT s website under software.

Advanced Excel Skills

EXCEL BASICS: MICROSOFT OFFICE 2007

ITS Training Class Charts and PivotTables Using Excel 2007

Survey of Math: Excel Spreadsheet Guide (for Excel 2016) Page 1 of 9

To access BuckIQ, you must first be granted access. Send requests for permission to

Microsoft Excel Pivot Tables & Pivot Table Charts

Intermediate Excel 2013

Introduction to Microsoft Excel 2007

Microsoft Excel 2010 Step-by-Step Exercises PivotTables and PivotCharts: Exercise 1

New Perspectives on Microsoft Excel Module 5: Working with Excel Tables, PivotTables, and PivotCharts

Excel Level 1

Excel Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts. 6. You can use a table s sizing handle to add columns or rows to a table.

Excel Tips for Compensation Practitioners Weeks Pivot Tables

Microsoft Excel 2013/2016 Pivot Tables

Excel 2007 New Features Table of Contents

EXCEL BASICS. Helen Mills META Solutions

Instructions on Adding Zeros to the Comtrade Data

Coding & Data Skills for Communicators Dr. Cindy Royal Texas State University - San Marcos School of Journalism and Mass Communication

Lastly, in case you don t already know this, and don t have Excel on your computers, you can get it for free through IT s website under software.

Inserting or deleting a worksheet

SPREADSHEETS. (Data for this tutorial at

Excel Advanced

Quick Guide for Excel 2015 Data Management November 2015 Training:

EXCELLING WITH ANALYSIS AND VISUALIZATION

Pivot Tables in Excel Contents. Updated 5/19/2016

1.a) Go to it should be accessible in all browsers

PIVOT TABLES IN MICROSOFT EXCEL 2016

Creating an Excel Pivot Table Manually

Select a report and click this to view it. Select a report and click this to change it.

Excel 1. Module 6 Data Lists

ADD AND NAME WORKSHEETS

Excel 2013 PivotTables and PivotCharts

Good Byer Stores Australia Ltd Inventory - Whitegoods department

Homework 1 Excel Basics

Service Line Export and Pivot Table Report (Windows Excel 2010)

Introductory Excel Walpole Public Schools. Professional Development Day March 6, 2012

Microsoft Excel 2016 LEVEL 3

Discover contextual commands Select tables, charts, or other objects in a workbook to reveal additional tabs.

User Guide. DataInsight-Web

Patricia Andrada Quick Guide Excel 2010 Data Management-July 2011 Page 1

plus ltd Reports- PIVOT Essentials # Quick Instructions- (ie Click On [CO]) Notes / screenshots Runs your PM data into Excel

download instant at

Tutorial for downloading and analyzing data from the Atlantic Canada Opportunities Agency

1 Course Tallies and Lists with Designations

Mastering the Actuarial Tool Kit

Excel Foundation Quick Reference (Windows PC)

File Name: Data File Pivot Tables 3 Hrs.xlsx

LEIAG-Excel Workshop

DOING MORE WITH EXCEL: MICROSOFT OFFICE 2013

At least one Charley File workbook for New Excel. This has an xlsx extension and is for PC Excel 2007, Mac Excel 2008, and after.

Designed by Jason Wagner, Course Web Programmer, Office of e-learning NOTE ABOUT CELL REFERENCES IN THIS DOCUMENT... 1

Introduction to Excel

Enterprise Timetabler Beginners Training Worksheet 1

Working with Data in Microsoft Excel 2010

Tutorial for downloading and analyzing data from the Atlantic Canada Opportunities Agency

Chapter 7 Notes Chapter 7 Level 1

Top 15 Excel Tutorials

4HOnline has a powerful report system that allows you to take an existing report, customize it to suit your needs, and then save it to use again.

Microsoft Access 2016 Intro to Select Queries

Using Microsoft Excel

ABOUT PIVOTTABLES TABLE OF CONTENTS

Working with Macros. Creating a Macro

Les s on Objectives. Student Files Us ed. Student Files Crea ted

TUTORIAL Get Started with Tableau Desktop

Chapter-2 Digital Data Analysis

Advanced Excel Charts : Tables : Pivots

PivotTables & Charts for Health

Introduction to Access 97/2000

Pivot Tables. This is a handout for you to keep. Please feel free to use it for taking notes.

Designing Your Teacher Page. Medora Community School Corporation

Microsoft Excel 2010 Training. Excel 2010 Basics

WAAT-PivotTables Accounting Seminar

Transcription:

Filter and PivotTables in Excel FILTERING With filters in Excel you can quickly collapse your spreadsheet to find records meeting specific criteria. A lot of reporters use filter to cut their data down to size. Here are some examples: A reporter gets a spreadsheet with data covering her entire state. By filtering she can quickly pick out only the counties in her coverage area. When working with school test scores a reporter wants to look only at schools with enrollment greater than 500 but less than 1,000. He can do that by filtering using numbers and ranges. A political reporter can use filters with campaign contribution data to find all records that came from donors in a particular city or zip code. A crime reporter got a spreadsheet of incidents from the police department. She heard that there was an increase in crime on one particular street. She can find all of the incidents occurring on that street by filtering the address column to find any records containing that street name. To turn on the filters simply click anywhere in the data and then look under the Data tab for the Filter button. The icon looks like a funnel. Click on it and dropdown arrows should appear next to each column header. Figure 1 If you click on one of those dropdowns, you should find a unique list of all of the values contained in that column (which is a great way to get to know what each column contains). You can click on the box next to Select all to uncheck all items. Then select only what you want. The example below shows a filter to get only the records for the National League in a spreadsheet of baseball players. Once you re happy with your selections, close the box. 1

Figure 2 You ll know the filter is working by several things: 1) The dropdown next to the heading of the column you re filtering on will become a funnel. 2) All of the row numbers become blue. You now only see the records meeting your filter criteria. None of the other records have gone away, they are just hiding until you either change your filter or turn it off. 3) At the bottom left-hand corner of your screen you ll see a record count. This tells you how many records have been selected out of the total number of records. This can be very useful during an analysis: 2

If you want all of the records to come back you have two options: You can click back on the dropdown next to the heading of the column you are currently filtering and click on Select all. Or, you can just turn off the filters; often this is the easiest way to go because you can think of the filter like a light switch. You flip the switch and the filters appear, you flip it again and they turn off. To turn off the filters just click on Filter (the funnel icon) under the Data tab. It will clear all of your filters, bringing back every record. Now that we ve covered the basics of filtering, explore filters on your own to see all that they offer. Here are some highlights: Put filters on multiple columns at the same time. When working with number columns explore the drop-down number filters under Choose One. Options here include Greater Than, Between, Less Than and Top 10. Figure 3 Text columns also offer some useful filtering options. Find records that begin, end or contain certain characters. The Contains option is especially useful if you have to deal with information that is commonly misspelled or spelled inconsistently. For example, St. 3

Louis can be written many different ways, including St. Louis, St Louis and Saint Louis. None of these are wrong, but Excel will see them as different items. They all have Louis in common so you could use the Contains or Ends With options to grab all of the records at once. Figure 4 4

GROUPING We re journalists, so we re often concerned with answering questions like: Who is paying the most? Which county had the most? How many? What is the most common? When you start wanting to ask your data questions like this and a simple sort won t do, you re going to need to use pivot tables. One of the main concepts to grasp with pivot tables is grouping. Imagine if I had a traditional deck of cards, shuffled them up, took two cards out and put them in my pocket. You d know I had 50 cards remaining, but if I asked you which cards were missing, what would you do? You wouldn t be able to just look at the deck of cards and tell me that I had the Queen of Hearts and the 8 of Spades in my pocket. You d put the cards into piles, each containing one type of card, such as Kings, Aces, 7 s, etc. After you d gone through the 50 cards you d be able to see which pile had fewer than four cards to discover which ones are missing. Excel is going to do the same thing for us with a pivot table. Before learning this skill many journalists have simply used a piece of paper and a pencil to tally up things and report on them. Take, for example, this listing of individuals and firms barred from doing business with the World Bank (See Figure 5). One reporter wanted to write a story looking at the number of debarments for his country compared to others. He went through the list of more than 500 records of companies and individuals and kept a tally of the number of records for each country. The story isn t impossible without Excel but analyzing this same information in a spreadsheet can drastically cut down on the time and increase accuracy by doing the math for you. Follow the steps below to walk through a basic pivot table using WorldBank.xlsx. The data contain the name, address and country of the debarred individuals or firms as well as the ineligibility dates and grounds for debarment. 5

Figure 5 Figure 6 6

To find out the total debarments for each country you ll need to put the countries into groups using a pivot table. BUILDING A PIVOTTABLE First, highlight all your data: select A1 and hold down Shift + Command, then hit the right arrow (which should highlight all the headers) and the down arrow (which will highlight all the rows). Next, go to the Data tab and look all the way to the left. You should see PivotTable. Click the small down arrow and choose Create Manual PivotTable. Figure 7 The Create PivotTable window should open. It has two pieces to it: 1) You re asked to select the data you d like to analyze with your PivotTable. This is why you should select your data in advance. The Table/Range: information in Figure 8 is showing us exactly what we selected. It looks funny, but really it s just saying that we selected cells A1 all the way through F608 in the sheet called WorldBank found in this workbook. 2) Excel wants us to tell it where we d like to put the PivotTable. By default it selects New Worksheet. This is good because we don t want the PivotTable to just appear right on top of our data. 7

Figure 8 If you follow our steps you should always be able to simply click OK in this window, but it s still good to understand exactly what Excel is doing. After you click OK, Excel pops you into a new sheet with all of the tools you ll need to build your summary. There are two pieces, the various boxes on the left and the PivotTable Builder on the right. The boxes on the left are where your summary or chart will appear and change each time you do something in the task pane on the right. See Figure 10 for more information on this task pane. Figure 9 8

Figure 10: PivotTable Field List Task Pane We call them column headings, but Excel calls them fields. This is a list of all of the column headings, or fields, in the data. These boxes allow you to do some more complicated things in your PivotTable. We won t use them in the introduction to the concepts, but we ll explore them in some of the in-class and homework exercises. This is where you put your groups. Think of this as the labels for your chart. It s where you d put counties, team names, cities, etc. anything that will be the group. We typically start PivotTables in this area. Just drag a column heading from the field list here and the PivotTable box will automatically contain a list of unique values found in the column you chose. Think of this as the place where math happens. Anytime you want to find the sum, average or total number of records for a category you ll work in this area. Just like we ve done with other datasets, frame your analysis with a question. In this situation we want to know which country has the most firms and/or individuals on the debarred list. To answer that question you ll move Country from the Field name list to the Row Labels box. As 9

soon as you drop Country under Row Labels you should see a list of country names appear in the PivotTable box. This list is alphabetical and each country name should be listed only once. Figure 11 Next, we ll want to count the number of debarments for each country. Remember that each row in the spreadsheet represents one firm or individual debarred. To count up the totals by country, drag Country under the Values box. See Figure 12. 10

Figure 12 The last step is to get the country with the most debarments on the top of the list. For this we ll need to sort. Sorting is different in PivotTables than sorting in a regular sheet. Here, all you need to do is click on any number next to a country, and use the dropdown tool on the sort icon to select Descending (Figure 13). You can also sort the records alphabetically by clicking on any one of the country names, selecting the sort icon, then whichever option you prefer. Figure 13 11

Sorting by the number of debarments brings Canada to the top of the list, followed by the United States, Indonesia and the United Kingdom. Notice that Excel creates a Grand Total row at the bottom. This total should equal the number of records in your original spreadsheet. Figure 14 12