Hello,
I am trying to transpose DataName/DataValue pair of data into multiple columns. The problem is, not every data set contains the same number of items, or the same DataNames, and DataNames can be in any order (with exception to the first one, "Name")
The constant is that every data set starts with the "Name" as the beginning of the set, and ends with a blank row.
Example:
The output would look something like this:
Can anyone help with a macro for this?
I am trying to transpose DataName/DataValue pair of data into multiple columns. The problem is, not every data set contains the same number of items, or the same DataNames, and DataNames can be in any order (with exception to the first one, "Name")
The constant is that every data set starts with the "Name" as the beginning of the set, and ends with a blank row.
Example:
Code:
[FONT=Courier New] A B[/FONT]
[FONT=Courier New]1 Name Billy[/FONT]
[FONT=Courier New]2 Date January[/FONT]
[FONT=Courier New]3 Size 10[/FONT]
[FONT=Courier New]4[/FONT]
[FONT=Courier New]5 Name John[/FONT]
[FONT=Courier New]6 Weight 150[/FONT]
[FONT=Courier New]7 Color Green[/FONT]
[FONT=Courier New]8 Type Left[/FONT]
[FONT=Courier New]9[/FONT]
[FONT=Courier New]10 Name Sean[/FONT]
[FONT=Courier New]11 Size 12[/FONT]
[FONT=Courier New]12 Weight 170[/FONT]
[FONT=Courier New]13[/FONT]
The output would look something like this:
Code:
[FONT=Courier New] A B C D E F[/FONT]
[FONT=Courier New]1 Name Date Size Weight Color Type[/FONT]
[FONT=Courier New]2 Billy January 10[/FONT]
[FONT=Courier New]3 John 150 Green Left[/FONT]
[FONT=Courier New]4 Sean 12 170[/FONT]
Can anyone help with a macro for this?