Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Continued Conversion of data from rows to columns in a macro.

I created a macro to convert data from rows to columns, but I need the
command to insert in the Do Loop in order to repeat the same process for the
next row(s). The data is available in each row where the first four cells
are a title followed by 48 cells with data in each 4 cells for a month. The
mothly data needs to be converted to column form. This was done easily in a
macro, but how do I repeat the same process fore the next row(s)?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Continued Conversion of data from rows to columns in a macro.

This might be a silly question but why not use

PasteSpecial - Transpose ???

This should save you a lot of grief.

"Karaman" wrote:

I created a macro to convert data from rows to columns, but I need the
command to insert in the Do Loop in order to repeat the same process for the
next row(s). The data is available in each row where the first four cells
are a title followed by 48 cells with data in each 4 cells for a month. The
mothly data needs to be converted to column form. This was done easily in a
macro, but how do I repeat the same process fore the next row(s)?

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Continued Conversion of data from rows to columns in a macro.

Jim,
Thank you for the reply. I am familiar with what you recommended, however
the transpose function places the data in one column while I wish to preserve
the data order. I already have the macro to place the data in the proper
order and position for the first row. The only piece that is missing is how
to switch and repeat the same copy and paste process for the next row of data
with over 1000 rows of data. I hope you can help.

"Jim Thomlinson" wrote:

This might be a silly question but why not use

PasteSpecial - Transpose ???

This should save you a lot of grief.

"Karaman" wrote:

I created a macro to convert data from rows to columns, but I need the
command to insert in the Do Loop in order to repeat the same process for the
next row(s). The data is available in each row where the first four cells
are a title followed by 48 cells with data in each 4 cells for a month. The
mothly data needs to be converted to column form. This was done easily in a
macro, but how do I repeat the same process fore the next row(s)?

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Continued Conversion of data from rows to columns in a macro.

Post your code and lets have a look at it. Hard to give you a good response
without seeng the code...

"Karaman" wrote:

Jim,
Thank you for the reply. I am familiar with what you recommended, however
the transpose function places the data in one column while I wish to preserve
the data order. I already have the macro to place the data in the proper
order and position for the first row. The only piece that is missing is how
to switch and repeat the same copy and paste process for the next row of data
with over 1000 rows of data. I hope you can help.

"Jim Thomlinson" wrote:

This might be a silly question but why not use

PasteSpecial - Transpose ???

This should save you a lot of grief.

"Karaman" wrote:

I created a macro to convert data from rows to columns, but I need the
command to insert in the Do Loop in order to repeat the same process for the
next row(s). The data is available in each row where the first four cells
are a title followed by 48 cells with data in each 4 cells for a month. The
mothly data needs to be converted to column form. This was done easily in a
macro, but how do I repeat the same process fore the next row(s)?

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 983
Default Continued Conversion of data from rows to columns in a macro.

Also I do not follow you on the order thing. What part of this is wrong

Original
1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4
Transposed
1 1 1 1 1 1
2 2 2 2 2 2
3 3 3 3 3 3
4 4 4 4 4 4

???

"Karaman" wrote:

Jim,
Thank you for the reply. I am familiar with what you recommended, however
the transpose function places the data in one column while I wish to preserve
the data order. I already have the macro to place the data in the proper
order and position for the first row. The only piece that is missing is how
to switch and repeat the same copy and paste process for the next row of data
with over 1000 rows of data. I hope you can help.

"Jim Thomlinson" wrote:

This might be a silly question but why not use

PasteSpecial - Transpose ???

This should save you a lot of grief.

"Karaman" wrote:

I created a macro to convert data from rows to columns, but I need the
command to insert in the Do Loop in order to repeat the same process for the
next row(s). The data is available in each row where the first four cells
are a title followed by 48 cells with data in each 4 cells for a month. The
mothly data needs to be converted to column form. This was done easily in a
macro, but how do I repeat the same process fore the next row(s)?



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default Continued Conversion of data from rows to columns in a macro.

Hi Jim,

Here is what the data looks like:
Text1 Text1 Text1 Text1 1 2 3 4 5 6 7 8 9 10 11 12
Text2 Text2 Text2 Text2 1 2 3 4 5 6 7 8 9 10 11 12
Text3 ......

I'm trying to convert the above to look like this:
Text1 Text1 Text1 Text1 1 2 3 4
5 6 7 8
9 10 11 12
Text2 Text2 Text2 Text2 1 2 3 4
5 6 7 8
9 10 11 12
I wrote the macro to arrange the Text1 data, but how can I continue reading
and arranging the next rows within the macro as what was done to the first
one? I assume it's a Do Loop, but just need the code to force it to read
Row2 and repeat the same process. Thanks and I hope that you can help.

"Jim Thomlinson" wrote:

Also I do not follow you on the order thing. What part of this is wrong

Original
1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4
1 2 3 4
Transposed
1 1 1 1 1 1
2 2 2 2 2 2
3 3 3 3 3 3
4 4 4 4 4 4

???

"Karaman" wrote:

Jim,
Thank you for the reply. I am familiar with what you recommended, however
the transpose function places the data in one column while I wish to preserve
the data order. I already have the macro to place the data in the proper
order and position for the first row. The only piece that is missing is how
to switch and repeat the same copy and paste process for the next row of data
with over 1000 rows of data. I hope you can help.

"Jim Thomlinson" wrote:

This might be a silly question but why not use

PasteSpecial - Transpose ???

This should save you a lot of grief.

"Karaman" wrote:

I created a macro to convert data from rows to columns, but I need the
command to insert in the Do Loop in order to repeat the same process for the
next row(s). The data is available in each row where the first four cells
are a title followed by 48 cells with data in each 4 cells for a month. The
mothly data needs to be converted to column form. This was done easily in a
macro, but how do I repeat the same process fore the next row(s)?

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
repeated conversion of data summarized into rows and columns Ian Excel Discussion (Misc queries) 2 December 28th 09 02:01 AM
Data Conversion - times, dates & rows Sara Excel Worksheet Functions 5 April 15th 09 03:44 AM
Arrange data spanning 8 columns and 3 rows to 24 columns and 1 row pfdino Excel Discussion (Misc queries) 2 March 19th 07 09:03 PM
Macro To Change Cell Color (Continued) carl Excel Worksheet Functions 0 March 15th 06 03:10 PM
Finding Totals...Continued with Some Data LC[_3_] Excel Programming 4 July 25th 03 12:09 AM


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