Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

How to Calculate the Percentage Change in Pivot Table in Excel

Although the main function of a PivotTable is to summarize large data, you can use them to calculate the percentage change between values.

Table of Contents

Understanding Calculate percentage change of Excel requires more than a headline. The overview below breaks down the key facts, changes, and user impact.

  • Use Pivot Table in the Google Docs Spreadsheet
  • Use VBA in Excel to create and repair PivotTable
  • 8 convenient tools in Excel you may not know yet

Here is an example of the sheet we will use in the lesson.

How to Calculate the Percentage Change in Pivot Table in Excel – Calculate percentage change of Excel

This is an example of a company's revenue table, including the order date, customer name, salesperson, total sales and some other data.

First, we will format the value range as a table in Excel and then create the Pivot Table to display the percentage change.

Format Ranges in Table Form

If the range of data has not been formatted as a table, you should do this. Data formatted into tables will be more convenient in the form of a worksheet cell, especially when using PivotTable.

To format the range as a table, select the cell range and click Insert> Table.

How to Calculate the Percentage Change in Pivot Table in Excel – Format Ranges in Table Form (2)

Check if the range is correct, check the My table has header box if there is a title in the first LINE of the range, then click OK.

Now, the range is formatted like a table. Naming tables will make it easier to reference when creating PivotTable, charts, and formulas. Click the Design tab in Table Tools and enter a name in the box in the Ribbon. This table here is named Sales.

How to Calculate the Percentage Change in Pivot Table in Excel – Format Ranges in Table Form (3)

Create a Pivottable to Display the Percentage Change

Now, let's start with creating a PivotTable. From the new table, click I nsert> PivotTable. The Create PivotTable window will appear, it will automatically detect your table, but you can select the table or range you want to use for the PivotTable in this step.

How to Calculate the Percentage Change in Pivot Table in Excel – Create a Pivottable to Display the Percentage Change (4)

Group of Days by Month

Then we will drag the date field we want to group into the row area of ??the PivotTable. In this example, the field named Order Date.

From Excel 2016 onwards, the date value will automatically be grouped by year, quarter and month. If you are using an older version or want to change the group type, right-click a cell that contains date data and then select the Group command.

How to Calculate the Percentage Change in Pivot Table in Excel – Group of Days by Month (5)

Select the group you want to use, in this example select Years and Months.

How to Calculate the Percentage Change in Pivot Table in Excel – Group of Days by Month (6)

Now we will use the Year and Month fields to analyze. The months are still named Order Date.

How to Calculate the Percentage Change in Pivot Table in Excel – Group of Days by Month (7)

Add Value Fields to the Pivottable

Move Year from Rows to Filter, this helps users filter the PivotTable by year instead of shuffling the PivotTable with too much information. Drag the field containing the values ??(total sales in this example) you want to calculate and show the change in Values ??twice.

How to Calculate the Percentage Change in Pivot Table in Excel – Add Value Fields to the Pivottable (8)

Both value fields will be defaulted to sum and at the time not formatted. We will keep the values ??in the first column in the sum form and need to reformat them. Right-click on the number in the first column, select Number Formatting from the shortcut menu. Select Accounting format with decimal 0 from the Format Cells dialog box.

The PivotTable now looks like this:

How to Calculate the Percentage Change in Pivot Table in Excel – Add Value Fields to the Pivottable (9)

Create a Percentage Change Column

Right-click on a value in the second column, point to Show Values and then click on the option % Difference from.

How to Calculate the Percentage Change in Pivot Table in Excel – Create a Percentage Change Column (10)

Select (Previous) in Base Item, so that the current month value is always compared with the previous months (in the Order Date field).

How to Calculate the Percentage Change in Pivot Table in Excel – Create a Percentage Change Column (11)

The PivotTable table now displays both the value and the percentage change.

How to Calculate the Percentage Change in Pivot Table in Excel – Create a Percentage Change Column (12)

Click on the Row Labels container and type Month as the title for that column, then click the title box for the second value column and type Variance.

How to Calculate the Percentage Change in Pivot Table in Excel – Create a Percentage Change Column (13)

Add up and Down Arrows

To edit this PivotTable, we will add some red and blue arrows to show the increase or decrease in sales.

Click on any value in the second column and click on Home> Conditional Formatting> New Rule. In the Edit Formatting Rule window, follow the steps below.

Step 1. Select All cells showing 'Variance' values ??for Order Date.

Step 2. Select Icon Sets from the Format Style list.

Step 3. Select red, blue and amber triangles from the Icon Style list.

Step 4. In the Type column, change the Percentage option to Number to change the Value column to 0.

How to Calculate the Percentage Change in Pivot Table in Excel – Add up and Down Arrows (14)

Click OK and conditional formatting is applied to PivotTable.

How to Calculate the Percentage Change in Pivot Table in Excel – Add up and Down Arrows (15)

PivotTable is an incredible tool and is one of the simplest ways to display percentage change over time for values.

I wish you all success!

FAQ

How does Calculate percentage change of Excel work?

Understanding Calculate percentage change of Excel requires more than a headline.

What should you prepare before using this method?

The overview below breaks down the key facts, changes, and user impact.

What should you do if the process does not work as expected?

Use Pivot Table in the Google Docs Spreadsheet Use VBA in Excel to create and repair PivotTable 8 convenient tools in Excel you may not know yet Here is an example of the sheet we will use in the lesson.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.