pivot table calculation field add

icemail

New Member
Joined
Aug 27, 2015
Messages
27
hi

a,b,c,d,e pivot table colums.
f,g,h,ı,j,k my formula columns.(sample columns)

can i add my formula columns with vba "calculation field add"?
i wish to turn my formula colums to pivot table calculation field(sample colums => calculation field with vba)

my sample data is down

thx




Sub-Category 2base priceAverage x custumer priceAverage y custumer priceAverage z customer pricesample col1sample col 2sample col3sample col4sample col5sample col 6
Appliances 121,78292230MIN(C2:E2)MAX(C2:E2)AVERAGE(C2:E2)C2/B2D2/B2E2/B2
Appliances 221,78292925MIN(C3:E3)MAX(C3:E3)AVERAGE(C3:E3)C3/B3D3/B3E3/B3
Binders and Binder Accessories 12,08647MIN(C4:E4)MAX(C4:E4)AVERAGE(C4:E4)C4/B4D4/B4E4/B4
Binders and Binder Accessories 23,52345MIN(C5:E5)MAX(C5:E5)AVERAGE(C5:E5)C5/B5D5/B5E5/B5
Binders and Binder Accessories 35,98768MIN(C6:E6)MAX(C6:E6)AVERAGE(C6:E6)C6/B6D6/B6E6/B6
Bookcases 181,94659580MIN(C7:E7)MAX(C7:E7)AVERAGE(C7:E7)C7/B7D7/B7E7/B7
Bookcases 2100,98887370MIN(C8:E8)MAX(C8:E8)AVERAGE(C8:E8)C8/B8D8/B8E8/B8
Chairs & Chairmats 1120,98125147137MIN(C9:E9)MAX(C9:E9)AVERAGE(C9:E9)C9/B9D9/B9E9/B9
Chairs & Chairmats 2122,99163210196MIN(C10:E10)MAX(C10:E10)AVERAGE(C10:E10)C10/B10D10/B10E10/B10
Computer Peripherals 130,98292830MIN(C11:E11)MAX(C11:E11)AVERAGE(C11:E11)C11/B11D11/B11E11/B11
Computer Peripherals 239,48525040MIN(C12:E12)MAX(C12:E12)AVERAGE(C12:E12)C12/B12D12/B12E12/B12
Computer Peripherals 349,99383934MIN(C13:E13)MAX(C13:E13)AVERAGE(C13:E13)C13/B13D13/B13E13/B13
Envelopes 14,48664MIN(C14:E14)MAX(C14:E14)AVERAGE(C14:E14)C14/B14D14/B14E14/B14
Envelopes 25,58728MIN(C15:E15)MAX(C15:E15)AVERAGE(C15:E15)C15/B15D15/B15E15/B15
Envelopes 35,68574MIN(C16:E16)MAX(C16:E16)AVERAGE(C16:E16)C16/B16D16/B16E16/B16
Labels 12,88822MIN(C17:E17)MAX(C17:E17)AVERAGE(C17:E17)C17/B17D17/B17E17/B17
Labels 23,69986MIN(C18:E18)MAX(C18:E18)AVERAGE(C18:E18)C18/B18D18/B18E18/B18
Office Furnishings 15,8646778MIN(C19:E19)MAX(C19:E19)AVERAGE(C19:E19)C19/B19D19/B19E19/B19
Office Furnishings 226,2314222527MIN(C20:E20)MAX(C20:E20)AVERAGE(C20:E20)C20/B20D20/B20E20/B20
Office Furnishings 334,4324455734MIN(C21:E21)MAX(C21:E21)AVERAGE(C21:E21)C21/B21D21/B21E21/B21
Paper 15,0504984MIN(C22:E22)MAX(C22:E22)AVERAGE(C22:E22)C22/B22D22/B22E22/B22
Paper 25,8764222MIN(C23:E23)MAX(C23:E23)AVERAGE(C23:E23)C23/B23D23/B23E23/B23
Pens & Art Supplies 12,881073MIN(C24:E24)MAX(C24:E24)AVERAGE(C24:E24)C24/B24D24/B24E24/B24
Pens & Art Supplies 24,84542MIN(C25:E25)MAX(C25:E25)AVERAGE(C25:E25)C25/B25D25/B25E25/B25
Rubber Bands 12,18928MIN(C26:E26)MAX(C26:E26)AVERAGE(C26:E26)C26/B26D26/B26E26/B26
Rubber Bands 22,62454MIN(C27:E27)MAX(C27:E27)AVERAGE(C27:E27)C27/B27D27/B27E27/B27
Scissors, Rulers and Trimmers 13,688108MIN(C28:E28)MAX(C28:E28)AVERAGE(C28:E28)C28/B28D28/B28E28/B28
Scissors, Rulers and Trimmers 212,98191515MIN(C29:E29)MAX(C29:E29)AVERAGE(C29:E29)C29/B29D29/B29E29/B29
Storage & Organization 134,76494834MIN(C30:E30)MAX(C30:E30)AVERAGE(C30:E30)C30/B30D30/B30E30/B30
Storage & Organization 259,76555352MIN(C31:E31)MAX(C31:E31)AVERAGE(C31:E31)C31/B31D31/B31E31/B31
Tables 1100,8627569MIN(C32:E32)MAX(C32:E32)AVERAGE(C32:E32)C32/B32D32/B32E32/B32
Tables 2218,75121124140MIN(C33:E33)MAX(C33:E33)AVERAGE(C33:E33)C33/B33D33/B33E33/B33
Telephones and Communication 120,99213029MIN(C34:E34)MAX(C34:E34)AVERAGE(C34:E34)C34/B34D34/B34E34/B34
Telephones and Communication 265,99907091MIN(C35:E35)MAX(C35:E35)AVERAGE(C35:E35)C35/B35D35/B35E35/B35
Telephones and Communication 365,99777474MIN(C36:E36)MAX(C36:E36)AVERAGE(C36:E36)C36/B36D36/B36E36/B36

<tbody>
</tbody>
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.

Forum statistics

Threads
1,215,133
Messages
6,123,233
Members
449,092
Latest member
SCleaveland

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