本帖最后由 Test 于 2011-8-26 14:26 编辑
View all formulas that are used in a PivotTable report
To display a list of all the formulas that are used in the current PivotTable report, do the following:
- Click the PivotTable report.
- On the Options tab, in the Tools group, click Formulas, and then click List Formulas.
Edit a PivotTable formula
- Determine whether the formula is in a calculated field or a calculated item. If the formula is in a calculated item, determine whether the formula is the only one for the calculated item by doing the following:
- Click the PivotTable report.
- On the Options tab, in the Tools group, click Formulas, and then click List Formulas.
- In the list of formulas, find the formula that you want to change listed under Calculated Field or Calculated Item.
When there are multiple formulas for a calculated item, the default formula that was entered when the [url=]item[/url] was created has the calculated item name in column B. For additional formulas for a calculated item, column B contains both the calculated item name and the names of intersecting items. For example, you might have a default formula for a calculated item named MyItem, and another formula for this item identified as MyItem January Sales. In the PivotTable report, you would find this formula in the Sales cell for the MyItem row and January column.
Edit a calculated field formula - Click the PivotTable report.
- On the Options tab, in the Tools group, click Formulas, and then click Calculated Field.
- In the Name box, select the calculated field for which you want to change the formula.
- In the Formula box, edit the formula.
- Click Modify.
Edit a single formula for a calculated item - Click the field that contains the calculated item.
- On the Options tab, in the Tools group, click Formulas, and then click Calculated Item.
- In the Name box, select the calculated item.
- In the Formula box, edit the formula.
- Click Modify.
Edit individual formulas for specific cells of a calculated item For example, if a calculated item named OrangeCalc has a formula of =Oranges * .25 across all months, you can change the formula to =Oranges *.5 for June, July, and August. - Click a cell for which you want to change the formula.
To change the formula for several cells, hold down CTRL and click the additional cells. - In the [url=]formula bar[/url], type the changes to the formula.
- If you have multiple calculated items or formulas, adjust the order of calculation by doing the following:
- Click the PivotTable report.
- On the Options tab, in the Tools group, click Formulas, and then click Solve Order.
- Click a formula, and then click Move Up or Move Down.
- Continue until the formulas are in the order that you want them to be calculated.
Delete a PivotTable formula Tip
If you do not want to delete a formula permanently, you can hide the field or item. To hide a field, drag it out of the report.
- Determine whether the formula is in a calculated field or a calculated item.
Calculated fields appear in the PivotTable Field List. Calculated items appear as [url=]items[/url] within other fields.
Delete a calculated field - Click the PivotTable report.
- On the Options tab, in the Tools group, click Formulas, and then click Calculated Field.
- In the Name box, select the field that you want to delete.
- Click Delete.
Delete a calculated item - Click the field that contains the item that you want to delete.
- On the Options tab, in the Tools group, click Formulas, and then click Calculated Item.
- In the Name box, select the item that you want to delete.
- Click Delete.
|