Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
tom tom is offline
external usenet poster
 
Posts: 570
Default TRANSPOSE 'group' of columns to rows

Excel 2003 SP2
Data is structured like this
Column
A B C D E F
123 456 789 0ab cde fgh
ijh klm nop qrs tuv wxy
I can use the TRANSPOSE copy/paste special w/ transpose but that's manual
for about 25-50 rows. Arg! I prefer not doing the copy/paste special.

When I create a TRANSPOSE function I get things to work for the 1st 6 rows
(in this example "F" is the 6th letter). Then, when I copy/paste (normally)
the TRANSPOSE of the first 6 rows, I don't get the RELATIVE GROUP that I
want. That is, I need to have the TRANSPOSE start at row 2 (A2, B2, C2, D2,
E2, F2) in Sheet1 but the copy of the cell is actually placed into Sheet2 A7
(A1 plus 6 columns). So, I'd like to create an INITIAL group of nn columns
wide (probably about 10-20ish) and then copy/paste this INITIAL group 10-20
times to get my TRANSPOSE function to work. [A1 plus nn columns but still in
Column A from Sheet1 when I paste into Sheet2]
Note: My actual TRANSPOSE function is something like this:
=IF(Sheet1!$A1<"",trim(TRANSPOSE(Sheet1!$A1)),"") for A1
=IF(Sheet1!$B1<"",trim(TRANSPOSE(Sheet1!$B1)),"") for B1 etc.....
The new TRANSPOSE should look something like this:
=IF(Sheet!$A{1+nn}<"",trim(TRANSPOSE(Sheet1!$A{1+ nn}),"") for A{1+nn} etc
TIA,
  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default TRANSPOSE 'group' of columns to rows

Hazarding some thoughts.
Perhaps something along these lines ..

In Sheet2,

Place in A7:
=IF(OFFSET(Sheet1!$A$2,COLUMN(A1)-1,ROW(A1)-1)=0,"",OFFSET(Sheet1!$A$2,COLUMN(A1)-1,ROW(A1)-1))
Copy A7 across as far as required, then fill down as far as required to pull
in a dynamic transpose of Sheet1's source region with top left cell at A2.
The expression will return blanks: "" if the source region is either blank or
contain zeros or null strings.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"Tom" wrote:
Excel 2003 SP2
Data is structured like this
Column
A B C D E F
123 456 789 0ab cde fgh
ijh klm nop qrs tuv wxy
I can use the TRANSPOSE copy/paste special w/ transpose but that's manual
for about 25-50 rows. Arg! I prefer not doing the copy/paste special.

When I create a TRANSPOSE function I get things to work for the 1st 6 rows
(in this example "F" is the 6th letter). Then, when I copy/paste (normally)
the TRANSPOSE of the first 6 rows, I don't get the RELATIVE GROUP that I
want. That is, I need to have the TRANSPOSE start at row 2 (A2, B2, C2, D2,
E2, F2) in Sheet1 but the copy of the cell is actually placed into Sheet2 A7
(A1 plus 6 columns). So, I'd like to create an INITIAL group of nn columns
wide (probably about 10-20ish) and then copy/paste this INITIAL group 10-20
times to get my TRANSPOSE function to work. [A1 plus nn columns but still in
Column A from Sheet1 when I paste into Sheet2]
Note: My actual TRANSPOSE function is something like this:
=IF(Sheet1!$A1<"",trim(TRANSPOSE(Sheet1!$A1)),"") for A1
=IF(Sheet1!$B1<"",trim(TRANSPOSE(Sheet1!$B1)),"") for B1 etc.....
The new TRANSPOSE should look something like this:
=IF(Sheet!$A{1+nn}<"",trim(TRANSPOSE(Sheet1!$A{1+ nn}),"") for A{1+nn} etc
TIA,

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
transpose data between columns, rows or cells jonnel New Users to Excel 1 July 31st 06 02:24 PM
REQ: Columns to rows or Rows to Columns nonapp Excel Discussion (Misc queries) 4 October 26th 05 12:24 AM
convert columns to rows & rows to columns ROCKWARRIOR Excel Discussion (Misc queries) 2 September 23rd 05 06:31 PM
hidden rows & columns slow file open Simon Shaw Excel Discussion (Misc queries) 0 April 5th 05 12:21 AM
repeated transpose from rows to columns with unequal groups kraymond Excel Discussion (Misc queries) 3 December 20th 04 02:39 PM


All times are GMT +1. The time now is 04:05 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"