add calculated columns

wondering101

New Member
Joined
Oct 3, 2009
Messages
23
[TABLE="width: 689"]
<TBODY>[TR]
[TD="width: 71"]5022
[/TD]
[TD="width: 84"][/TD]
[TD="width: 71"][/TD]
[TD="width: 70"][/TD]
[TD="class: xl65, width: 81"]5022 Sum of Gross_Pay
[/TD]
[TD="class: xl65, width: 84"]5022 Sum of WC_Basis
[/TD]
[TD="width: 71"]5102
[/TD]
[TD="width: 84"][/TD]
[TD="width: 71"][/TD]
[TD="width: 67"][/TD]
[TD="class: xl65, width: 81"]5102 Sum of Gross_Pay
[/TD]
[TD="class: xl65, width: 84"]5102 Sum of WC_Basis
[/TD]
[/TR]
[TR]
[TD]O
[/TD]
[TD][/TD]
[TD]R
[/TD]
[TD][/TD]
[TD="class: xl65, width: 81"][/TD]
[TD="class: xl65, width: 84"][/TD]
[TD]O
[/TD]
[TD][/TD]
[TD]R
[/TD]
[TD][/TD]
[TD="class: xl65, width: 81"][/TD]
[TD="class: xl65, width: 84"][/TD]
[/TR]
[TR]
[TD="class: xl65, width: 71"]Sum of Gross_Pay
[/TD]
[TD="class: xl65, width: 84"]Sum of WC_Basis
[/TD]
[TD="class: xl65, width: 71"]Sum of Gross_Pay
[/TD]
[TD="class: xl65, width: 70"]Sum of WC_Basis
[/TD]
[TD="class: xl65, width: 81"][/TD]
[TD="class: xl65, width: 84"][/TD]
[TD="class: xl65, width: 71"]Sum of Gross_Pay
[/TD]
[TD="class: xl65, width: 84"]Sum of WC_Basis
[/TD]
[TD="class: xl65, width: 71"]Sum of Gross_Pay
[/TD]
[TD="class: xl65, width: 67"]Sum of WC_Basis
[/TD]
[TD="class: xl65, width: 81"][/TD]
[TD="class: xl65, width: 84"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD][/TD]
[TD][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD][/TD]
[TD][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]389.44
[/TD]
[TD="bgcolor: transparent, align: right"]389.44
[/TD]
[TD="align: right"]389.44
[/TD]
[TD="align: right"]389.44
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]2278.56
[/TD]
[TD="bgcolor: transparent, align: right"]2278.56
[/TD]
[TD="align: right"]2278.56
[/TD]
[TD="align: right"]2278.56
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent, align: right"]1154.13
[/TD]
[TD="bgcolor: transparent, align: right"]769.42
[/TD]
[TD="bgcolor: transparent, align: right"]8340.98
[/TD]
[TD="bgcolor: transparent, align: right"]8340.98
[/TD]
[TD="align: right"]9495.11
[/TD]
[TD="align: right"]9110.4
[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]390.46
[/TD]
[TD="bgcolor: transparent, align: right"]390.46
[/TD]
[TD="align: right"]390.46
[/TD]
[TD="align: right"]390.46
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD][/TD]
[TD][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent, align: right"]68.05
[/TD]
[TD="bgcolor: transparent, align: right"]68.05
[/TD]
[TD="align: right"]68.05
[/TD]
[TD="align: right"]68.05
[/TD]
[TD="bgcolor: transparent, align: right"]112.32
[/TD]
[TD="bgcolor: transparent, align: right"]74.88
[/TD]
[TD="bgcolor: transparent, align: right"]2348.8
[/TD]
[TD="bgcolor: transparent, align: right"]2348.8
[/TD]
[TD="align: right"]2461.12
[/TD]
[TD="align: right"]2423.68
[/TD]
[/TR]
</TBODY>[/TABLE]


This is a small section of my pivot table, I omitted all the row labels. I want the "Sum of Gross Pay" for O and R to show up how ever I did not want to show the "Sum of WC Basis" for O and R just wanted the total for "5022 Sum of WC Basis" to show in my pivot table. I do not under stand how to right the formula for this. not sure if should try an array or something different. looking for ideas or some direction.

I would like to hide the WC basis except for the 5022 and 5102 Sum of the WC_Basis. I created the following formula in a table =IF(E2="D",G2/2,IF(E2="O",G2/1.5,IF(E2="R",G2,IF(E2="V",G2," Error")))) . Then I created a power pivot table (2010 32bit) Witch totaled the Row as I had hoped however I did not want the values for "D,O,R,V" WC_Basis to show up in the columns just the totals of the calculated fields. looking for some direction I am pretty sure excel can do it just not sure which function to use kind of green with all of this.
Thanks
cj
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Forum statistics

Threads
1,223,956
Messages
6,175,607
Members
452,660
Latest member
Zatman

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