Subtracting the difference between 2 values in a pivot while still showing the original values

Tan9321

New Member
Joined
Aug 25, 2016
Messages
2
HI, Can any one help me on this

The months shown below are values , with the heading on the column being MONTH, How can I subtract the two months while still showing the values of the months
I cant put in a calculated field as Month is the only heading, also if I use the Show total as difference between the 2 columns it will clear July 15 while only putting the difference of the two columns in the July 16 column and nothing in Sub Total

I have asked a couple of people who are advanced in excel but we are all at a loss on this, and yet it seems like it should be quite obvious
Data in which the table is shown is only dummy data as an example , actual file I would use would have a lot more columns which If I was doing something like this I would throw it all into a pivot to show July 16 and July 15 as headers and then pivot that data as my new table

Thanks a mill

T

Sum of VALUEColumn LabelsSum of VALUEColumn Labels
Row LabelsJul-15Jul-16Grand TotalRow LabelsJul-15Jul-16Difference
HOME4500910013600HOME450091004600
LADIES2900750010400LADIES290075004600
MENS122552506475MENS122552504025
Grand Total86252185030475Grand Total86252185013225

<colgroup><col><col span="3"><col span="3"><col><col></colgroup><tbody>
</tbody>


GROUPMONTHVALUE
MENSJul-15100
MENSJul-15125
MENSJul-15150
MENSJul-15175
MENSJul-15200
MENSJul-15225
MENSJul-15250
LADIESJul-15275
LADIESJul-15300
LADIESJul-15325
LADIESJul-15350
LADIESJul-15375
LADIESJul-15400
LADIESJul-15425
LADIESJul-15450
HOMEJul-15475
HOMEJul-15500
HOMEJul-15525
HOMEJul-15550
HOMEJul-15575
HOMEJul-15600
HOMEJul-15625
HOMEJul-15650
MENSJul-16675
MENSJul-16700
MENSJul-16725
MENSJul-16750
MENSJul-16775
MENSJul-16800
MENSJul-16825
LADIESJul-16850
LADIESJul-16875
LADIESJul-16900
LADIESJul-16925
LADIESJul-16950
LADIESJul-16975
LADIESJul-161000
LADIESJul-161025
HOMEJul-161050
HOMEJul-161075
HOMEJul-161100
HOMEJul-161125
HOMEJul-161150
HOMEJul-161175
HOMEJul-161200
HOMEJul-161225

<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>
</tbody>
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
GROUPMONTHVALUE
MENSJul-15100
MENSJul-15125
MENSJul-15150
MENSJul-15175
MENSJul-15200
MENSJul-15225
MENSJul-15250Jul-15Jul-16TOTALINCREASE
LADIESJul-15275MENS1225525064754025
LADIESJul-15300LADIES29007500104004600
LADIESJul-15325HOME45009100136004600
LADIESJul-15350
LADIESJul-15375
LADIESJul-15400
LADIESJul-15425
LADIESJul-15450
HOMEJul-15475a very simple sumproduct table that automatically updates as you add data in cols A:C
HOMEJul-15500seems to do what you want
HOMEJul-15525
HOMEJul-15550
HOMEJul-15575cell giving 1225
HOMEJul-15600=SUMPRODUCT(($A$2:$A$47=$H9)*($B$2:$B$47=I$8)*($C$2:$C$47))
HOMEJul-15625
HOMEJul-15650
MENSJul-16675
MENSJul-16700

<colgroup><col width="64" span="17" style="width:48pt"> </colgroup><tbody>
</tbody>
 
Upvote 0
HI, Its for a pivot though that will be using new data all the time, I would have to do this on the side outside the pivot wouldnt I?
 
Upvote 0
You want to change the calculation for a Value Field Settings.
Still need a "calculated field, though it will just be to duplicate your Value field.
Then use "Value Field Settings" under the "Show Value As" to "Difference From" and set Base field to Month and Base item to "(previous)"
 
Upvote 0
add new data to mine and the table will update automatically, but it is not a pivot table
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,868
Members
449,053
Latest member
Mesh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top