Calculated Field UDF in Pivot Table

amaru

New Member
Joined
Sep 8, 2014
Messages
1
Hi,

Trying to add a UDF formula for calculated field in a pivot table.

UDF = concat('existing field', ","). The UDF concat concatenates a range of cells with a delimiter, in this case a comma. Say the 'existing field' is a column of strings.

Calculated field formulas seem very limiting in scope. I want to avoid converting the pivot table to values. Using a udf on the aggregation of data seems like a logical extension of a pivot table capabilities.

Question: will the above udf work in a pivot table? Willing to post an example if required.
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
40,399
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. MacOS
No it won't work. You can't use a UDF in a calculated field. Even if you could that one returns text which would be no use.
 
Upvote 0

Forum statistics

Threads
1,191,379
Messages
5,986,285
Members
440,016
Latest member
vasanrajeswaran

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
Top