Locked lesson.
About this lesson
Learn to create and modify basic calculated fields for PivotTables.
Exercise files
Download this lesson’s related exercise files.
Calculated Fields in PivotTables.xlsx39.5 KB Calculated Fields in PivotTables - Completed.xlsx
39 KB
Quick reference
Topic
Creating PivotTable calculated fields.
Description
Creating and modifying basic calculated fields for PivotTables in Excel.
Where/when to use the technique
Calculated fields are used to build mathematical and logical formulas in a PivotTable, rather than relying on adding those calculations to the data source. This is useful, as there are occasions where we cannot modify our source data but need to add extra calculations to our PivotTables.
Instructions
Creating Calculated Fields
- Select a cell in the PivotTable
- Go to PivotTable Analyze tab --> Fields, Items & Sets --> Calculated Field
- In the Name field, replace Field1 with “Profit”
- Highlight the 0 in the formula field, scroll down the Fields list
- Double click Price, type -, click Cost, type -, click Commission
- Click Add, then OK, and notice that the new field is on the PivotTable
Add Another
- Select a cell in the PivotTable
- Go to PivotTable Analyze tab --> Fields, Items & Sets --> Calculated Field
- In the Name field, replace Field1 with “Profit %”
- Highlight the 0 in the formula field, scroll down the Fields list
- Double click Price, type /, click Profit
- Click Add, then OK, and notice that the new field is on the PivotTable
- The percentage doesn’t make sense though… we got those two fields backwards!
Modifying Calculated Fields
- Go back to Fields, Items & Sets --> Calculated Field
- Choose “Profit %” from the Name drop down
- Change the formula to =Profit/Price
- Click Modify, then OK
- The PivotTable has updated to show your revised formula.
Lesson notes are only available for subscribers.