View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Debra Dalgleish Debra Dalgleish is offline
external usenet poster
 
Posts: 2,979
Default Pivot Table Data Field Option

In the source data, add a column where you assign a number to the type,
either manually or with a formula. For example:
=IF(C2="P",1,2)

Then, in the pivot table, add the new field to the data area.
Right-click on one of the data cells, and click on Field Settings
Summarize by Max, and click the Number button
Apply a custom format to the numbers:
[=1]"P";[=2]"T";General

Fred Smith wrote:
Thanks for your time.

My data is as follows:
Connection City Type
1 LA P
1 NY T
2 LA T
3 NY P
3 DC P
3 LA T

I have a standard Pivot Table with 1 heading on the left table and 1 heading
on the top. Nothing fancy. Here is the layout:

Count of Type City
Connection DC LA NY
1 1 1
2 1
3 1 1 1

What I'm looking to due is instead of showing "Count" of Type, I.E. the
number 1, I want it to give me the value (P or T) from the Type Column. Like
this:

Value of Type City
Connection DC LA NY
1 P T
2 T
3 P T P

Thanks again for your time.



--
Debra Dalgleish
Contextures
http://www.contextures.com/tiptech.html