How do I add a formula column to my pivot, formula uses grand total of another column

johnlink

New Member
Joined
Nov 24, 2017
Messages
10
Hi All

Am looking at creating a pivot table which calculates TIPS JAR distribution for staff working in a Tavern. Management have decided that the best method to do this is by total hours for each worker as a percentage of grand total hours of all workers in a period.

I have created the data table and now have the pivot table set up but in column D I have had to manually add on the PAYOUT calc fields which apply employee percentage to GRAND TOTAL HOURS (user input in H2 field). Problem my column D is not dynamic as staff numbers change each period and the column has to be adjusted to suit.

Is there any way I can add this column to the pivot table. I see that calculated fields can be added but can not access a formula which includes the GRAND TOTAL of another field for this?

Hopefully some pivot table gurus out there can let me know how easy it is to do this??

Thanks in advance
johnlink
 

Attachments

  • TIPS PIVOT CALC COLUMN.png
    TIPS PIVOT CALC COLUMN.png
    71.3 KB · Views: 32

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.
A pivot isnt the best for this. Consider below table in A1:B4 with your tip amount in E1:



NameHours
s
10​
t
20​
f
30​

Then a formula such as =B2/SUM($B$2:$B$4)*$E$1 can be used in C2. You could then pivot that if you wanted.
 
Upvote 0
Solution
Thanks to "steve the fish" for this idea. I ended up following your suggestion and making all calcs in the source data and only at the final step migrated off to a pivot table report for printouts etc. Personally I have found the pivot table calculated fields to be rubbish. Cheers johnlink.
 
Upvote 0

Forum statistics

Threads
1,223,905
Messages
6,175,297
Members
452,633
Latest member
DougMo

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