How to transpose and move data

Closed
Alex - 5 Jan 2016 à 21:54
 Alex - 6 Jan 2016 à 12:25
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!

Related:

1 response

rizvisa1 Posts 4478 Registration date Thursday 28 January 2010 Status Contributor Last seen 5 May 2022 766
6 Jan 2016 à 11:31
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
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.