Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
pivot table calculated field with user function
Is it possible/how do I use a user function for a pivot table
calculated field? Something like the following: With pt .AddFields RowFields:="Vendor", ColumnFields:="Channel" .PivotFields("Name").Orientation = xlDataField .CalculatedFields.Add name:="BlueBox", Formula:="=CountBlueBox(Name,Channel)" With .PivotFields("BlueBox") .Orientation = xlDataField End With End With I don't seem to understand how to specify the function CountBlueBox as the Formula. |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
pivot table calculated field with user function
To the best of my knowledge you can not use a UDF with a Pivot Table. You
could add an extra column into your source data and add the UDF value to that column perhaps... -- HTH... Jim Thomlinson "puff" wrote: Is it possible/how do I use a user function for a pivot table calculated field? Something like the following: With pt .AddFields RowFields:="Vendor", ColumnFields:="Channel" .PivotFields("Name").Orientation = xlDataField .CalculatedFields.Add name:="BlueBox", Formula:="=CountBlueBox(Name,Channel)" With .PivotFields("BlueBox") .Orientation = xlDataField End With End With I don't seem to understand how to specify the function CountBlueBox as the Formula. |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
pivot table calculated field with user function
Thanks for the information. I was affraid of that. I ended up having
to make another table. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How do I remove a Calculated Field from the Pivot Table field list | Excel Discussion (Misc queries) | |||
Pivot table, IF function, calculated item versus calculated field | Excel Discussion (Misc queries) | |||
Creating a Calculated Field in a Pivot Table for same field | Excel Discussion (Misc queries) | |||
Calculated Field and Calculated Item in Pivot Table | Excel Discussion (Misc queries) | |||
pivot table formulas for calculated field or calculated item | Excel Discussion (Misc queries) |