#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Text Columns to Rows

I have a worksheet that I would like to change all rows to columns -- a
pivottable would work perfectly if text could be shown in the data area. Is
there a way to do this? If not, my table has 3 columns:

Key Code Country Text
Code 1 US xxxxxxxxx
Code 1 China xxxxxxxx
Code 1 UK xxxxxxxxxx
Code 2 US xxxxxx
Code 3 China xxxxxx
Code 3 UK xxxxxx

I want change the table to be

Code US China UK
1 xxxxxx xxxxxx xxxxxx
2 xxxxxxx
3 xxxxxx xxxxxx

Can someone tell me how that can be done???

Thank you!

  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Text Columns to Rows

Suppose the source table as posted is in A1:C7
and the new table (below) is set out in A9:D12
Code US China UK
1 xxxxxx xxxxxx xxxxxx
2 xxxxxxx
3 xxxxxx xxxxxx


Put in B10, array-enter the formula by pressing CTRL+SHIFT+ENTER:
=IF(ISNA(MATCH($A$9&"
"&$A10&"_"&B$9,$A$2:$A$7&"_"&$B$2:$B$7,0)),"",INDE X($C$2:$C$7,MATCH($A$9&"
"&$A10&"_"&B$9,$A$2:$A$7&"_"&$B$2:$B$7,0)))
Copy B10 across/fill down to D12 to populate. Adapt to suit.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"cwwaters" wrote:
I have a worksheet that I would like to change all rows to columns -- a
pivottable would work perfectly if text could be shown in the data area. Is
there a way to do this? If not, my table has 3 columns:

Key Code Country Text
Code 1 US xxxxxxxxx
Code 1 China xxxxxxxx
Code 1 UK xxxxxxxxxx
Code 2 US xxxxxx
Code 3 China xxxxxx
Code 3 UK xxxxxx

I want change the table to be

Code US China UK
1 xxxxxx xxxxxx xxxxxx
2 xxxxxxx
3 xxxxxx xxxxxx

Can someone tell me how that can be done???

Thank you!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Text Columns to Rows

So, in b10 I make an array??? Sorry, I understand what you are doing, but get
lost on building an array, and then copying that function. Thank you!!!!

"Max" wrote:

Suppose the source table as posted is in A1:C7
and the new table (below) is set out in A9:D12
Code US China UK
1 xxxxxx xxxxxx xxxxxx
2 xxxxxxx
3 xxxxxx xxxxxx


Put in B10, array-enter the formula by pressing CTRL+SHIFT+ENTER:
=IF(ISNA(MATCH($A$9&"
"&$A10&"_"&B$9,$A$2:$A$7&"_"&$B$2:$B$7,0)),"",INDE X($C$2:$C$7,MATCH($A$9&"
"&$A10&"_"&B$9,$A$2:$A$7&"_"&$B$2:$B$7,0)))
Copy B10 across/fill down to D12 to populate. Adapt to suit.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"cwwaters" wrote:
I have a worksheet that I would like to change all rows to columns -- a
pivottable would work perfectly if text could be shown in the data area. Is
there a way to do this? If not, my table has 3 columns:

Key Code Country Text
Code 1 US xxxxxxxxx
Code 1 China xxxxxxxx
Code 1 UK xxxxxxxxxx
Code 2 US xxxxxx
Code 3 China xxxxxx
Code 3 UK xxxxxx

I want change the table to be

Code US China UK
1 xxxxxx xxxxxx xxxxxx
2 xxxxxxx
3 xxxxxx xxxxxx

Can someone tell me how that can be done???

Thank you!

  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default Text Columns to Rows

Here's a sample construct to illustrate:
http://www.freefilehosting.net/download/3b5k9
2 col lookup.xls
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"cwwaters" wrote:
So, in b10 I make an array??? Sorry, I understand what you are doing, but get
lost on building an array, and then copying that function. Thank you!!!!


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default Text Columns to Rows

You *can* use pivot table.
You just have to convert PT to List
with a bit of VBA.
Excel 2003.
http://www.freefilehosting.net/download/3b61d
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wrap Text Across Columns & Rows Michael Excel Dude Excel Discussion (Misc queries) 1 September 4th 06 02:14 AM
How to copy some text in columns and rest in rows Greg Excel Discussion (Misc queries) 2 August 24th 06 01:31 AM
Each rows last cell text value could be in any columns. Robert Christie Excel Worksheet Functions 6 May 2nd 06 06:53 PM
Converting text from rows to columns Phyllis B. Excel Worksheet Functions 3 May 2nd 06 06:49 PM
text data in one column many rows to many columns one row MoniqueL Excel Discussion (Misc queries) 1 March 14th 06 10:17 AM


All times are GMT +1. The time now is 11:56 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"