bottom
Great ExcelTips!
         
Your e-mail address is safe!
Close Note

Tips.Net > ExcelTips Home > PivotTables > Counting with PivotTables

Counting with PivotTables

Summary: Got a slew of data you need to analyze? You can count instances of various pieces of information quite easily using a PivotTable. The way you create the table depends on the version of Excel you are using, however. (This tip works with Microsoft Excel 97, Excel 2000, Excel 2002, Excel 2003, and Excel 2007.)

Suppose you have a data table set up in Excel that represents your club membership. In the first column are the names of club members. In the second column are the cities in which the members live. If you want to find out how many people live in each city, there are several methods you can choose. One method is to create a PivotTable. To create a PivotTable on your data using Excel 97, follow these steps:

  1. Select a cell within your data table.
  2. Choose the PivotTable Report option from the Data menu. Excel begins the PivotTable Wizard.
  3. Choose the Microsoft Excel List or Database option and click on Next.
  4. In the Range box, make sure your entire data table is selected, then click on Next.
  5. Drag the City field button to the Row area of the PivotTable builder.
  6. Drag the Name field button to the Data area of the PivotTable builder.
  7. Click on Finish. A new worksheet is created that contains your PivotTable.

If you are using Excel 2000, Excel 2002, or Excel 2003, the steps are a bit different:

  1. Select a cell within your data table.
  2. Choose the PivotTable and PivotChart Report option from the Data menu. Excel begins the PivotTable and PivotChart Wizard. (Click here to see a related figure.)
  3. Choose the Microsoft Excel List or Database option.
  4. Indicate you want to create a PivotTable, then click on Next.
  5. In the Range box, make sure your entire data table is selected, then click on Next.
  6. Indicate you want to put the PivotTable in a new worksheet, then click on Finish. Excel creates the bare-bones PivotTable worksheet, and the PivotTable Field List dialog box is visible.
  7. Drag the City field button from the PivotTable dialog box to the Row area of the PivotTable.
  8. Drag the Name field button from the PivotTable dialog box to the Data area of the PivotTable. Your PivotTable is complete.

The steps are different still in Excel 2007:

  1. Select a cell within your data table.
  2. Make sure the Insert tab of the ribbon is displayed.
  3. In the Tables group, click the PivotTable tool.
  4. Excel displays the Create PivotTable dialog box. (Click here to see a related figure.)
  5. In the Range box, make sure your entire data table is selected, then click on OK. Excel creates an empty PivotTable worksheet.
  6. Drag the City field from the field list to the Row Labels area.
  7. Drag the Name field from the field list to the Values area. Your PivotTable is complete.

Tip #3165 applies to Microsoft Excel versions: 97 | 2000 | 2002 | 2003 | 2007


PivotTables Got You Perplexed? PivotTables for the Faint of Heart shows how you can start using Excel's PivotTable tool right away to spin your data into gold! You discover how easy it really is to crunch the numbers you need to crunch. Uncover the power of creating PivotTables, editing them, formatting them, customizing them, and much more.
 
Check out PivotTables for the Faint of Heart today!

Helpful Links

Ask an Excel Question
Make a Comment

Tips.Net Home

ExcelTips FAQ
ExcelTips Premium

Learn Access Now

Beauty Tips
Bugs and Pests Tips
Car Tips
Cleaning Tips
College Tips
Cooking Tips
Excel2007 Tips
ExcelTips
Family Tips
Gardening Tips
Health Tips
Home Tips
Money Tips
Organizing Tips
Pet Tips
Word2007 Tips
WordTips

Advertise on the
ExcelTips Site

 

Great Info!

Get tips like this every week in ExcelTips, a free productivity newsletter. Enter your e-mail address and click "Subscribe."
     
(Your e-mail address will never be shared with anyone, ever.)