Building on the discussion here - http://www.mrexcel.com/forum/excel-...ngle-row-multiple-rows-same-column-value.html
I have a data set with a unique key in Column A and then repeating values in the subsequent columns. I would like to transform the repeating values into multiple rows and maintain the unique ID from Column A for each. The number of repeating values may vary from record to record and sometimes a column may be empty.
Sample Data
<tbody>
</tbody>
I would like it to transform to be:
<tbody>
</tbody>
Thanks for any assistance that may be possible.
I have a data set with a unique key in Column A and then repeating values in the subsequent columns. I would like to transform the repeating values into multiple rows and maintain the unique ID from Column A for each. The number of repeating values may vary from record to record and sometimes a column may be empty.
Sample Data
A | B | C | D | E | F | G | H | I | J | K | L | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Record 1 | A, A1, A2, A3 | B, B1, B2, B3 | C, C1, C2, C3 | D, D1, D2, D3 | |||||||
2 | Record 2 | M, M1, M2 | N, N1, N2 | O, O1, O2 | P, P1, P2 | |||||||
3 | Record 3 | W, W1 | X, X1 | Z, Z1 | ||||||||
4 | ||||||||||||
5 | ||||||||||||
6 | ||||||||||||
7 | ||||||||||||
8 | ||||||||||||
9 | ||||||||||||
10 |
<tbody>
</tbody>
I would like it to transform to be:
A | B | C | D | E | F | G | H | I | J | K | L | |
---|---|---|---|---|---|---|---|---|---|---|---|---|
1 | Record 1 | A | B | C | D | |||||||
2 | Record 1 | A1 | B1 | C1 | D1 | |||||||
3 | Record 1 | A2 | B2 | C2 | D2 | |||||||
4 | Record 1 | A3 | B3 | C3 | D3 | |||||||
5 | Record 2 | M | N | O | P | |||||||
6 | Record 2 | M1 | N1 | O1 | P1 | |||||||
7 | Record 2 | M2 | N2 | O2 | P2 | |||||||
8 | Record 3 | W | X | Z | ||||||||
9 | Record 3 | W1 | X1 | Z1 | ||||||||
10 |
<tbody>
</tbody>
Thanks for any assistance that may be possible.