XL98: Using PivotTable Calculated Fields and Calculated ItemsLast reviewed: February 18, 1998Article ID: Q181219 |
The information in this article applies to:
SUMMARYMicrosoft Excel 98 Macintosh Edition introduces two new features that you can use to customize PivotTables; these features are calculated fields and calculated items. This article describes the function of each feature and includes 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 by using the contents of other fields in the PivotTable. A calculated field formula can refer to one or more fields. For example, a calculated field named "Profit" that you define as follows
=Sales-Expenserefers to two fields named "Sales" and "Expense" in the PivotTable. Example: The following example uses a calculated field in a PivotTable. This example subtracts the values for the Expense field from the values for the Sales field to give a subtotal for a new field named "Profit." To see this example, follow these steps:
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 by using the contents of other fields and items in the PivotTable. A calculated item formula can 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." Example: The following example uses a calculated item in a PivotTable. This example totals the values for two items, North and West, in the Region field to give a total for the new region named "NorthWest." To see this example, follow these steps:
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 Contents And Index on the Help menu (or on the Balloon Help menu if you are using a version of the Macintosh operating system earlier than 8.0), click the Index button in Microsoft Excel Help, type the following text
pivottables, calculated fields
-or-
pivottables, calculated items
and then click Show Topics. Select the "Create a calculated field in a
PivotTable" or "Create a calculated item in a PivotTable" topic, and
click Go To. If you are unable to find the information you need, ask the
Office Assistant.
|
Additional query words: XL98 8.0 calculation pivot table
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |