Crazy Pivot Table Calculated Field Question

ammdumas

Active Member
Joined
Mar 14, 2002
Messages
469
Howdy,

This is a really hard question to formulate so I've posted the sheet below (using Excel 2007 and XP). I need to get percentage results based on a pivot table. So far I can only figure out how to do this outside of the pivot table and I was wondering if it's possible to create a calculated field so i don;t have to adjust/copy the formula every time I refresh the table.

In short I need to figure out percentage complete by area (the 4 digit code to the left), based on STATUS. The 4 different statuses (milestones) have a percentage associated to them (PREL=50%, ENGD=65%, etc.). So I have a formula with those percentages for each STATUS (divided by the total for that area) and then I add them all up to give me a percentage complete for a particular area.

A thru F is the pivot table...Thoughts?


Excel 2007
ABCDEFGHIJK
3Sum of TVolColumn Labels% @ IFC% @ PREL% @ REVIEWED% @ ENGDTOTAL
4Row LabelsIFCPRELREVIEWEDENGDGrand Total
531.6731.670.0050.000.000.0050.00
631200.2113.030.0013.251.6049.190.000.0150.80
7331120.2620.260.0050.000.000.0050.00
833204.374.370.0050.000.000.0050.00
933213.913.910.0050.000.000.0050.00
10333115.6215.620.0050.000.000.0050.00
1133334.844.840.0050.000.000.0050.00
1233420.970.970.0050.000.000.0050.00
133411121.13121.130.0050.000.000.0050.00
143421218.30218.300.0050.000.000.0050.00
1535129.249.240.0050.000.000.0050.00
1635142.922.920.0050.000.000.0050.00
17354230.5130.510.0050.000.000.0050.00
18371032.5832.58100.000.000.000.00100.00
19373023.7323.730.000.0085.000.0085.00
20374017.0717.070.000.0085.000.0085.00
2166105.235.230.0050.000.000.0050.00
22671021.2221.220.0050.000.000.0050.00
23STEL4.224.220.0050.000.000.0050.00
24Grand Total32.79507.4540.800.00581.04
PIVOT
Cell Formulas
RangeFormula
G5=B5/$F5*100
G6=B6/$F6*100
G7=B7/$F7*100
G8=B8/$F8*100
G9=B9/$F9*100
G10=B10/$F10*100
G11=B11/$F11*100
G12=B12/$F12*100
G13=B13/$F13*100
G14=B14/$F14*100
G15=B15/$F15*100
G16=B16/$F16*100
G17=B17/$F17*100
G18=B18/$F18*100
G19=B19/$F19*100
G20=B20/$F20*100
G21=B21/$F21*100
G22=B22/$F22*100
G23=B23/$F23*100
H5=C5/$F5*50
H6=C6/$F6*50
H7=C7/$F7*50
H8=C8/$F8*50
H9=C9/$F9*50
H10=C10/$F10*50
H11=C11/$F11*50
H12=C12/$F12*50
H13=C13/$F13*50
H14=C14/$F14*50
H15=C15/$F15*50
H16=C16/$F16*50
H17=C17/$F17*50
H18=C18/$F18*50
H19=C19/$F19*50
H20=C20/$F20*50
H21=C21/$F21*50
H22=C22/$F22*50
H23=C23/$F23*50
I5=D5/$F5*85
I6=D6/$F6*85
I7=D7/$F7*85
I8=D8/$F8*85
I9=D9/$F9*85
I10=D10/$F10*85
I11=D11/$F11*85
I12=D12/$F12*85
I13=D13/$F13*85
I14=D14/$F14*85
I15=D15/$F15*85
I16=D16/$F16*85
I17=D17/$F17*85
I18=D18/$F18*85
I19=D19/$F19*85
I20=D20/$F20*85
I21=D21/$F21*85
I22=D22/$F22*85
I23=D23/$F23*85
J5=E5/$F5*65
J6=E6/$F6*65
J7=E7/$F7*65
J8=E8/$F8*65
J9=E9/$F9*65
J10=E10/$F10*65
J11=E11/$F11*65
J12=E12/$F12*65
J13=E13/$F13*65
J14=E14/$F14*65
J15=E15/$F15*65
J16=E16/$F16*65
J17=E17/$F17*65
J18=E18/$F18*65
J19=E19/$F19*65
J20=E20/$F20*65
J21=E21/$F21*65
J22=E22/$F22*65
J23=E23/$F23*65
K5=SUM(G5:J5)
K6=SUM(G6:J6)
K7=SUM(G7:J7)
K8=SUM(G8:J8)
K9=SUM(G9:J9)
K10=SUM(G10:J10)
K11=SUM(G11:J11)
K12=SUM(G12:J12)
K13=SUM(G13:J13)
K14=SUM(G14:J14)
K15=SUM(G15:J15)
K16=SUM(G16:J16)
K17=SUM(G17:J17)
K18=SUM(G18:J18)
K19=SUM(G19:J19)
K20=SUM(G20:J20)
K21=SUM(G21:J21)
K22=SUM(G22:J22)
K23=SUM(G23:J23)
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Hi ammdumas,

I most likely misunderstood your question...
If you want to have % @ IFC % @ PREL % @ REVIEWED % @ ENGD TOTAL incorporated in your Pivot, use calculated fields as follows:
% @ IFC:
Code:
=IFC/(IFC+PREL+REVIEWED+ENGD)*100

% @ PREL
Code:
=PREL/(IFC+PREL+REVIEWED+ENGD)*50

% @ REVIEWED
Code:
=REVIEWED/(IFC+PREL+REVIEWED+ENGD)*85

% @ ENGD
Code:
=ENGD/(IFC+PREL+REVIEWED+ENGD)*65

TOTAL
Code:
='%IFC'+ '% @ PREL'+ '% @ Reviewed'+ '% @ Eng'

Is this what you wished to do?
urlink
 
Upvote 0
Hey. Ya, this won't work. There's one column in the core table called STATUS and it's in that table where you see data like PREL, IFC, etc. etc. They are not column unto themselves and therefore can't be called as items in a calculation field.

Have a look at this post. I tried to simplify my question a bit...

http://www.mrexcel.com/forum/showthread.php?t=620881
 
Upvote 0

Forum statistics

Threads
1,216,112
Messages
6,128,901
Members
449,477
Latest member
panjongshing

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