navigate site menu

Start learning with our library of video tutorials taught by experts. Get started

Excel 2008 for Mac: Pivot Tables for Data Analysis

Excel 2008 for Mac: Pivot Tables for Data Analysis

with Curt Frye

 


In Excel 2008 for Mac: Pivot Tables for Data Analysis, Microsoft Most Valuable Professional Curt Frye helps dispel the common fear of the Pivot Table feature, demonstrating how to use this powerful tool to discover valuable business intelligence. Curt shows how to create Pivot Table reports from internal Excel data and outside data sources, use filters to focus on the most important data in the sheet, and prepare a Pivot Table report by applying formats and rules. Exercise files accompany this course.
Topics include:
  • Sorting across data sources to show relative importance Adding, removing, and positioning subtotals and grand totals Creating conditional formats to highlight subsets of data Using color scales to emphasize specific information Adding a trendline to a PivotChart report Updating and refreshing PivotTable data sources

show more

author
Curt Frye
subject
Business, Data Analysis
software
Excel for Mac 2008
level
Intermediate
duration
1h 6m
released
Sep 22, 2009

Share this course

Ready to join? get started


Keep up with news, tips, and latest courses.

submit Course details submit clicked more info

Please wait...

Search the closed captioning text for this course by entering the keyword you’d like to search, or browse the closed captioning text by selecting the chapter name below and choosing the video title you’d like to review.



Introduction
Welcome
00:03Hi, I'm Curt Frye.
00:05Welcome to Excel 2008 for Mac Pivot Tables for Data Analysis.
00:09In this course, I'll show you how to use Pivot Tables to make sense of your organization's data.
00:13I'll begin by showing you how to create a Pivot Table from data already in your Excel workbooks.
00:18Then, using that knowledge as a base,
00:20I'll demonstrate how to create Pivot Tables using data from an external source.
00:24We'll enhance your ability to analyze your data by showing you how to reorganize, or pivot, a Pivot Table.
00:29After you organize your Pivot Tables data, you can sort the data to show relative importance and relevance,
00:34or create filters that enable you to focus on the data you need to develop useful insights into your business.
00:39In short, I'll show you how to summarize and analyze data using one of Excel's most powerful and overlooked features.
00:45Let's get started with Excel 2008 for Mac Pivot Tables For Data Analysis
Collapse this transcript
Using the exercise files
00:00If you are a Premium member of the lynda.com Online Training Library or if
00:04you're watching this tutorial on a DVD-ROM, you have access to the exercise
00:08files used throughout this title.
00:10There are four chapters in this title and within each chapter there are a number
00:14of exercise files that you use.
00:17Those are all Excel workbooks, except for one file in Chapter01, and that is the
00:22OutsideSource.csv file.
00:25CSV just stands for Comma Separated Values, and you will be importing those
00:29values into an Excel worksheet.
00:31If you are a monthly subscriber or annual subscriber to lynda.com, you don't
00:35have access to the exercise files, but you can follow along from scratch or
00:38create your own assets.
00:39Let's get started.
Collapse this transcript
1. Creating and Pivoting PivotTable Reports
Introducing PivotTable reports
00:00Before I get into the details of how to create and manipulate Pivot Tables,
00:04I'd like to demonstrate a few of the ways Pivot Tables help you analyze your worksheet data.
00:08A Pivot Table looks a lot like a regular worksheet with rows and columns of
00:11data, labels, sub totals and grand totals.
00:14But what Pivot Tables enable you to do is change the structure of your data to
00:18emphasize different aspects of that data.
00:20As an example, take a look at the Pivot Table that I have in the worksheet
00:24currently on your screen.
00:26You'll see that I have revenue data for two companies:
00:28FirmA and FirmB, broken out by month over two years: 2008 and 2009.
00:34A Pivot Table's structure consists of four separate areas.
00:38On the left side we have the rows area, which in this case contains the year and month fields.
00:43The Pivot Table uses year and month to determine which values appear in which
00:46rows inside the Pivot Table.
00:48There is also the columns area.
00:50The field Company is currently in the columns area.
00:52We have FirmA and FirmB.
00:54Those two values determine the organization of data within the Pivot Table's columns.
00:59The third major area of your Pivot Table is the data area, and that is the body
01:03of the Pivot Table, and it contains the values from the source data table.
01:07The fourth area of the Pivot Table, which I am not using here, is the Page Fields area.
01:11You use the Page Fields area to filter your Pivot Table using values that do not
01:15change the organization of your Pivot Table.
01:18The real value of a Pivot Table is that it enables you to reorganize your data dynamically.
01:23So, for example, let's suppose that I wanted to see each company's performance by
01:27year, broken out by month.
01:29Right now, I have it by year and month, and then by company.
01:32If I want to change the emphasis of my data, I can drag the Year field below
01:37Company and the Pivot Table reorganizes the data with this different emphasis.
01:42Now if I want to see how FirmA and FirmB did in 2008 by month, I can do so fairly easily.
01:49I can also limit the data that appears inside of a Pivot Table.
01:52So, for example, if I want to show data only for FirmA, I click a cell that
01:57contains FirmA or FirmB.
01:59As long as I select a value from the same field by which I want to filter, I am fine.
02:04I'll go up to the PivotTable toolbar.
02:06Click the PivotTable button.
02:09Click Field Settings, and then within the Pivot Table Field dialog box I can
02:13select which value I want to hide.
02:14In this case, I want to see values only from FirmA, so I will hide values for
02:20FirmB and then I'll click OK.
02:23The Pivot Table in this new configuration only shows values for FirmA.
02:26I hope this brief demonstration has given you a feel for Pivot
02:29Table's capabilities.
02:31In the remaining lessons in this course, I'll go into much more detail on how to
02:34create and manipulate Pivot Tables and the data they contain.
Collapse this transcript
Formatting data for use in a PivotTable report
00:00Pivot Tables enables you to summarize and reorganize your data dynamically, but
00:04you can't summarize just any data set.
00:06In most cases, your data needs to be laid out as a data list.
00:10The source data must be laid out as a table, with column headers and no
00:13extraneous data surrounding the table.
00:15The data I have in this worksheet fits that description.
00:18I have five columns:
00:20Year, Quarter, Month, Company and Revenue.
00:25Also notice that I have no other values in the column to the right of the data list.
00:30So, for example, if I were to type just anything, even just a stray value, when
00:35I create the Pivot Table, Excel will try to include this entire column of blank
00:39values except for the number 50 into the Pivot Table.
00:42That's not what I want.
00:43So, I will delete the value.
00:46And now, Excel will create the Pivot Table using only the values from these five rows.
00:51Also when you create a Pivot Table from data contained in the data list, you
00:54should make certain that the headers, in this case Year, Quarter, Month, Company
00:58and Revenue are formatted differently from the values in the body of the list.
01:02My favorite formatting to use is Center and Bold, so you'll notice that I have
01:06these values centered within the cell and formatted using bold face.
01:10You can also create your Pivot Table from an Excel list.
01:13To create a list, click any cell in your data collection.
01:16Go up to Insert and click List.
01:20You can use the controls in the List Wizard to create your list.
01:23First you should verify whether Excel correctly identified the cell range that
01:26contains the data for your list.
01:28In this case we have A1 through E49, which I know is correct, and because
01:33I've formatted my headers differently, Excel correctly identifies that my
01:36list does contain headers.
01:37I am not using an external data source. And I want to create the list or in existing sheet.
01:42There are other options for creating a list, but I don't need to use them in
01:46this case, so I would just click Finish.
01:49Excel creates my Excel list and it also displays the List toolbar.
01:53I won't go into every aspect of what you can do with List, but there are two
01:57items that I would like to tell you about.
01:59The first is filtering the data that appears within your Excel list.
02:02So lets say, for example, that I only wanted to see values relating to the month of January.
02:08To display just those values, I could go to the Month header, click the filter
02:13arrow, and select the values that I want to display.
02:16In this case, I was only interested in let's say January.
02:20When I click that item, Excel displays only those values from the month of
02:23January, both from FirmA and FirmB, and for the year 2008 and 2009.
02:29You can also display what's called the Total Row.
02:31You'll see that button here on the List toolbar.
02:34If I click Total Row, Excel includes a Total Row at the bottom of the list.
02:39By default the Total Row finds the arithmetic sum of the visible values in
02:43the column above it.
02:44So, for example, in this case, these values total up to 414.
02:48If you want, you can change the summary operation that the Total Row applies.
02:52If I click the cell in the Total Row and then click this arrow, I can select the
02:56summary operation that I want to apply.
02:58So if I wanted to find the average, I could click Average, and I see that the new value is 103.
03:04Changing it back to Sum. I get my value of 414.
03:07If I want to get rid of the Total row, I can just click the Total Row button on
03:11the List toolbar and it goes away.
03:15Once you have your source data arranged in a data list, you can create a Pivot Table.
03:19I cover the other case in the lesson entitled 'Consolidating Data from
03:23Multiple Sources,' found later in this chapter.
Collapse this transcript
Creating a PivotTable report
00:00Pivot Tables are powerful and flexible Excel analysis tools.
00:04A Pivot Table lets you rearrange, sort and filter a dataset on the fly, so you
00:08can analyze it from several different perspectives with a minimum of effort.
00:11In this lesson, I will show you how to create a Pivot Table from a data list
00:14that's stored in the same workbook.
00:16To create a Pivot Table, click any cell in the data list from which you want to
00:20create the Pivot Table and then on the Data menu, click PivotTable Report to
00:25display the PivotTable Wizard.
00:27In this case, the currently selected option that I want to create the Pivot Table from
00:32an Excel list or database is correct,
00:34so I can click Next.
00:37The next Wizard screen identifies the data that Excel thinks that I want to
00:40include in the Pivot Table.
00:41In this case, that is the range from A1 to E49, which I know is correct,
00:46so I can click next.
00:49On the last page of the PivotTable Wizard, you can choose whether to put the
00:52Pivot Table on a new sheet or on an existing sheet.
00:55I prefer to put my Pivot Tables on new sheets, so that it's not juxtaposed with
00:59the data from which I created the Pivot Table.
01:02To me it feels more crowded and I would rather have the Pivot Table on it's own
01:05worksheet, so I can view it on isolation.
01:08If you prefer, you can select the Existing sheet option and type in the name
01:12of the worksheet or select the worksheet using the RefEdit Control where you want to create it.
01:16But in this case, I still want to do a new sheet.
01:18I will select that option and I will click that Finish.
01:21I will bring up the zoom level a bit so you get a better view of the data.
01:25So here I have a blank Pivot Table.
01:27I have five fields of values available for me to structure the Pivot Table.
01:31I have Year, Quarter, Month, Company, and Revenue, which mirror the fields that
01:34I have in my data list.
01:35So to create the Pivot Table, I can drag the fields from the PivotTable toolbar
01:40to the body of the Pivot Table.
01:41I will start off by adding the Year field.
01:45Then I will add the Month field.
01:48Notice that the I-bar, this gray bar, appears to the right of the Year field header.
01:53That means when I add the Month field to the PivotTable Report it will be at a
01:57lower level of organization than the Year field.
02:00So I will drop it, and along the top I will place Company.
02:04Those will go in the column fields area.
02:06So I will drop it here. And now I can add my Revenue, which will go into the Data Items area.
02:13In my Pivot Table, I have the data arranged by year, broken out in detail by Month.
02:18And in the columns,
02:19it's broken out by FirmA and FirmB, which are the only two companies that appear
02:24in the Company field.
02:25Now that you have learned how to create a Pivot Table, you can move forward and
02:28discover how to rearrange your data dynamically.
Collapse this transcript
Pivoting a PivotTable report
00:00The real power of the Pivot Table comes out when you want to rearrange your data dynamically.
00:04A task that would take several minutes if done by hand takes just a few seconds
00:08when you summarize your data in a Pivot Table.
00:10The row and column headers provide the basic outline of your Pivot Table data.
00:14In this case, we have Year, and then we have companies:
00:17FirmA and FirmB. And the data in this cell represents FirmA sales for the year 2008.
00:24If you change the row and column header positions, you change the organization
00:27of data in your Pivot Table.
00:29For example, if I pivot the Company field header beside Year, then we'll see a
00:33different arrangement.
00:34To do that, I move the mouse pointer over top of the field header.
00:38You see the grab-hand.
00:39Press down the left mouse button and drag the field until you see the vertical
00:44I-bar here to the right of Year.
00:46When I drop it, we're organized by year and now by company.
00:49If I wanted to organize the data by company and then by year, I would drag the
00:52Company field header to the left of Year.
00:55And you see half of an I bar there, right at the edge of the Pivot Table.
00:58So dropping it, we now have our data arranged by company and then by year.
01:03I'll put the Company field header back up to the top.
01:07If you add a second row or column header, you create subdivisions within your data.
01:11So, for example, if I were to bring down Quarter, which is a period of three
01:15months, put it to the right of year, and drop it, you now see your data arranged
01:20by year and by quarter, and the values are further broken down.
01:23So we have FirmA's revenue for quarter number 1 of 2008, and so on, with the
01:27same value selected for 2009.
01:30You can continue adding subdivisions, such as by adding month to the right of quarter.
01:35Now you see quarter number one, total there, broken down again by individual
01:40month within quarter number one.
01:42If you want to remove a field from a Pivot Table, you can't just drag the field
01:46header to the PivotTable toolbar.
01:48You end up dropping it in the Page Fields area.
01:51Instead, what you need to do is select any cell within the field and then, on the
01:57PivotTable toolbar, click the Field Settings button.
01:59Verify that the field you're going to hide appears in the Name box and click Hide.
02:05Changing the Pivot Table's arrangement shifts the data's emphasis, enabling you
02:09to examine the data from different perspectives quickly and easily.
Collapse this transcript
Importing data from an external source
00:00Excel 2008 enables you to build Pivot Tables from data found both inside and
00:04outside the workbook where you create the Pivot Table.
00:07If your current data source resides in a file outside your current workbook, you
00:10can import the data into Excel.
00:12To bring data into Excel, you start on a blank worksheet and then on the
00:17File menu click Import.
00:20In the Import dialog box, you can select the type of file that you want to bring in.
00:24You can have a CSV file, which is Comma-Separated Values.
00:28You can also bring in data from a FileMaker Pro database, from an HTML file,
00:33or from a Text file.
00:35In this case, the data I want to bring in is in a comma-separated values file.
00:39The option is selected, so I will click Import.
00:42I can now choose a file.
00:44In the Exercise Files folder under Chapter01, I have OutsideSource.csv.
00:52I'll click it and click Get Data.
00:56When I do, Excel displays the Text Import Wizard.
00:59The first thing you should do is select the type of file that you're
01:02bringing in, whether the data you're bringing in was Delimited, meaning that
01:06there are characters such as commas or tabs that separate each field's
01:09values, or Fixed width.
01:11In a Fixed width file, the fields are aligned in columns and there is a
01:14definite number of spaces or characters between each field.
01:17For example, the first field could be five characters long, the second could be nine and so on.
01:23In this case, the file is Delimited,
01:25so I will continue on.
01:26I do want to start the import at row 1.
01:29The file origin is on my Macintosh and the Data preview appears to be normal.
01:34So I'll click Next.
01:35Now you can identify the Delimiters contained within your dataset.
01:39In this case, the data contains Commas, which is selected, and then Tab is also selected.
01:45Tab is another common delimiter.
01:47There are no tabs in our dataset, so we can leave it selected or we can clear it.
01:50It doesn't really matter either way.
01:52Looking again at the Data preview pane, we see that Excel has identified
01:56the columns correctly:
01:58Year, Quarter, Month, Company and Revenue.
02:00So we can click Next.
02:02You can use the controls on this screen of the Text Import Wizard to assign data
02:05types to each of the columns.
02:07In this case, we don't need to assign any data types because Excel would do that
02:11when we create our Pivot Table.
02:12So I can just once again ensure that the different columns are correctly
02:16outlined and click Finish.
02:19The Import Data dialog box appears asking where I want to put the data.
02:22I'll put it on the existing sheet, in cell A2, which is the one currently
02:27selected and click OK.
02:30And there is the data.
02:31Now that I've created my data list, I want to format the column header
02:34separately so Excel knows that they are column headers when it creates the Pivot
02:38Table from this data.
02:39So I'll increase my zoom level a little bit, just to make things easier to handle.
02:46Drag the toolbar out of the way.
02:49Select those cells and then on the Formatting palette, Bold and Center Alignment. There we are.
02:56Click there, and save my work.
02:59Now that I have my data list in place, I can create my Pivot Table.
03:02Again, it's Data>PivotTable Report and I've already worked through the
03:07PivotTable Wizard before and I know that all the default selections are what I'm
03:11going to use anyway.
03:12So I'll just click Finish.
03:14There is my Pivot Table.
03:15I can go back to the familiar configuration of Year and Month in the Row area,
03:21Company in the Column Fields area, and Revenue in the middle.
03:28It's important for you to understand that when you import a data file, you
03:32create a snapshot of the data source at the time you downloaded it.
03:35If the data in that file might change, be sure to download a current copy of the
03:39file before starting your analysis.
Collapse this transcript
Consolidating data from multiple sources
00:00Most of the time you will create a Pivot Table from a data list, but you can
00:03also summarize multiple data ranges using a Pivot Table if the data is
00:07formatted appropriately.
00:09To consolidate a series of data ranges into a Pivot Table, the ranges must be
00:12laid out in cross tabular format and have exactly the same structure.
00:17As an example, consider the worksheets that I have in my
00:19Consolidating.xlsx worksheet.
00:22On the SupportCalls worksheet, I have data reflecting the number of support calls
00:25received in the years 2007, 2008, 2009 and 2010 for the four regions
00:31North, South, East and West.
00:33I have the same data for order calls on the OrderCalls worksheet.
00:40And I have the same data for return calls for product returns on the
00:44ReturnCalls worksheet.
00:46Please note that the Region and Year column and row identifiers occur within the same cell.
00:51The reason you need to do that when you are consolidating different ranges into
00:55a Pivot Table is that the data source must be a perfect rectangle.
00:59In other words, if I were to have region here and year here in C2, Excel would
01:04try to bring in data from B2 to F7 because it would include these two cells in
01:10the region, which would extend the definition all the way from B2 to F7.
01:15So now that my data is laid out properly, I can bring it into a Pivot Table.
01:19To do that, I click Data>PivotTable Report.
01:23On the first page of the PivotTable Wizard I can select Multiple
01:27consolidation ranges. Click Next.
01:31On Step 2, I can decide how many page fields I want to create.
01:35Page fields are fields that you can use to filter your Pivot Table without
01:39changing its arrangement.
01:41In this case, I don't want to create any, so I will create the page fields I want.
01:45I'll select that option and I'll click Next.
01:50Here on Step 2b of the wizard, I can select the ranges that I want to include
01:53in the Pivot Table.
01:54I'll just drag this a bit over to the side to uncover the entire data range that
01:58I'm going to be including.
02:00So now that I have the cursor here in the Range box, I can select the cells
02:06that I want to include,
02:08verify that they appear correctly in the Range box, and click Add.
02:13I can now do the same thing for my other two fields.
02:17So I'll go to OrderCalls. Select that range.
02:23It's correct.
02:24Click Add. And then do the same thing on the SupportCalls worksheet. And Add.
02:33So I have the same ranges from OrderCalls, ReturnCalls, and SupportCalls.
02:37Now that they are on place, I can verify that I'm creating zero page fields,
02:41which is what I want. Click Next.
02:44Verify that I want to create the Pivot Table on a new sheet, and click Finish.
02:48I'll increase the zoom, so you have a better look at the data.
02:52So now I have a Pivot Table.
02:53What's different about this Pivot Table is that I do not have the names of
02:58the fields that I want.
02:58So, for example, all I have are column and row, when, in fact, the row values
03:03are regions and the column values are years.
03:06To change that, I click the Row field header and then on the PivotTable toolbar,
03:11I can click PivotTable>Field Settings.
03:15Inside the PivotTable Field dialog box I can assign a new name to my field.
03:20I'm looking in the rows and these are the regions, so I'll type Regions and OK,
03:26and the field name changes.
03:27I can do the same thing for the Column.
03:30Click the Column field header, PivotTable> Field Settings and I'll change that to Year.
03:37Unfortunately, you can't change the Value field name, so I'll leave it as it is.
03:42You probably won't create many Pivot Tables by consolidating multiple data
03:45ranges, but it's nice to know the capability is available if you're working with
03:49legacy workbooks that have data laid out in cross-tabular formats.
Collapse this transcript
Updating and refreshing data sources
00:00Companies generate new sales, budgetary and operations data all the time,
00:04so Pivot Table data sources really remain static.
00:07In this lesson, I will show you how to manage your data connection to ensure your
00:10Pivot Table contains the most recent data available.
00:13You can display your Pivot Table's data connections by clicking any cell on
00:16the Pivot Table and then on the PivotTable toolbar clicking the PivotTable Wizard button.
00:23In the PivotTable Wizard, click the Back button and here in the Range field
00:28you can see the cells from which Excel is drawing its values.
00:31Now let's see what happens if I edit a value in the data source for this Pivot Table.
00:35I will click Cancel. And the data source is on Sheet2, so I will go there.
00:41The first value in the list is for 2008, Quarter 1, January sales for FirmA. And
00:47I will change that value to 10. And press Return.
00:51If I go back to the Pivot Table on Sheet1, the value is still 67, but on the
00:57PivotTable toolbar, if I click the Refresh button, Excel fills in the new
01:01value, updates the Grand Total, and also updates the Total for 2008 for FirmA and for FirmB.
01:07But now let's suppose that you add a new row to the data source.
01:11What happens in that case?
01:13On Sheet2. And add a row to my data list.
01:17So let's say this will be the first value for 2010, Quarter 1, January, FirmA.
01:24And I will type in a value 47. And hit Return.
01:31If I go back to the Pivot Table on Sheet1 and click the Refresh data button on
01:36the PivotTable toolbar, nothing happens, and the reason nothing happened is
01:40because the Excel did not update the data range definition.
01:43You will need to do that yourself.
01:45So again, click the PivotTable Wizard button on the PivotTable toolbar. Click
01:50back to go to the second page of the PivotTable Wizard. And then edit the range.
01:56In this case, I added one row, which means that the bottom cell in the
02:00data source is now E50.
02:02So I will erase 49. Make it 50.
02:05That's the only change I want to make, so I will click Finish.
02:09And you can see that Excel added the data for 2010, January, FirmA.
02:14Whenever I view a Pivot Table, I always click the Refresh button to include any
02:18updates to the data source.
02:19If you create Pivot Tables based on a data list that might have more or fewer rows
02:23than it did when you last examined your Pivot Table, you should examine the data
02:26source list to identify any new rows and edit the data source in the PivotTable
02:31Wizard to reflect the change.
Collapse this transcript
Managing PivotTable reports
00:00Pivot Tables behave a bit differently than other Excel workbook elements, so
00:03you'll need to use a few slightly different techniques to select, copy and
00:07delete them within your workbook.
00:08You can rename a Pivot Table by clicking any cell on the Pivot Table, and then
00:12on the PivotTable toolbar, clicking Table Options and typing a new name for the
00:17Pivot Table in the Name box.
00:19This Pivot Table summarizes corporate revenue so I will call it 'CorpRevenue.'
00:24When you're done, click OK or press Enter and you have changed your
00:27Pivot Table's name.
00:28If you want to move a Pivot Table to a different location within a workbook, you
00:32can do that by clicking any cell on the Pivot Table, and then on the Pivot Table
00:36toolbar, clicking the Pivot Table Wizard button.
00:39The last page of the Pivot Table Wizard displays the controls that you can use
00:42to relocate your Pivot Table.
00:44If you want to put it on an existing sheet, you can click the RefEdit control at
00:49the right side of this range box.
00:52Select the destination.
00:53In this case, I will select Sheet 3.
00:55Click the cell at the top left corner where you want it to end up.
00:59Click the RefEdit control to re-expand the dialog box.
01:02Verify that the destination is correct and click Finish.
01:06I want to use Sheet 3 again for a later operation, so I'll click Undo and just
01:11get rid of the data on Sheet 3.
01:14If you want to create a second Pivot Table from the same data source, you can do
01:17that by copying the Pivot Table you've already created.
01:21To do that, click any cell in the Pivot Table and then on the PivotTable toolbar
01:25click the PivotTable button>Select>Entire Table.
01:29Then on the toolbar click Copy.
01:32Click your destination.
01:33I will use Sheet 3.
01:35Cell A1 is still selected, so I'll press Paste.
01:38And I have a second Pivot Table based on my existing data source.
01:42Once again, I will use Sheet 3 for later operation, so I'll click Undo and have
01:46Excel remove the Pivot Table.
01:47I am going back to the Pivot Table on Sheet 1.
01:51Press Escape to remove the selection.
01:52What I'll demonstrate now is how to copy a Pivot Table arrangement without
01:56creating a new Pivot Table.
01:58To do that, once again, you select the entire Pivot Table.
02:01PivotTable>Select>Entire Table. Click Copy.
02:06Click the worksheet where you want to paste the cells.
02:08In this case, I will use Sheet 3 again.
02:10And then on the Edit menu, click Paste Special.
02:13And then in the Paste Special dialog box, select the Values option. And click OK.
02:19Excel pastes the values but does not create a Pivot Table.
02:23If you want to delete a Pivot Table, you can select the Pivot Table.
02:27Again, PivotTable>Select>Entire Table and press the Delete key.
02:31Excel does retain the formatting, but the Pivot Table is gone.
02:35With these techniques in mind, you will be able to manage your Pivot Tables effectively.
Collapse this transcript
2. Summarizing PivotTable Data
Adding and removing subtotals and grand totals
00:00Excel Pivot Tables display your data in as much or as little detail as you prefer.
00:04Pivoting and filtering the Pivot Table changes how the individual data elements
00:08are displayed, but you can also show or hide the subtotals and grand total rows
00:12and columns to summarize your data as desired.
00:14Subtotals appear at the bottom of each group.
00:17In this case, we have the year 2008.
00:19Month is the lowest level of organization in the Pivot Table, so we don't have
00:24any subtotals for it.
00:26At the bottom of 2008, we have a subtotal for all the months for FirmA and all
00:30of the months for FirmB.
00:32To control subtotals for a field, you click any cell on the field, in this
00:35case 2008 for year, and then on the PivotTable toolbar click the Field Settings button.
00:42From here, you can calculate how Excel calculates your subtotals.
00:45For example, if you wanted to hide them entirely, you could click None.
00:49Click OK and they go away.
00:53To make another change, click the Field Settings button. And if you want to
00:56change to another calculation operation, you can click Custom.
01:00The default operation is Sum, where you find the arithmetic sum of all the
01:03values within a group.
01:05If you wanted to change it to say Average, you could click Custom, click
01:08Average and then click OK.
01:11Now instead of the arithmetic sum, Excel calculates the average value, based on
01:15the inputs in this group and also in this group.
01:18If you want to change it back, click the Field Settings button, click Automatic,
01:22click OK and there you have it.
01:24You can also control your Pivot Table's grand totals.
01:27To do that, click any cell on the Pivot Table and then on the PivotTable
01:31toolbar, click the PivotTable button and click Table Options.
01:35In the PivotTable Options dialog box, you can check or uncheck these two
01:39boxes so that you can show or hide grand totals for columns and or grand totals for rows.
01:44Checking the boxes mean they are displayed.
01:45Clearing them means they are not.
01:47So if I close them both and click OK, the grand totals go away.
01:51If I want to bring them back, just open the dialog box again.
01:56Check the boxes and back they come.
01:59You can also use other controls in the Table Options dialog box to determine
02:02whether Excel includes hidden values in subtotals.
02:05Usually the idea of filtering a Pivot Table is to hide values you don't want to
02:08include in your summaries, so I usually leave that box unchecked.
02:11The box I am talking about is in Table Options.
02:15It's right here, just below the Grand totals for columns and the Grand totals
02:19for row options and the Autoformat table option.
02:22If you do want your subtotals to include hidden page items, check the box.
02:26You usually don't, so you can leave it unchecked.
02:28I didn't make any changes I want to keep, so I will click cancel.
02:31Subtotals and grand totals provide easy-to-read summaries of the values in your
02:35Pivot Table's rows and columns.
02:36If you find those extra rows and columns are a distraction, or if you just want
02:39to emphasize the values in the body of the data area, you can hide them quite easily.
Collapse this transcript
Changing the data field summary operation
00:00Most of the data lists you summarize using Pivot Tables contain some sort of
00:03financial or personnel data, such as sales or hours worked, which means that
00:07you'll usually want to find the sum of the values in the list.
00:10You are not limited to adding values together though.
00:12You can choose from several summary calculations and also have the ability to
00:15change the type of value shown in the data area.
00:18For example, you can express individual values as a percentage of the column or
00:22row total or compare values to those of the previous year.
00:25To change the summary calculation used in the Pivot Table, click any cell in the
00:29PivotTable data area. And then, on the PivotTable toolbar,
00:32click the Field Settings button.
00:34Then in the Summarize by list, click the operation that you want to use.
00:38So if I wanted to change the summary operation to average, I click Average,
00:43click OK and Excel now displays the average. For 2008,
00:47the monthly average would have been 80.25. For 2009,
00:52that number there, and so on.
00:54You'll notice that the grand total values also take on the average.
00:56So 67 and 128 averages out to 97.5.
00:5969 and 131 averages out to 100 and so on.
01:05I will show you one other operation, in this case, Count.
01:08The Count operation counts the number of occurrences for each data point.
01:11In other words, how many measurements we had for January of 2008 for FirmA,
01:15for 2009, same thing.
01:17So if I click Count and click OK, I get one measure for each for a grand total of two.
01:23Again, it doesn't work that well in this circumstance, but you should use
01:26Count later on in case your Pivot Tables contain data that doesn't communicate discrete elements.
01:31So I will click Undo.
01:33Another way to summarize data inside your Pivot Table is to change how Excel
01:37calculates the values, not only by operation but the way it displays the value
01:41in relation to other values in the Pivot Table.
01:43I will give you an example.
01:45Suppose that I wanted to display the 2009 values as a percentage difference from
01:49the values from 2008.
01:51To do that, I would click any cell in the data area.
01:53Click Field Settings button and then click Options.
01:57Then in the Show data as area, instead of Normal I would display it as % Difference From.
02:05I can then select the base item from my comparison.
02:08In this case, I want to compare 2009 to the previous year, which is 2008, so I
02:12will click Previous.
02:14If I had more data, for example, if I had a column for 2010, clicking previous
02:18would compare that data to 2009.
02:20If I were to select 2008, then the Pivot Table would compare the data in 2009 to
02:252008 and then it would also compare the data in 2010 to 2008.
02:30So make sure that you have your basis for comparison set properly.
02:33But in this case, I am comparing percentage different from the previous year, so I can click OK.
02:392008 disappears because there is no earlier year to which to compare it and 2009
02:45is displayed as a percentage difference from 2008.
02:48Just by way of example, I'll show you another comparison.
02:50Go back to the Field Options button.
02:53Suppose I wanted to show the data as a running total.
02:56So in this case, I would have a running total in. And let's see a running total by month.
03:01When I click OK, Excel changes the Pivot Table.
03:05And here's what's going on.
03:06You'll notice that the values in each column go up continuously.
03:11The reason that happens is because Excel adds the value for February 2008 for
03:15FirmA to the value from January of the same year.
03:18It then does the same thing for March, for April, for May and so on.
03:22You'll notice that the subtotal row is blank.
03:24That's because the value in December for 2008 and 2009 is the subtotal.
03:30You should take the time to experiment with the summary operations and settings
03:33available for use in the data area.
03:35You will probably find one or more operations, other than addition, that provide
03:39meaningful information about your data.
Collapse this transcript
Summarizing more than one data field
00:00When most users think of a Pivot Table, they usually visualize it with a single
00:04data set in the data area.
00:06While that's certainly the most common data area configuration, you can also
00:09summarize more than one data field at a time.
00:12In this worksheet, for example, I have Company and Month in the row area and
00:16Year in the column area.
00:17There is a single data field and that is Revenue.
00:21If I want, I can add a second copy of the Revenue data field to the data area.
00:25To do that, I go to the PivotTable toolbar and drag the Revenue field to the data
00:30area. And Excel adds a second version of the Revenue field.
00:34It's titled Revenue2.
00:36If I want to make any changes to that second Revenue field, I can do so by
00:39clicking any cell in that field and then, on the PivotTable toolbar, clicking the
00:44Field Settings button.
00:46I can then click Options and use the second data field as a means to compare the
00:52value in the first data field to other values in the Pivot Table.
00:56So, for example, if I wanted to show the difference between 2009 and 2008, I could
01:01go into Show data as, click Difference From and than click (previous).
01:07When I click OK, Excel displays the difference between 2008 and 2009 for each month.
01:13In this case the difference between 67 and 128 is, in fact, 61. Difference between 69
01:18and 131 is 62, and so on.
01:21That just provides a visual reference so that you can make informed
01:24decisions about your data.
01:25If you were to show the difference as a percentage, which you can do by
01:29clicking Field Settings, and using % Difference From. Click OK and the
01:35difference appears as a percentage.
01:36Another way to use multiple data fields would be to have a column in the
01:39data source that contains the number of sales and display it next to the
01:42Revenue for each month.
01:44Pivot Tables can get a bit crowded when you display more than one data field in
01:47the data area, but if you use the space wisely you can gain a lot of insights by
01:51viewing two or more data status simultaneously.
Collapse this transcript
Creating a calculated field
00:00Pivot Tables enable you to analyze your data efficiently, but some questions
00:03can only be answered by performing calculations on the data used to create your Pivot Table.
00:08To perform that type of analysis, you can create custom fields that summarize
00:11Pivot Table data using a formula.
00:13These calculations are called Calculated Fields.
00:16Without Calculated Fields, you would have to copy the data from your Pivot Table,
00:19paste it onto another worksheet, and create the formulas there. That's a pain.
00:24Rather than copy your data outside the Pivot Table, you can create a Calculated Field
00:28within the Pivot Table.
00:29To do that, you click any cell in the Pivot Table, and then on the PivotTable
00:32toolbar, click the Pivot Table button.
00:35Point to Formulas, and then click Calculated Field.
00:39You can use the controls in the Insert Calculated Field dialog box to create
00:43your Calculated Field.
00:44I will name the Calculated Field 'AveragePerSale.'
00:50I will use two fields from my data source.
00:52The first is Revenue,
00:53the total amount of money earned, and Sales, which counts the number of sales
00:56used to earn that revenue.
00:58So first I will edit the formulas so that I Backspace over the zero and now in the
01:02Fields list I will click Revenue. Click Insert Field to add it to the formula.
01:06Now I will type a Forward Slash, which in Excel means division.
01:10I can now add the number of Sales. Click Insert Field. And there is my calculation.
01:15Revenue divided by number of Sales. And I can click OK.
01:19Excel added my field to my Pivot Table immediately.
01:22So now I have two fields in the data area.
01:24One of them gives me the total amount of revenue earned for a given month and
01:27the second gives me the average revenue per sale.
01:30It's important to note that the Calculated Field does not appear in the source table.
01:34It only exists in Excel's program memory.
01:37The results in this Calculated Field are hard to read.
01:39You can get more information on formatting Pivot Table fields in Chapter 4, Lesson 1,
01:43'Changing the Data Field Number Format.'
Collapse this transcript
Grouping fields
00:00When you summarize your data using a Pivot Table, Excel organizes the data based
00:04on the order of the fields and the column area and the row area.
00:07As an example, in this Pivot Table, which has a column of data arranged by
00:10Company, Year, and Month, you can hide the details for each year or for each company.
00:14For example, if I wanted to hide all of the values for 2008 for FirmA and just
00:19express it as a subtotal, I can double click that header cell and get rid of the values.
00:23They are still there.
00:24They are just not displayed.
00:25If I double-click the same cell, the values come back.
00:29In exactly in the same way, I can double-click the FirmA cell and Excel
00:34collapses all of the FirmA values and just gives me a subtotal for FirmA
00:38for Year 2008 and 2009.
00:41Double-clicking brings them back.
00:43In this Pivot Table, the Months are at the lowest level, so you can't hide them individually.
00:48As the Pivot Table stands now, you can only hide the monthly results by hiding
00:51every month for the entire year.
00:53If you do want to show or hide groups of months, you can do so by creating a group.
00:56A group is a user-defined set of rows that you can expand or collapse as desired.
01:02To create a group, select one set of Pivot Table rows that contains the values
01:05you want to include in the group and then click Data Group and Outline and click Group.
01:10So I will select January, February and March, as my example.
01:14Then on the menu bar click Data>Group and Outline>Group.
01:19So Excel just created the group that I wanted for January, February, and March.
01:23And also note that it did the same thing for every other occurrence of
01:26January, February and March.
01:28So, for example, I have it here in 2008 for FirmA and I also have it in 2009.
01:33And I have the same further down the Pivot Table for FirmB in 2008 and 2009.
01:38Also note that Excel added a second Month field to my Pivot Table.
01:43I have Month, and I also have a Month2.
01:46Excel uses Month2 to retain the original values in the Month field while
01:50creating the groups in the second Month field.
01:54If I want to rename my groups, such as First Quarter, I can type a new value in
01:59the header cell. Just call it Q1. Return. And Excel changes the name.
02:05If I want to expand or collapse the group, I can, as before,
02:08double-click the header cell, double-click to bring it back or on PivotTable
02:13toolbar I can use the Hide Detail and Show Detail buttons.
02:17If I want to collapse a group, I click Hide Detail.
02:19If I want to bring it back, I can click Show Detail.
02:23If you are done using the group and you want to get rid of it, you can click
02:25a header cell and then, on the Data menu, point to Group and Outline and click Ungroup.
02:32Grouping Pivot Table cells enables you to hide or display rows of data that
02:36belong together without creating a new field and new data source.
02:39Be sure to change the name of the group to something more descriptive than Group1.
02:42And when you are done with your analysis consider ungrouping the fields
02:45just to make the Pivot Table's layout simpler.
Collapse this transcript
Drilling down to the underlying data
00:00One often overlooked aspect of Pivot Tables is that they make it easier for you
00:04to locate individual data points.
00:06As an example, suppose you have a Pivot Table that summarizes sales over a series of years.
00:10If you want to display the data row that provides the value displayed in a Pivot
00:13Table cell, double-clicking that cell causes Excel to drill down into the data
00:18source and create a new worksheet that contains a copy of the appropriate row.
00:21For drill down to work, you must ensure that the proper option is turned on.
00:25To do that, click any cell on the Pivot Table and then on the PivotTable toolbar
00:30click Table Options.
00:32In the Table Options dialog box ensure that the Enable drilldown checkbox is selected.
00:37If it is, click OK and you are ready to go.
00:40Drilling down to the underlying data source is simply a matter of
00:42double-clicking the cell that you want to display.
00:44For example, if I wanted to display the row providing the value for cell D5, I
00:49could double-click the cell and have Excel create a new worksheet that
00:54contains only that row. So for year 2008, Quarter number one, Month, Company, and Revenue.
01:02Unfortunately, this drilldown capability only works for one cell at a time.
01:06That said, it is possible to drill down into a data source even if the Pivot
01:10Table draws its data from an external source.
01:12You can do so because Excel draws the row it displays from the program's
01:15internal representation of the data source, called the Pivot Cache, instead of the
01:19source table itself.
01:20After you have displayed the row providing the value for Pivot Table cell, you
01:23can click Edit>Delete Sheet to get rid of the worksheet.
01:27Confirm you want to get rid of it, and it's gone.
01:31You can also drill down into Grand Total or Subtotal rows.
01:35So, for example, if I wanted to display all of the rows providing values
01:38summarized in this cell, which finds a subtotal for FirmB in 2008, I can
01:43double-click it and Excel provides those rows as well.
01:48Once again, Edit>Delete Sheet, OK and it's gone.
01:53Drilling down into the original data source provides context for the data that
01:56appears in your Pivot Tables.
01:58Rather than finding the right rows among hundreds or even thousands of rows in
02:01the source table by hand, you can display just the ones you want by
02:04double-clicking the cell that contains the values of interest.
Collapse this transcript
Using data in a formula
00:00When you create a formula, it's usually a good idea to draw the formula's values
00:04from the original data source.
00:05That way, if the source changes, your formula's result will update the next time
00:09Excel recalculates your workbook.
00:11But what do you do if your Pivot Table contains data drawn from an outside
00:13source and you can't get out the original tables?
00:16In that case, you can refer to a cell within the Pivot Table using a
00:18GetPivotData formula.
00:20I will work my first example on the same worksheet as the Pivot Table so you
00:23can follow along more easily, and then I will create a more realistic example
00:27on another worksheet.
00:29A GetPivotData formula uses two arguments.
00:32First I will type in the function name and left parenthesis, and the two
00:36arguments that the GetPivotData function takes are Pivot_Table and the name.
00:40Pivot Table refers to any cell within the Pivot Table.
00:43I always use the cell at the top left corner of the Pivot Table, in this case
00:47cell A3, because I know it's not going to change.
00:50Regardless of how I pivot and rearrange the body of the Pivot Table, cell A3
00:54will remain constant, and will always be within the area of the Pivot Table.
00:58So that's what I type: A3.
01:02Name is a little more complicated, so I will just walk you through it.
01:06Name is a string, which you identify by enclosing in double quotation marks.
01:10The Name argument contains the values in the row and column areas that Excel
01:14uses to identify a particular cell within the Pivot Table.
01:17So say, for example, that I wanted to find the value in C5, which has 2008,
01:24January, and FirmA, as the values that you used to hone in on it.
01:29So, I type in 2008, a space - no comma just a space - January, FirmA,
01:37Double quotes. Close the parentheses. Return. And there you have the value, 67 and 67.
01:47You are not limited to creating GetPivotData functions that point to cells at
01:50the lowest level of organization within a Pivot Table.
01:53Say, for example, that I wanted to find the total for 2008 in January for
01:57both FirmA and FirmB.
01:59To do that, I can edit my formula to remove the reference to FirmA.
02:03And I am left with 2008 January, which corresponds to this row here, with
02:09a Grand Total of 197.
02:12When I hit Return, the same value appears as the formula's result.
02:15And just to conclude the example string, if I wanted to find the total for 2008,
02:21I can just create a function that looks like that. Hit Return.
02:25And I have the value of 1887, which is the 2008 total, also found here in cell E17.
02:32One nice thing about creating GetPivotData functions is that you don't need to
02:37have the fields in the same order in which they appear in the body of the Pivot Table.
02:41So, let's say, for example, that I wanted to find the value for 2008, January,
02:46FirmA, but I want to put them in a different order.
02:49I can do that, just so long as Excel is able to identify which columns and which
02:53rows point to the cell that I am interested in.
02:56So for example, if I put in "FirmA January 2008", hit Return, I get the same
03:04result, 67. Just like it's supposed to be.
03:07You can also use GetPivotData functions to provide arguments for formulas.
03:11As an example, let's look at the summary worksheet that I have created
03:14here called Dashboard.
03:16On the summary Dashboard, I have created functions that find the total sales for
03:20FirmA in 2008, and the same for FirmB in 2008, and FirmA and FirmB in 2009.
03:28One thing I would like to point out, in this formula, is that because the Pivot
03:32Table that contains the data I am using in this function comes from another
03:35worksheet, I had to put Sheet1 at the front of the cell identifier.
03:40So I have Sheet1, which is the name of the worksheet where the Pivot Table
03:44resides, an exclamation mark indicating that I have stopped typing in the
03:48name of the worksheet.
03:49I am about to type the name of the cell, and then A3, which is the name of the cell.
03:53And then the second argument gives me FirmA 2008, which reflects the data that I
03:57want to use in this cell.
03:59Hit Escape to stop editing the function.
04:01If I wanted to create a function that used more than one Pivot Table data point,
04:05I can do so by separating the values with commas.
04:07So let's say that I wanted to find the average in 2009 of the sales for FirmA and FirmB.
04:13To do that, I would type = to start the formula, type in Average, left parenthesis.
04:19And then as the first argument I will type in GetPivotData, left parenthesis,
04:26and then Pivot Table identifier: Sheet1, exclamation mark, A3, the cell at
04:32the top-left corner.
04:33And then I am looking for FirmA 2009.
04:40Close the parenthesis, but this is just for the first value used in the average formula.
04:44Type a comma, now I have GetPivotData, left parenthesis, Sheet1, A3, FirmB
04:562009, double quotes.
04:59Close the parenthesis.
05:00Close the parenthesis again, so that now I've created an average formula
05:03with two arguments. Hit Return.
05:05And I get the correct answer of 898.
05:08The GetPivotData function makes it easy to summarize Pivot Table data in your worksheets.
05:12If it's not practical to draw the data from the original source, you can always
05:15use the Pivot Table reference instead.
Collapse this transcript
3. Sorting and Filtering PivotTable Data
Sorting data
00:00When you display your data in a Pivot Table, you might want to display all of
00:03the rows in the Pivot Table but change the order in which they are displayed.
00:07In this Pivot Table, for example, I have revenue for two companies, FirmA and
00:10FirmB, broken out by year and by month.
00:13At present, the Pivot Table is sorted by Year and then by Month and in the
00:17column areas we have FirmA and FirmB, which is the alphabetical order for
00:20those two company names.
00:22The data in the body of the Pivot Table occurs in the order mandated by the
00:26Year, the Month and the Companies.
00:28There is no internal order to it. But let's say that you wanted to display the
00:31highest monthly revenue values within the body of the Pivot Table.
00:35To do that, you can click any cell in the column by which you want to sort.
00:39In this case, I will make it FirmA for 2008, and then on the toolbar click
00:44either Sort in ascending order, which puts the lowest values on top and the
00:49highest values on the bottom, or in descending order, which puts the highest
00:52values on top and the lowest values on the bottom.
00:55I want to see the highest values on top, so I will click in descending order and
01:00Excel reorganizes the Pivot Table data.
01:02Now notice that it only sorted for FirmA.
01:05I have 128, 119, 108 and so on.
01:08All the values in this column for 2008 are in descending order.
01:12The values for FirmB are not.
01:14That's because this column, the column that was clicked when I sorted the data,
01:18controls the sorting operation.
01:20One other interesting thing to note is that the Month order:
01:23March, December, September, and so on, has been carried down to the 2009 group
01:27where we have March, December, and September as well.
01:30It's just the nature of how Excel 2008 sorts data within a Pivot Table.
01:35Let's suppose that I wanted to sort the data in ascending order, which has the
01:37lowest values on top of a column.
01:40For this, I can click the top of the FirmB column for 2008 and then on the
01:45toolbar, click Sort in ascending order.
01:48And Excel sorts the data as I asked.
01:51If you want to undo a sorting operation, you can just go up to the toolbar and click Undo.
01:56If you wanted to return this Pivot Table to its original order by month, you
02:00need to create a custom list.
02:01I'll teach you how to do that in the next lesson, which is called Creating
02:04a Custom Sort Order.
02:06Sorting a Pivot Table moves the data you want to highlight to the top of the
02:09Pivot Table enabling you to concentrate on the values you want to focus on and
02:12make better decisions.
Collapse this transcript
Creating a custom sort order
00:00Most of the time, when you sort Pivot Table data, you can use the standard
00:03methods to sort the values in alphabetical or numerical order.
00:07There will be times though when you want to define a custom list of values and
00:10sort a Pivot Table using those values.
00:12For example, if your company has stores in four regions:
00:15North, South, East and West, and you want the regions to show in that order
00:19within a Pivot Table instead of an alphabetical order, you can create a custom
00:22list and use that list to sort your field's values.
00:25As an example, here is the Pivot Table that contains sales broken up by region:
00:30North, East, West and South, except that the regions are sorted into
00:34alphabetical order starting with East and going on through West.
00:37If you want to create a custom list of values and sort using those values,
00:40first you go to Excel>Preferences and in the Excel Preferences dialog box,
00:47click Custom lists.
00:49You can use the Custom lists page of the Excel Preferences dialog box to create
00:52your new custom list.
00:54To do that you start typing in the List Entries box and I will type North. Hit Return.
01:01South. Return.
01:02East and West, which is my desired order.
01:06If I already had a vertical group of cells somewhere in the worksheet that
01:10contained the values in the order that I wanted for my list, I could import the
01:13list from those cells.
01:15To do that, I would use this RefEdit control. I would click it.
01:19Go out into there worksheet.
01:20Select the cells that contain the values.
01:22The address of those cells would appear in this box.
01:26And then I could click Import and those values would appear here in the List Entries box.
01:30But I already have the values I want, so I can just click Add. And my new list
01:35appears here in the Custom lists pane.
01:36I am done, so I can click OK.
01:39To sort the Pivot Table using the custom list I just created, I can click
01:42any cell in the regions field and then on the Data menu, click Sort, and then click Options.
01:51In the Sort Options dialog box, I can select my First key sort order.
01:55Right now the First key sort order is set to Normal, which is alphabetical
01:58because I have text values in my region column.
02:01If I click this arrow, I can select one of my custom lists.
02:06The list I just created is North, South, East and West.
02:09So when I click that, I'll be able to use it.
02:10I would also like to point out the other existing custom lists that you can use.
02:14You have abbreviations for weekdays, the weekdays spelled out, abbreviations for
02:19months and the months spelled out.
02:21If you sort the months using either of these two lists then you'll get the order
02:25in which the months occur within the year as opposed to an alphabetical sort.
02:29But in this case, I want to use my new list, North, South, East and West. Click that.
02:33It appears in the Sort Order box.
02:35Click OK and click OK again, to sort using that list.
02:40And Excel has now sorted my Pivot Table data in the Region column in by
02:43North, South, East, West.
02:45Custom lists help you arrange your Pivot Table data to emphasize the elements
02:48you feel are most important, making sorting a more powerful and useful tool
02:51than ever before.
Collapse this transcript
Filtering a field by selection or by rule
00:00You can use Pivot Tables to summarize huge data collections, but many times you
00:04will want to limit the data displayed in a given category.
00:07For example, if your company's operations are divided into four regions, you
00:10might want to display results for just one of the regions.
00:14You can limit the data displayed in a Pivot Table by creating a filter.
00:17There are two main ways you can filter the contents of a Pivot Table field:
00:21by selection, or by rule.
00:24Filtering by selection means that you display a list of values in the field and
00:27select the values you want to display.
00:29So, for example, let's say that I wanted to display only those results for the
00:33East and North regions.
00:35To display those, I click any cell in the Region column.
00:38On thePivotTable toolbar, click the Field Settings button.
00:42And then in the Pivot Table Field dialog box, I select the items that I want to hide.
00:47In this case, I want to hide South and West. And I selected South and West by
00:52clicking South and then Command+Clicking West.
00:55Those are the items that I want to hide.
00:57Now I can click OK. And Excel reconfigures the workbook showing results only
01:02for East and for North.
01:04I can remove the filter by clicking Undo.
01:08Filtering by selection in Excel 2008 is a little bit quirky and I'd like to show
01:11you some things that can happen.
01:13For example, here I am in Region.
01:15Go up to the PivotTable toolbar and click the Field Settings button.
01:20If I hide East and North, and click OK, they disappear.
01:26If I bring back the dialog box, and I Command+Click East first - that's
01:30important - and then North, it looks like all of the items should come back
01:35into the worksheet.
01:36When I click OK, only East comes back.
01:40In other words, the last field that you click will remain hidden.
01:44So again, to undo the filter you go up to the toolbar and click the Undo button
01:48until all of your fields come back.
01:50You can also filter data within a Pivot Table by a rule.
01:53In Excel 2008, you can create what are called Top 10 filters to identify the top
01:57or bottom values in a field.
01:59To use a more meaningful filter as an example, I am going to add Month to my Pivot Table.
02:05So you'll get an idea of how effective a Top 10 filter can be.
02:08To create a Top 10 filter, click any cell in the field by which you want to filter.
02:12And note that you're clicking the label, January, February, March as opposed to the values.
02:18This is the field you're actually filtering by.
02:20And then on the PivotTable toolbar, click the Field Settings button.
02:24And then click Advanced.
02:26In the Advanced button, in the AutoShow options area, you can select
02:31an Automatic Filter.
02:32You can then determine whether you want to show the Top or Bottom values. I'll show the Top.
02:37And rather than the Top 10, I will edit that number to just show the Top 5.
02:42The idea is that I want to show the top 5 months based on the value in the Sum
02:48of Revenue field, which is here.
02:50I have all those parameters in place.
02:53And I'll click OK. And OK again to close the PivotTable Field dialog box.
02:58And Excel displays the top values for each region, for each year.
03:02So, for example, for the East region in 2008,
03:06May, July, August, and September, and December were the highest months. For North in 2008,
03:11January, June, July, August and November, and so on down the line.
03:15Filtering by selection gives you pinpoint control over the values that appear
03:18in your Pivot Table.
03:19You should use this type of filter when you want to display or exclude a few
03:23values from the display.
03:24Filtering by rule, by contrast, enables you to identify the top or bottom
03:28values in the field.
Collapse this transcript
Filtering using report filter fields
00:00Whenever you add a field to a Pivot Table's column area, or row area, you change
00:04the Pivot Table's structure by adding a layer of detail.
00:07But suppose you have a great Pivot Table layout and you want to filter the Pivot
00:11Table using the values in a field that doesn't appear in the arrangement.
00:14For example, you might want to filter monthly sales data by Quarter, but without
00:18having the Quarter field change the Pivot Table's layout.
00:21How do you filter the Pivot Table using the Quarter field?
00:23The answer is that you add the Quarter field to the Page Field area, and create
00:27the filters as normal.
00:29In this Pivot Table, I have the data arranged by Year, and then by Month.
00:33I have the Quarter field available to me, but I am not using it to change the
00:36structure the Pivot Table.
00:38If I want to filter the Pivot Table using the values in Quarter, I can do so by
00:42moving the Quarter field to the Page Fields area.
00:45I just added the Quarter field to the Pivot Tables arrangement, but I did not
00:49change the organization of the data in the body of the Pivot Table.
00:52Instead by adding the Quarter fields to the Page Fields area, I can now create
00:56filters using those values.
00:58For example, if I were to click the Filter arrow button here.
01:03I can select either to show 1, 2, 3, or 4, which is the number of a Quarter, or I can Show All.
01:10I haven't created the filter yet, so Show All is selected.
01:13Let's say that I wanted to see the values just for the third quarter.
01:16To do that, I click in the number 3 and Excel filters the Pivot Table, so
01:19now all I see are month 7, 8, and 9, July, August, and September, which
01:23reflects quarter number three.
01:25To clear the filter, I click the Filter arrow, and select Show All.
01:30It's important to note that you can only select one Page Field at a time.
01:33There is no way to create a compound filter using a field in the Page Field area.
01:38One terrific aspect of using fields in the Page Field area is that you can
01:42create separate worksheets with Pivot Tables based on the values in that field.
01:46For example, if I wanted to create four Pivot Tables, one for each of the four
01:50values in quarter: 1, 2, 3 and 4.
01:54To do that you go up to the PivotTable toolbar, click the PivotTable button,
01:58and click Show Report Filter Pages.
02:01In the Show Pages dialog box, you verify that the Quarter field is the one that
02:05you want, and that it is selected. And click OK.
02:09And Excel creates four new worksheets.
02:11Each one is a Pivot Table, and each one has a value from the Quarter field, and
02:15has a filter applied to reflect that value.
02:18So for example, here on Sheet 1, we have Quarter 1, on Sheet 2, Quarter 2, Sheet
02:253, the same, and on Sheet 4, Quarter 4.
02:28If there is an existing worksheet with the same name as one of the field values
02:32that Excel uses to create the new worksheets, then Excel names the new sheet as
02:37the value and follows it with the parenthesis to and a close parenthesis.
02:41So you will never have a duplicate worksheet name, and also the operation will not fail.
02:46Instead, Excel will just rename the worksheet so that it can work.
02:49Filtering Pivot Tables using the fields in the Page Field area is a
02:52powerful capability.
02:54Not only can you limit the data that appears in your Pivot Table without
02:57changing its structure, you can create separate worksheets for each value in the
03:00Report Filter field.
Collapse this transcript
4. Formatting and Printing PivotTable Reports
Changing the data field number format
00:00When you create a Pivot table, Excel displays the values in the data fields
00:03without any formatting.
00:05When you look at numbers in the hundreds and below, the lack of commas and other
00:08formatting doesn't really matter.
00:10But when you add those values in the subtotal or grand total cell, the lack of
00:131000s separators makes the values harder for humans to process.
00:17You can make your data easier to read by changing the data field's Number format.
00:21To change the Number format of a Pivot Table data field, click any cell in the
00:24field and then on the Pivot Table toolbar,
00:27click the Field Settings button.
00:29In the Pivot Table Field dialog box, verify that you have the proper field
00:33selected and then click Number.
00:35Now you can use the controls on the number page of the Format Cells dialog box
00:40to change the Number's format.
00:42In this case, I'll go with Number, which is a good generic format for any
00:45sort of numeric data.
00:47My values don't have any numbers to the right of the decimal point, so I will
00:50set the number of Decimal places to zero, and because my grand totals and
00:55subtotals can go up above a thousand, I will have a 1000 Separator.
01:01Negative numbers can just have a minus sign and to stay black. That's fine.
01:06I can click OK.
01:07Click OK again, and Excel applies my formatting.
01:10You can see here that my subtotal for 2008 for the East region is now
01:15formatted with a comma.
01:17Makes it much easier to process.
01:19You should always change the Pivot Table data fields Number format if you have
01:22any values including subtotals and grand totals that go over one thousand.
01:26In general, it's a bad idea to use the currency or accounting formats
01:29mainly because the currency symbols takes up space within the cells, and
01:32can be distracting when you're trying to read the numbers in the body of the Pivot table.
01:35If you're summarizing currency values, use a Number format that displays two
01:39places to the right of the decimal point.
Collapse this transcript
Applying formats
00:00When you create a Pivot Table, Excel applies some basic formatting so you can
00:03distinguish the labels and the organizational layers from the data in the body
00:06of the Pivot Table.
00:08Excel 2008 also comes with a collection of built-in autoformats from which to
00:12choose, so you can change your Pivot Tables overall formatting if you want to.
00:15Unlike in previous versions of Excel for the Mac, it is possible to apply
00:19formatting to a Pivot Table's cell and have the formatting move with the data.
00:22In earlier versions of the program, Excel applied the formatting to the
00:25worksheet cell that currently displayed the value, and the formatting did not
00:29move when you pivoted the Pivot Table.
00:31As an example, if I were to change the text color for this cell to red and then
00:40pivot the Pivot Table, moving Region below Year, you see that the data moved and
00:47the formatting moved with it.
00:48If you apply formatting to a Pivot Table cell and it doesn't move with the data,
00:52the option to preserve formatting might not be turned-on.
00:55You can check by clicking a Pivot Table cell, clicking the Pivot Table
00:58button, clicking Table Options, and ensuring that the Preserve formatting option is checked.
01:04If it is, you are fine.
01:05If it's not, check it and click OK.
01:09If you would like to change the appearance of your entire Pivot Table, you can
01:12apply an autoformat, which is a pre-made style included with the program.
01:16To apply an autoformat, you click any cell on the Pivot Table.
01:19And then on the Format menu, click AutoFormat.
01:22And then select the autoformat you want to apply.
01:25As an example, I would choose Classic 3, and click OK.
01:29One important thing to note is that Excel did not overwrite the
01:32existing formatting.
01:33The value in the cell was formatted in red before, and it still is.
01:37One other aspect of applying autoformats is that you can select which elements to apply.
01:41For example, I can go to Format>AutoFormat, with the autoformat applied, and I
01:47have Classic 3 still there.
01:49If I want to select which aspects of the AutoFormat to apply, I can click Options.
01:55I can now select the Number, Font, Alignment, Width and Height, Patterns, and Border.
02:00In this case, I don't want to have any cell fills, so I will clear Patterns. Click OK.
02:06And now my cells do not have the fill colors previously applied.
02:09If I want to bring them back, I can either go into the AutoFormat and select the
02:14option again, or I can go to Undo and undo my change.
02:18Applying an autoformat does not overwrite any formatting you applied manually,
02:21so you have a great deal of control over your Pivot Table's appearance.
Collapse this transcript
Highlighting cells by applying a rule
00:00Pivot Tables help you summarize large data collections in an Excel worksheet,
00:04but it can be hard to find data that matches specific criteria just by
00:07looking at the numbers.
00:09It's much easier to change a cell's fill or text color to indicate
00:12its relative value.
00:13Formats that change the appearance of a cell's contents by applying rules are
00:17called 'conditional formats.'
00:18Excel 2008 lets you apply conditional formatting rules to Pivot Table cells, but
00:23unfortunately the formatting disappears when you pivot the Pivot Table.
00:26Creating a conditional format is a lot like creating a filter.
00:29In both cases, you create rules to indicate which cells you want to be
00:33affected by your action.
00:34To apply a conditional format to Excel Pivot Table cells, you select the cells,
00:40and then click Format>Conditional Formatting, and Excel displays a dialog box
00:46indicating that your conditional formats will not be preserved.
00:49Anytime that you refresh the Pivot Table data or change this layout, all the
00:53formatting will go away.
00:54I am using this as an example to show what you can do if you want to do
00:58this sort of analysis.
00:59So I will click OK, and go right on ahead.
01:02You can use the controls in the Conditional Formatting dialog box to define your
01:06first conditional format.
01:07You can have up to three conditional formats per cell in Excel 2008.
01:11In this case, I want to have any cell that contains a value greater than 975 to
01:16be formatted in green, any cell with a value between 850 and 975 inclusive to be
01:23formatted in yellow, and any cell with a value below 850 to be formatted in red.
01:28So to create the first conditional format, that's based on the cell value, Cell
01:33Value is greater than 975.
01:38So there is my rule.
01:39I can now define the format that I want to apply.
01:41Click the Format button.
01:43Click Patterns, which has the fill colors, and select green.
01:47Click OK and I have created my first rule.
01:50To create a second rule for the same cell, I just click the Add button and go
01:53through the same procedure.
01:55In this case, I want to apply yellow to any cell with the value between 850 and 975.
02:02Format>Patterns is still selected, and I click yellow and OK. Final rule,
02:08click Add, and I am looking for any value below, less than, 850 and I will
02:15apply the format of red.
02:20While I have the Conditional Formatting dialog box open, I would like to show a
02:23few other things that you can do with conditional formats.
02:26If you want to edit a conditional format, you can just change the rule by
02:30clicking a new comparison operation and changing the operators. There can either be one,
02:35in the case of greater than or less than, or two in the case of between.
02:40Then to edit the format, just click the Format button and make any changes you like.
02:45If you want to delete a conditional formatting rule, you can click anywhere in
02:48the rule and click Delete, but now that I have created my conditional formatting
02:53rules for these cells, I will click OK to apply them.
02:56And there they are.
02:58One real world example of how to use conditional formats with Pivot Table data
03:01is to create a dashboard that draws data from the Pivot Table using
03:04GetPivotData formulas.
03:06Then instead of applying the conditional formatting directly to the Pivot
03:09Table, you can apply the conditional formatting rules to cells that draw data
03:13from the Pivot Table.
03:14So regardless of how you reorganize your data within the Pivot Table, those
03:17conditional formats and summaries will remain in place.
03:20Now just to show what will happen if I pivot the Pivot Table, I will move Year
03:25to here, and the conditional formatting goes away.
03:28Applying a simple rule based conditional format can make it much easier to
03:32interpret your Pivot Table data.
03:33All you need to do is determine the criteria that reflect the data you want
03:37to highlight.
Collapse this transcript
Printing a PivotTable report
00:00Printing a Pivot Table is just like printing any other worksheet.
00:03You can print the entire worksheet, print just the Pivot Table, or divide the
00:07Pivot Table's data into several worksheets and print them separately.
00:11The most straightforward way to print a Pivot Table is to print the worksheet
00:14that contains the Pivot Table.
00:15To do that, display the worksheet.
00:18Click File>print, and use the commands in the print dialog box to print your worksheet.
00:26If you want to print the Pivot Table by itself without anything else that might
00:29be present on the worksheet, you can select the entire Pivot Table by going to
00:33the PivotTable toolbar, pointing to Select>Entire Table, and now on the File
00:38menu click Print Area>Set Print Area.
00:41And you have just defined the Pivot Table itself as the print area, so whenever
00:47you print, Excel will only print the Pivot Table in those areas that you have defined.
00:52If you change your Pivot Table's organization, which will change its shape on
00:55the worksheet, then you should update the print area to reflect its new layout.
00:59Finally, you can create a separate worksheet for each value found in the field
01:03represented in the page field area.
01:05To do that, you place a field in the page field area, and for this I will drop in Region.
01:10Now to create a separate worksheet for each of the regions, you can go to
01:14PivotTable>Show Report Filter Pages.
01:18Verify that Region is selected, and click OK, and Excel creates a new worksheet
01:25for each of the regions.
01:27Now if you Shift+Click these worksheets, go to File and print, you can print the active sheets.
01:36Printing a Pivot Table seems like a straightforward operation and it usually is.
01:40That said, you do have a number of options when it comes to printing your Pivot Table.
01:44Experiment with the different ways you can control how your Pivot Tables print,
01:47so you can get exactly the output you want.
Collapse this transcript
Conclusion
Goodbye
00:00Thanks a lot for spending time with Pivot Tables in Excel 2008 for the Mac.
00:04I hope you get a lot out of the lessons that you have learned, and that you can
00:07use the techniques that I have covered to analyze your data more effectively.
00:11Best of luck!
Collapse this transcript


Are you sure you want to delete this bookmark?

cancel

Bookmark this Tutorial

Name

Description

{0} characters left

Tags

Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading
cancel

bookmark this course

{0} characters left Separate tags with a space. Use quotes around multi-word tags. Suggested Tags:
loading

Error:

go to playlists »

Create new playlist

name:
description:
save cancel

You must be a lynda.com member to watch this video.

Every course in the lynda.com library contains free videos that let you assess the quality of our tutorials before you subscribe—just click on the blue links to watch them. Become a member to access all 104,141 instructional videos.

get started learn more

If you are already an active lynda.com member, please log in to access the lynda.com library.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Get access to all lynda.com videos

You are currently signed into your admin account, which doesn't let you view lynda.com videos. For full access to the lynda.com library, log in through iplogin.lynda.com, or sign in through your organization's portal. You may also request a user account by calling 1 1 (888) 335-9632 or emailing us at cs@lynda.com.

Access to lynda.com videos

Your organization has a limited access membership to the lynda.com library that allows access to only a specific, limited selection of courses.

You don't have access to this video.

You're logged in as an account administrator, but your membership is not active.

Contact a Training Solutions Advisor at 1 (888) 335-9632.

How to access this video.

If this course is one of your five classes, then your class currently isn't in session.

If you want to watch this video and it is not part of your class, upgrade your membership for unlimited access to the full library of 2,025 courses anytime, anywhere.

learn more upgrade

You can always watch the free content included in every course.

Questions? Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com.

You don't have access to this video.

You're logged in as an account administrator, but your membership is no longer active. You can still access reports and account information.

To reactivate your account, contact a Training Solutions Advisor at 1 1 (888) 335-9632.

Need help accessing this video?

You can't access this video from your master administrator account.

Call Customer Service at 1 1 (888) 335-9632 or email cs@lynda.com for help accessing this video.

preview image of new course page

Try our new course pages

Explore our redesigned course pages, and tell us about your experience.

If you want to switch back to the old view, change your site preferences from the my account menu.

Try the new pages No, thanks

site feedback

Thanks for signing up.

We’ll send you a confirmation email shortly.


By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

Keep up with news, tips, and latest courses with emails from lynda.com.

By signing up, you’ll receive about four emails per month, including

We’ll only use your email address to send you these mailings.

Here’s our privacy policy with more details about how we handle your information.

   
submit Lightbox submit clicked