I am in need of a macro to transpose rows into columns. I have been trying to figure it out with no success.
My data is in the format
1 | A | B | C | x | y | z |
2 | D | E | F | p | q | r |
3 | G | H | I | m | n | o |
and i need it to repeat the first few columns of each row but transpose the last few, so that,
1 | A | B | C | x |
1 | A | B | C | y |
1 | A | B | C | z |
2 | D | E | F | p |
2 | D | E | F | q |
2 | D | E | F | r |
3 | G | H | I | m |
3 | G | H | I | n |
3 | G | H | I | o |
This needs to repeat over 400 times. There are more columns then what i showed but I should be able to modify the code to make it work. If any one can help me I would be very thankful.
-Carl