Hi, I am exporting from a database as a csv which provides the following ID,NAME,RATING
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID1[/TD]
[TD]BEN[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]ID2[/TD]
[TD]BEN[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]ID3[/TD]
[TD]BEN[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]ID4[/TD]
[TD]BEN[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]ID5[/TD]
[TD]JAMES[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]ID1[/TD]
[TD]SAM[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]ID4[/TD]
[TD]SAM[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]ID2[/TD]
[TD]DAN[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]ID9[/TD]
[TD]DAN[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]ID10[/TD]
[TD]DAN[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
I need to transform this into the following
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]ID1[/TD]
[TD]ID2[/TD]
[TD]ID3[/TD]
[TD]ID4[/TD]
[TD]ID5[/TD]
[TD]ID6[/TD]
[TD]ID7[/TD]
[TD]ID8[/TD]
[TD]ID9[/TD]
[TD]ID10[/TD]
[/TR]
[TR]
[TD]BEN[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]JAMES[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SAM[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DAN[/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
As you can see it has changed the ID from the horizontal to the vertical,
Filled in the missing ID numbers, in this case 6,7,and 8
it has changed the NAME from individual instances to a single unique instance for each
it has assigned the RATING under the ID for each NAME
My only progress towards the change so far is using paste-special with transpose to change the values from a horizontal to vertical layout.
Onward I am unsure and assume it would be quite VBA heavy?
[TABLE="width: 500"]
<tbody>[TR]
[TD]ID1[/TD]
[TD]BEN[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]ID2[/TD]
[TD]BEN[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]ID3[/TD]
[TD]BEN[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]ID4[/TD]
[TD]BEN[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]ID5[/TD]
[TD]JAMES[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]ID1[/TD]
[TD]SAM[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]ID4[/TD]
[TD]SAM[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]ID2[/TD]
[TD]DAN[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]ID9[/TD]
[TD]DAN[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]ID10[/TD]
[TD]DAN[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
I need to transform this into the following
[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD]ID1[/TD]
[TD]ID2[/TD]
[TD]ID3[/TD]
[TD]ID4[/TD]
[TD]ID5[/TD]
[TD]ID6[/TD]
[TD]ID7[/TD]
[TD]ID8[/TD]
[TD]ID9[/TD]
[TD]ID10[/TD]
[/TR]
[TR]
[TD]BEN[/TD]
[TD]1[/TD]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]JAMES[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]SAM[/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD]2[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]DAN[/TD]
[TD][/TD]
[TD]1[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD]2[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
As you can see it has changed the ID from the horizontal to the vertical,
Filled in the missing ID numbers, in this case 6,7,and 8
it has changed the NAME from individual instances to a single unique instance for each
it has assigned the RATING under the ID for each NAME
My only progress towards the change so far is using paste-special with transpose to change the values from a horizontal to vertical layout.
Onward I am unsure and assume it would be quite VBA heavy?