Excel Pivot Tables have heaps of calculations under the SHOW VALUES AS option and one that gets the most use is the DIFFERENCE FROM calculation.

You can show the values as the Difference From previous months, years, day etc.  This is just great when your boss asks you how you are tracking to the previous months, years, days…

In the example below I show you how to show the Difference From the previous YEAR:

DOWNLOAD EXCEL WORKBOOK

STEP 1: Insert a Pivot able by clicking on your data and going to Insert > Pivot Table > New Worksheet or Existing Worksheet

pivot

 

STEP 2: In the ROWS you have to put the Months field, in the COLUMNS the Years field and in the VALUES area the Sales field twice, I explain why below:

pivottable fields

 

STEP 3: Now click on the second Sales field’s (Sum of SALES2) drop down and choose Value Field Settings

value field settings

 

STEP 4: Now you need to select the Show Values As tab and from the drop down choose the Difference From

difference from

 

STEP 5: You need to select the Base Item: (previous) and Base Field: Financial Year and press OK.  So it will read the “Difference from the previous Financial Year

 

show values as

 

STEP 6: To format the values you need to select the Pivot Table and go to Pivot Table Tools > Analyze/Options > Select > Entire Pivot Table

select entire pivot table

Then you need to once again go to Pivot Table Tools > Analyze/Options > Select but this time select the Values

select values

Now press CTRL+1 to bring up the Format Cells dialogue box and make your formatting changes within here and press OK.  

NB: This will fix the number format permanently and any new field that get added into the Pivot Table will have this format.  Coll hey!

format cells

 

STEP 7: To change the Sum of SALES2 name within the Pivot Table, you need to click on a cell in the Pivot Table which contains Sum of SALES2 and manually make the change and press Enter

name change

 

STEP 8: You need to select the whole column that contains the empty values and Right Click and select Hide

hide column

 

You now have your Pivot Table, all formatted and showing the Difference from the previous Year:

pivot table

Difference From Previous Year

HELPFUL RESOURCE:

728x90

If you like this Excel tip, please share itEmail this to someone

email

Pin on Pinterest

Pinterest

Share on Facebook

Facebook

Tweet about this on Twitter

Twitter

Share on LinkedIn

Linkedin

Share on Google+

Google+

Related Posts

Conditionally Formatting A Drop Down List In a previous post I showed you how to Create a Drop Down List in a Table.    We are now going to take this concept one level further and apply some conditional formatting to the drop down data validation list. This is useful if you want to highlight when a job is completed, c...
Show Averages With an Excel Pivot Table A Pivot Table is the most powerful feature within Excel as it allows you to analyze your data in many different ways, all with a press of a button. The Summarize Values By option allows you to choose a type of calculation (Sum, Count, Average, Max, Min, Count Numbers Produ...
Text to Columns – Emails If you have a data set with text consisting of names and email addresses that are wrapped inside a parenthesis, like: John (john@email.com)   ...then you can use the Text to Columns feature in Excel to take out the email addresses and put them in a separate ...
Copy The Cell Above In Excel Sometimes we get data that is downloaded from an external source and it is not formatted properly. You may have cells with missing data and cases where you want to copy the cell directly above to fill in your empty cell in Excel. This can be achieved with the following step...