Hello, I am trying to convert the following table:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID Number[/TD]
[TD]Purchase Amount[/TD]
[TD]Purchase Type[/TD]
[/TR]
[TR]
[TD]23[/TD]
[TD]$86[/TD]
[TD]Product X[/TD]
[/TR]
[TR]
[TD]24[/TD]
[TD]$56[/TD]
[TD]Product Y[/TD]
[/TR]
[TR]
[TD]25[/TD]
[TD]$66[/TD]
[TD]Product X[/TD]
[/TR]
[TR]
[TD]23[/TD]
[TD]$88[/TD]
[TD]Product Y[/TD]
[/TR]
[TR]
[TD]23[/TD]
[TD]$90[/TD]
[TD]Product Z[/TD]
[/TR]
</tbody>[/TABLE]
into this format:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID Number[/TD]
[TD]Purchase Amount 1[/TD]
[TD]Purchase Type 1[/TD]
[TD]Purchase Amount 2[/TD]
[TD]Purchase Type 2[/TD]
[TD]Purchase Amount 3[/TD]
[TD]Purchase Type 3[/TD]
[/TR]
[TR]
[TD]23[/TD]
[TD]$86[/TD]
[TD]Product X[/TD]
[TD]$88[/TD]
[TD]Product Y[/TD]
[TD]$90[/TD]
[TD]Product Z[/TD]
[/TR]
[TR]
[TD]24[/TD]
[TD]$56[/TD]
[TD]Product Y[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]25[/TD]
[TD]$66[/TD]
[TD]Product X[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Essentially, I need for Excel to recognize instances in which a unique identifier (ID here) is represented on multiple rows, and then convert the data associated with these instances into a Column format.
I have KUTools and have a basic understanding of VBA. Any help is much appreciated!
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID Number[/TD]
[TD]Purchase Amount[/TD]
[TD]Purchase Type[/TD]
[/TR]
[TR]
[TD]23[/TD]
[TD]$86[/TD]
[TD]Product X[/TD]
[/TR]
[TR]
[TD]24[/TD]
[TD]$56[/TD]
[TD]Product Y[/TD]
[/TR]
[TR]
[TD]25[/TD]
[TD]$66[/TD]
[TD]Product X[/TD]
[/TR]
[TR]
[TD]23[/TD]
[TD]$88[/TD]
[TD]Product Y[/TD]
[/TR]
[TR]
[TD]23[/TD]
[TD]$90[/TD]
[TD]Product Z[/TD]
[/TR]
</tbody>[/TABLE]
into this format:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]ID Number[/TD]
[TD]Purchase Amount 1[/TD]
[TD]Purchase Type 1[/TD]
[TD]Purchase Amount 2[/TD]
[TD]Purchase Type 2[/TD]
[TD]Purchase Amount 3[/TD]
[TD]Purchase Type 3[/TD]
[/TR]
[TR]
[TD]23[/TD]
[TD]$86[/TD]
[TD]Product X[/TD]
[TD]$88[/TD]
[TD]Product Y[/TD]
[TD]$90[/TD]
[TD]Product Z[/TD]
[/TR]
[TR]
[TD]24[/TD]
[TD]$56[/TD]
[TD]Product Y[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]25[/TD]
[TD]$66[/TD]
[TD]Product X[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Essentially, I need for Excel to recognize instances in which a unique identifier (ID here) is represented on multiple rows, and then convert the data associated with these instances into a Column format.
I have KUTools and have a basic understanding of VBA. Any help is much appreciated!