Excel 2010 Creating PivotTables

Author: mety Labels::


Excel 2010

Creating PivotTables

Creating PivotTables

PivotTables Intro
PivotTable reports (or, simply PivotTables) make the data in your worksheets much more manageable by summarizing the data and allowing you tomanipulate it in different ways. PivotTables can be an indispensable tool when used with large, complex spreadsheets, but they can be used with smaller spreadsheets as well.
In this lesson, you will learn the basics of creating and manipulatingPivotTables.

PivotTables

Launch video!Watch the video (4:16). Need help?
When you have a lot of data, it can sometimes be difficult to analyze all of it. A PivotTable summarizes the data, making it easier to manage. Best of all, you can quickly and easily change the PivotTable to see the data in a different way, making this an extremely powerful tool.
Watch Part 1 to learn about using PivotTables.

Launch video!Watch the video (2:59). Need help?
Watch Part 2 to learn about using filters, slicers, and PivotCharts.



Using PivotTables to Answer Questions

The example below contains sales statistics for a fictional company. There is a row for each order, and it includes the order amount, the name of the salesperson who made the sale, the month, the sales region, and the customer's account number.
Company Sales StatisticsCompany Sales Statistics
Suppose we wanted to answer the question, "What is the amount sold by each salesperson?" This could be time-consuming, as each salesperson appears on multiple rows, and we would need to add up all of the order amounts for each salesperson. Of course, we could use the Subtotal feature to add them, but we would still have a lot of data to sift through.
Luckily, a PivotTable can instantly do all of the math for us and summarize the data in a way that's not only easy to read, but easy to manipulate. When we're done, the PivotTable will look something like this:
A finished PivotTableA finished PivotTable
As you can see, the PivotTable is much easier to read. It only takes a couple of steps to create one, and once you create it you'll be able to take advantage of the PivotTable's powerful features.

To Create a PivotTable:

  1. Select the table or cells (including column headers) containing the data you want to use.
  2. From the Insert tab, click the PivotTable command.
    The PivotTable commandThe PivotTable command
  3. The Create PivotTable dialog box will appear. Make sure the settings are correct, and then click OK.
    The Create PivotTable dialog boxThe Create PivotTable dialog box
  4. A blank PivotTable will appear on the left, and the Field List will appear on the right
    The Blank PivotTable and Field ListThe Blank PivotTable and Field List

To Add Fields to the PivotTable:

Now, you'll need to decide which fields to add to the PivotTable. Each field is simply a column header from the source data. It may be helpful to recall the question that you are trying to answer. In this example, we want to know the total amount sold by each salesperson, so we'll just need the Order Amount and Salesperson fields.
  1. In the Field List, place a checkmark next to each field you want to add.
  2. The selected fields will be added to one of the four Areas below the Field List. In this example, theSalesperson field is added to the Row Labels area, and the Order Amount is added to the Values area. If a field is not in the desired area, you can drag it to a different one.
  3. The PivotTable now shows the amount sold by each salesperson.
    Adding fields to the PivotTableAdding fields to the PivotTable
Just like with normal spreadsheet data, you can sort the data in a PivotTable using the Sort & Filter command in the Home tab. You can also apply any type of formatting that you want. For example, you may want to change the Number Format to Currency. However, be aware that some types of formatting may disappear when you modify the PivotTable.

Pivoting Data

One of the best things about PivotTables is that they let you "pivot" the data in order to look at it in a different way. This allows you to answer multiple questions and even experiment with the data to learn new things about it.
In our example, we used the PivotTable to answer the question "What is the total amount sold by each salesperson?" But now we'd like to answer a new question, such as "What is the total amount sold in each month?" We can do this by simply changing the Row Labels.

To Change the Row Labels:

  1. Drag any existing fields out of the Row Labels area, and they will disappear.
    Dragging a field out of Row LabelsDragging a field out of Row Labels
  2. Drag a new field from the Field List into the Row Labels area. In this example, we're using the Month field.
    Dragging a new field into Row LabelsDragging a new field into Row Labels
  3. The PivotTable will adjust to show the new data. In this example, it now shows us the total Order Amount for each month.
    The updated PivotTableThe updated PivotTable

To Add Column Labels:

So far, our PivotTable has only shown one column of data at a time. In order to show multiple columns, you'll need to add Column Labels.
  1. Drag a field from the Field List into the Column Labels area. In this example, we're using the Region field.
    Adding a field to Column LabelsAdding a field to Column Labels
  2. The PivotTable will now have multiple columns. In this example, there is a column for each region.
    The updated PivotTableThe updated PivotTable

    Report Filters

    Sometimes you may want focus on just a portion of the data and filter out everything else. In our example, we're going to focus on certain salespeople, to see how they affect the total sales.

    To Add a Report Filter:

    1. Drag a field from the Field List into the Report Filter area. In this example, we're using the Salespersonfield.
      Adding a Report FilterAdding a Report Filter
    2. The report filter appears above the PivotTable. Click the drop-down arrow on the right side of the filter to view the list of items.
    3. Select the item that you wish to view. If you want to select more than one item, place a checkmark next toSelect Multiple Items. Then click OK. In the example below, we are selecting five salespeople.
      Using a Report FilterUsing a Report Filter
    4. Click OK. The PivotTable will adjust to reflect the changes.
      The updated PivotTableThe updated PivotTable

    Slicers

    Slicers were introduced in Excel 2010 to make filtering data easier and more interactive. They're basically justreport filters, but they're more interactive and faster to use, as they let you quickly select items and instantly see the result. If you filter your PivotTables a lot, you might want to use slicers instead of report filters.

    To Add a Slicer:

    1. Select any cell in your PivotTable. The Options tab will appear on the Ribbon.
    2. From the Options tab, click the Insert Slicer command. A dialog box will appear.
      The Insert Slicer commandThe Insert Slicer command
    3. Select the desired field. In this example, we will select Salesperson. Then click OK.
      Selecting a fieldSelecting a field
    4. The slicer will appear next to the PivotTable. Each item that is selected will be highlighted in blue. In the example below, the slicer contains a list of all of the different salespeople, and four of them are currently selected.
      A slicer with four selected itemsA slicer with four selected items

    Using the Slicer:

    Just like with report filters, only the selected items are used in the PivotTable. When you select or deselectitems, the PivotTable will instantly reflect the changes. Try selecting different items to see how they affect the PivotTable.
    • To select a single item, just click on it.
    • To select multiple items, hold down the Control (Ctrl) key on your keyboard, and then click on each item that you want.
    • You can also select multiple items by clicking and dragging the mouse. This is useful if the desired items areadjacent to one another, or if you want to select all of the items.
    • To deselect an item, hold down the Control (Ctrl) key on your keyboard, and then click on the item.
    Ctrl-clicking to select multiple itemsCtrl-clicking to select multiple items

    PivotCharts

    PivotCharts are like regular charts, except they display data from a PivotTable. As with a regular chart, you'll be able to select a chart typelayout and style to best represent the data. In this example, we'll use a PivotChart so we can visualize the trends in each sales region.

    To Create a PivotChart:

    1. Select any cell in your PivotTable. The Options tab will appear in the Ribbon.
    2. From the Options tab, click the PivotChart command.
      The PivotChart commandThe PivotChart command
    3. From the dialog box, select the desired chart type (3-D Clustered Column, for example) and click OK.
      Selecting a chart typeSelecting a chart type
    4. The PivotChart will appear in the worksheet. If you want, you can move it by clicking and dragging.
      A PivotChartA PivotChart
    If you make any changes to the PivotTable, the PivotChart will adjust automatically.

0 comments |

Labels

Blog Archive

Powered by Blogger.

I made these pages for me and my friends to help solving the problem we face regarding Computer & internet, if anyone wants me to answer a question or find out about some information please send me email and I will try to reply.*P.S. some of the article I wrote and the other I found on the internet I posted them in sprit of learning and shearing, please forgive me if you found something you don’t want to be in my blog, email me and I will delete them. Thank you for your interest in my pages.امل نجم Amal Nagm

banner 1 banner 2