Display alternative text in pivot table

DebB

New Member
Joined
Aug 16, 2011
Messages
2
I am using a pivot table set up by someone else about 5 years ago. One of the fields is 'Staff Type' and data validation forces the user to select from "A" "G" or "V". However, on the pivot table, the Staff Type Field displays "Academic" "General" or "Visitor" in the sub headings. I can easily replace the data to get whichever I ultimately want displayed, but I want to know why this is happening? I can't find any field settings that tell the pivot table to display alternative text to what is in the table. Any clues?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Hi,

Maybe the PVT was created using VBA and at the end of the code there is something like (assuming the field Staff Type is in column D, for example)

Code:
With Range("D:D")
    .Replace "A", "Academic"
    .Replace "G", "General"
    .Replace "V", "Visitor"
End With

Check

M.
 
Upvote 0
Thanks Marcelo, the woman who set it up never mentioned VBA *ever* but it makes sense :) There has to be something somewhere telling it to change the data.
 
Upvote 0

Forum statistics

Threads
1,224,502
Messages
6,179,126
Members
452,890
Latest member
Nikhil Ramesh

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