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.

Pivot Table is an excellent reporting tool built into Excel. Although the main function of this table is to summarize large data, you can use them to calculate the percentage change between values. This article will show you how to calculate the percentage change in Pivot Table.

  1. Use Pivot Table in the Google Docs Spreadsheet
  2. Use VBA in Excel to create and repair PivotTable
  3. 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 Picture 1How to calculate the percentage change in Pivot Table in Excel Picture 1

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 Picture 2How to calculate the percentage change in Pivot Table in Excel Picture 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 Picture 3How to calculate the percentage change in Pivot Table in Excel Picture 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 Picture 4How to calculate the percentage change in Pivot Table in Excel Picture 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 Picture 5How to calculate the percentage change in Pivot Table in Excel Picture 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 Picture 6How to calculate the percentage change in Pivot Table in Excel Picture 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 Picture 7How to calculate the percentage change in Pivot Table in Excel Picture 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 Picture 8How to calculate the percentage change in Pivot Table in Excel Picture 8

Both value fields will be defaulted to sum and currently 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 Picture 9How to calculate the percentage change in Pivot Table in Excel Picture 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 Picture 10How to calculate the percentage change in Pivot Table in Excel Picture 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 Picture 11How to calculate the percentage change in Pivot Table in Excel Picture 11

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

How to calculate the percentage change in Pivot Table in Excel Picture 12How to calculate the percentage change in Pivot Table in Excel Picture 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 Picture 13How to calculate the percentage change in Pivot Table in Excel Picture 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 Picture 14How to calculate the percentage change in Pivot Table in Excel Picture 14

Click OK and conditional formatting is applied to PivotTable.

How to calculate the percentage change in Pivot Table in Excel Picture 15How to calculate the percentage change in Pivot Table in Excel Picture 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!

4.5 ★ | 2 Vote