How to add a calculated field in a PivotTable

Home How to add a calculated field in a PivotTable

How to add a calculated field in a PivotTable.

PivotTables in Excel provide strong functionality to summarize and aggregate data contained in a worksheet. In this article, we will learn how to add a calculated field in a Pivot table.

Follow the step-by-step instructions provided below on how to create a PivotTable and then create a calculated field for Cost.

The data set used for this exercise contains Category, Sub-Category, Sales, and Quantity. If you need this data set for your own practice, please request in the comments and I will email it to you.

Source Data

Steps to create a calculated field in a Pivot Table

  1. Click on any cell in the source data, from the ribbon, navigate to Insert tab and select PivotTable. From the PivotTable drop-down, select Table/Range.
  2. The subsequent dialog will display the range; make sure to select ‘New worksheet’ to display the PivotTable. This will display the PivotTable interface on a new sheet.
  3. From the right PivotTable Fields, select Category, Sub-Category and Sales. This will display the data in the PivotTable.
  4. Select the Sum of Sales column in the PivotTable and from the Home > Number group, select $. This will display Sales with a $ symbol and 2 places of decimals.
PivotTable and Fields.
  1. To add the calculated field, click anywhere on the PivotTable , navigate to PivotTable Analyze option (in the ribbon) and select the option for Fields, Items & Sets. Choose Calculated Field from the drop-down.
Selecting the Calculated field option.
  1. In the subsequent Insert Calculated Field dialog box, provide the name and enter the formula by selecting the fields from the list.
Inserting the calculated field.

This will add the calculated field in the PivotTable.

Calculated field added in the PivotTable

For a step-by-step approach to learning more advanced features and functions in Excel, take a look at the book Excel Basics to Advanced.

If you wish to practice more on Excel, visit MS excel Practice questions.

Comment

Enrollment Form

Start your Journey by Enrolling in our Training Program

Learning Path By

How to add a calculated field in a PivotTable

Enrollment Form

Start your Journey by Enrolling in our Training Program

Course Details

Program

How to add a calculated field in a PivotTable

Training Format
(Online/In class)

In class

Preferred days / Timings (Weekdays/Weekends)

10 am - 12 pm
Weekend

Enrollment Form

Start your Journey by Enrolling in our Training Program