I have a list of rows, and I like to transpose them into a list of columns.
But the trick is how do I repeat each of the new columns 4 times (1 row will become 4 columns)?
Alternatively, how do I add a suffix to each new column (1 row will become 4 columns but each column will have a different suffix)?
To clarify, here are example input and output.
Input:
A | |
---|---|
1 | a |
2 | b |
3 | c |
Needed output in C1:
A | B | C | D | E | F | G | H | I | J | K | L | M | N | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | a | a | a | a | a | b | b | b | b | c | c | c | c | |
2 | b | |||||||||||||
3 | c |
Alternatively:
A | B | C | D | E | F | G | H | I | J | K | L | M | N | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | a | a suffix1 | a suffix2 | a suffix3 | a suffix1 | b suffix1 | b suffix2 | b suffix3 | b suffix4 | c suffix1 | c suffix2 | c suffix3 | c suffix4 | |
2 | b | |||||||||||||
3 | c |