How to transpose and move data

Closed
Alex - Jan 5, 2016 at 09:54 PM
 Alex - Jan 6, 2016 at 12:25 PM
Hello,

Have a data set which is 2 columns and 596 rows, in which I need to transpose parts of the data set, remove empty columns, and then line up the data in 6 columns, 40 rows.

Example starting data set (with 4 empty rows between each row of data):

1 1




2 2




3 3




4 4




5 5




6 6




7 7




8 8




9 9


Example ending data set (0 empty rows):

1 1 2 2 3 3
4 4 5 5 6 6
7 7 8 8 9 9

Can someone assist with some macro code to accomplish this task?

Thank you!

1 response

rizvisa1 Posts 4478 Registration date Thursday January 28, 2010 Status Contributor Last seen May 5, 2022 766
Jan 6, 2016 at 11:31 AM
How are you transposing the columns. To me it looks like you just copied to data from Column 1&2 to column 3&4 and column 5&6
then moved one row down and did similar for others
0
Rizvisa1,

Thanks for your comment. You are right in that I'm simply trying to move three rows of data up to the new columns, and then repeat. My first attempt to do so was by trying a transposition, so that's what has been stuck in my head.
0