Pivot Table & Calculated Fields?

thaatrain

New Member
Joined
Mar 5, 2012
Messages
13
Hi everyone,

Apologies if my question has been posted or solved before, however I could not find so here I go.

I have a series of HR headcount data, which contains various columns of 1's and 0's.

I am trying to figure out turnover or attrition, but I would like to calculate this within a pivot table itself, which therefore means I probably need a calculated to to sum up 2 desired columns and then divide the sum by the sum of the other column to arrive at a %tage.

I have attached a very basic example of what the background data looks like, hopefully it helps.

How do I sum up the totals of column C, separately sum up the the totals of column B, then divide the total of column B, by that of column C?

Column AColumn BColumn C
NameHeadcount JulyTurnover (leaver) July
Employee 110
Employee 210
Employee 310
Employee 410
Employee 501
Employee 610
Employee 701
Employee 810
Employee 901
Employee 1010
Employee 1110
Employee 1210
Employee 1310
Employee 1410
Employee 1501

<tbody>
</tbody>

<tbody>
</tbody>

:confused:
Thanks in advance,

A.
 
Ok so I achieved a Calculated percentage field between headcount & turnover but with a change to the dataset. I placed your Dates in rows to the left of Employee ID and Headcount & Turnover get their own columns.

ie as per your real data for example Mike Tyson;

dateEmployee IDPreferred Name (if different)GenderJob TitleBusiness UnitPhysical LocationContract StatusEmployee TypeGlobal Job Bandheadcountturnover
Jun-171000001Mike TysonFBusiness Support SpecialistAmericas ClusterUSPermanentLocalA10
Jun-171000001Mike TysonFBusiness Support SpecialistAmericas ClusterUSPermanentLocalA11
Jul-171000001Mike TysonFBusiness Support SpecialistAmericas ClusterUSPermanentLocalA10

<tbody>
</tbody>

So now there are separate entries for date & HC or TO per employee and their geo/functional data which allows for the data to be sliced as desired.
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
Hi,

Thanks for this, but I cant change the raw data set. I can only have one line item per employee. Also you seem to be pivoting the informoation in order to perform a sum formula at the bottom, outside of the pivot;whereas I would need to calculation in the pivot itself.

Hope someone can help!?!?
 
Upvote 0
What you are asking for cannot be easily done (if at all) without modifying your source data the way I mentioned earlier or like RasGhul more elaborately mentioned. You don't have to change your source data but you will have to keep a secondary data set that you can use to calculate turnover in the pivot table.
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,858
Members
449,051
Latest member
excelquestion515

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