ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Pivot Table Data Field Option (https://www.excelbanter.com/excel-discussion-misc-queries/154088-pivot-table-data-field-option.html)

Fred Smith[_2_]

Pivot Table Data Field Option
 
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

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


Fred Smith[_3_]

Pivot Table Data Field Option
 
Genius. Sounds like you do the same stuff I do most of the time. Find a
nice work around for the issue. Thanks for you time. You have a great day.

"Debra Dalgleish" wrote:

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




All times are GMT +1. The time now is 08:27 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com