Ways to view information
You can sort the data by different fields and filter out data that you don't need to see. With a PivotTable in Microsoft Office Excel 2007, you can go further by changing how the data is laid out. For example, you could create a PivotTable that shows grades by student lab team.
Sort your data to see patterns and trends with PivotTables in Office Excel 2007.
A PivotTable is composed of four areas: Row Labels, Column Labels, Values, and Report Filter. You create different views of your data by the ways in which you assign your data fields to these areas. For example, you could assign the Student names field to column labels, and the names would appear as column headings.
The best way to understand PivotTables is to experiment with them. To help you get started, we will create a PivotTable that shows a summary of final grades or scores for individual students, using a sample grade book table. To find out how to create a table like this, see Keep track of grades in Microsoft Office Excel 2007.
- Click a cell in your table (or a cell in a named range.) Then, on the Insert tab, in the Tables group, click the arrow under PivotTable, and click PivotTable. The dialog box shows the table or range you selected.
- Click OK, and Office Excel 2007 creates a new worksheet with an empty PivotTable. By default, the task pane on the right displays the PivotTable Field List that contains all of the fields in your database and four boxes (Report Filter, Column Labels, Row Labels, and Values).
- Drag Student names from the Field list to the Row Labels box. The student names appear in the PivotTable in a column.
- Drag the fields containing final scores (Total Average, Quiz/Lab, Tests, Homework, and Participation) one at a time from the Field list to the Values box. The column labels in the PivotTable become the names of the five fields preceded by "Sum of," and the field values appear below the column labels.
- Drag Values from the Column Labels box to below Student names in the Row Labels box. A set of scores displays under each student name.
- Drag Student names from Row Labels to Report Filter. Student names appear at the top of the table, and the five Values display summary values.
- Click the arrow next to Student names, select a name, and then click OK. The table displays the scores for the selected student.
- To change a field name in the PivotTable, click the cell and type a new name in the Formula Bar. You can modify formatting the same as with any other cell or range.