Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Transpose Range

How can I enumerate and transpose all cells in a range (array).

here is my range (before) ("A1:B4"):

A B
-- --
1 2
3 4
5 6
7 8

what i want do to is transpose to Column C like this

C
--
1
2
3
4
5
6
7
8

Thanks
w
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Transpose Range

Put this formula in C1, then drag fill down

=OFFSET($A$1,ROUNDDOWN((ROW()-1)/2,0),MOD(ROW()+1,2))

If you want hard coded number, then select column C and do Edit=Copy, then
immediately Edit=Paste Special and select values.

--
Regards,
Tom Ogilvy

"weeper" wrote in message
...
How can I enumerate and transpose all cells in a range (array).

here is my range (before) ("A1:B4"):

A B
-- --
1 2
3 4
5 6
7 8

what i want do to is transpose to Column C like this

C
--
1
2
3
4
5
6
7
8

Thanks
w



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Transpose Range

Thanks Tom this is great stuff and it works..., but I
wonder if you had anything on how to implement this via VBA Code?

Thanks,
w

"Tom Ogilvy" wrote:

Put this formula in C1, then drag fill down

=OFFSET($A$1,ROUNDDOWN((ROW()-1)/2,0),MOD(ROW()+1,2))

If you want hard coded number, then select column C and do Edit=Copy, then
immediately Edit=Paste Special and select values.

--
Regards,
Tom Ogilvy

"weeper" wrote in message
...
How can I enumerate and transpose all cells in a range (array).

here is my range (before) ("A1:B4"):

A B
-- --
1 2
3 4
5 6
7 8

what i want do to is transpose to Column C like this

C
--
1
2
3
4
5
6
7
8

Thanks
w




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 a col to a row? Terry Pinnell Excel Discussion (Misc queries) 3 September 17th 08 11:42 AM
transpose kortrijkzaantje Excel Worksheet Functions 3 September 28th 05 08:00 PM
I WANT TO TRANSPOSE LINKS, AS WE TRANSPOSE VALUES Umair Aslam Excel Worksheet Functions 1 September 22nd 05 01:19 PM
copy Transpose range data Hau Excel Programming 3 July 19th 04 03:58 PM
Transpose dynamic range Michael Beckinsale Excel Programming 3 March 5th 04 04:03 PM


All times are GMT +1. The time now is 05:29 AM.

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

About Us

"It's about Microsoft Excel"