XL97: Using PivotTable Calculated Fields and Calculated ItemsLast reviewed: January 15, 1998Article ID: Q161882 |
The information in this article applies to:
SUMMARYMicrosoft Excel 97 introduces two new features for customizing PivotTables; these features are calculated fields and calculated items. This article describes the function of each feature and provides examples for using the features in PivotTables.
MORE INFORMATION
Calculated FieldsA Calculated Field is a user-defined field in a PivotTable that can perform calculations using the contents of other fields in the PivotTable. Calculated field formulas can refer to one or more fields. For example, a calculated field named "Profit" that you define as:
=Sales-Expenserefers to two fields in the PivotTable named "Sales" and "Expense." The following example uses a calculated field in a PivotTable. This example subtracts the two fields Sales and Expense to give a subtotal for the new field named "Profit."
Month
Region Data Jan Feb Mar Grand Total
East Sum of Sales 3700 3100 2200 9000
Sum of Expenses 900 1100 400 2400
Sum of Profit 2800 2000 1800 6600
North Sum of Sales 1100 2300 1500 4900
Sum of Expenses 400 700 300 1400
Sum of Profit 700 1600 1200 3500
South Sum of Sales 2400 2400 2600 7400
Sum of Expenses 700 800 500 2000
Sum of Profit 1700 1600 2100 5400
West Sum of Sales 2800 2000 3900 8700
Sum of Expenses 800 600 1300 2700
Sum of Profit 2000 1400 2600 6000
Total Sum of Sales 10000 9800 10200 30000
Total Sum of Expenses 2800 3200 2500 8500
Total Sum of Profit 7200 6600 7700 21500
Calculated ItemsA calculated item is a user-defined item in a PivotTable field that can perform calculations using the contents of other fields and items in the PivotTable. Calculated item formulas can each include only items from the field in which you create the calculated item. For example, you can define a calculated item named "NorthWest" as "=North+West" in the field named "Region." The following example uses a calculated item in a PivotTable. This example totals two items, North and West, in the Region field to give a total for the new region named "NorthWest."
Sum of Sales Month
Region Jan Feb Mar Grand Total
East 3700 3100 2200 9000
North 1100 2300 1500 4900
South 2400 2400 2600 7400
West 2800 2000 3900 8700
NorthWest 3900 4300 5400 13600
Grand Total 13900 14100 15600 43600
REFERENCESFor more information about performing calculations in PivotTables, click the Index tab in Microsoft Excel 97 Help, type the following text
pivottables, calculated fields -or- pivottables, calculated itemsand then double-click the selected text to go to the "Create a calculated field in a PivotTable" or "Create a calculated item in a PivotTable" topic.
|
Additional query words: 97 XL97 8.0 calculation pivot table
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |