Hi all,
I'm a bit of an excel newbie and am looking for suggestions for any functions/ scripts that will help with my reformatting problem!
I currently have a data set with three subheadings. (Number, Name and Fruit.) Currently each row represents a customer with an individual Number and Name who then have varying fruit values held on the same row. However, I now need to reformat the data so that the fruit values will now be held on separate rows per customer. (Example below.)
Currently:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]NUMBER[/TD]
[TD]NAME[/TD]
[TD]FRUIT[/TD]
[TD]FRUIT[/TD]
[TD]FRUIT[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]Nathan[/TD]
[TD]Apple[/TD]
[TD]Pear[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]Chloe[/TD]
[TD]Pear[/TD]
[TD]Peach[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]Steffan[/TD]
[TD]Apple[/TD]
[TD]Banana[/TD]
[TD]Pear[/TD]
[/TR]
[TR]
[TD]104[/TD]
[TD]Glen[/TD]
[TD]Banana[/TD]
[TD]Pear[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
End Goal:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]NUMBER[/TD]
[TD]NAME[/TD]
[TD]FRUIT[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]Nathan[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]Nathan[/TD]
[TD]Pear[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]Chloe[/TD]
[TD]Pear[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]Chloe[/TD]
[TD]Peach[/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]Steffan[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]Steffan[/TD]
[TD]Banana[/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]Steffan[/TD]
[TD]Pear[/TD]
[/TR]
[TR]
[TD]104[/TD]
[TD]Glen[/TD]
[TD]Banana[/TD]
[/TR]
[TR]
[TD]104[/TD]
[TD]Glen[/TD]
[TD]Pear[/TD]
[/TR]
</tbody>[/TABLE]
I'm currently reviewing the data on a line by line basis and am creating new rows and transposing the data per customer but due to the multitude of data I'm looking for suggestions on if there is a better way to go about doing this as it's a little time consuming at the moment!
I'd appreciate any insight or suggestions that you could offer! Thank you in advance for any help.
Best wishes,
Starstick.
I'm a bit of an excel newbie and am looking for suggestions for any functions/ scripts that will help with my reformatting problem!
I currently have a data set with three subheadings. (Number, Name and Fruit.) Currently each row represents a customer with an individual Number and Name who then have varying fruit values held on the same row. However, I now need to reformat the data so that the fruit values will now be held on separate rows per customer. (Example below.)
Currently:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]NUMBER[/TD]
[TD]NAME[/TD]
[TD]FRUIT[/TD]
[TD]FRUIT[/TD]
[TD]FRUIT[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]Nathan[/TD]
[TD]Apple[/TD]
[TD]Pear[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]Chloe[/TD]
[TD]Pear[/TD]
[TD]Peach[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]Steffan[/TD]
[TD]Apple[/TD]
[TD]Banana[/TD]
[TD]Pear[/TD]
[/TR]
[TR]
[TD]104[/TD]
[TD]Glen[/TD]
[TD]Banana[/TD]
[TD]Pear[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
End Goal:
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]NUMBER[/TD]
[TD]NAME[/TD]
[TD]FRUIT[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]Nathan[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD]Nathan[/TD]
[TD]Pear[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]Chloe[/TD]
[TD]Pear[/TD]
[/TR]
[TR]
[TD]102[/TD]
[TD]Chloe[/TD]
[TD]Peach[/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]Steffan[/TD]
[TD]Apple[/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]Steffan[/TD]
[TD]Banana[/TD]
[/TR]
[TR]
[TD]103[/TD]
[TD]Steffan[/TD]
[TD]Pear[/TD]
[/TR]
[TR]
[TD]104[/TD]
[TD]Glen[/TD]
[TD]Banana[/TD]
[/TR]
[TR]
[TD]104[/TD]
[TD]Glen[/TD]
[TD]Pear[/TD]
[/TR]
</tbody>[/TABLE]
I'm currently reviewing the data on a line by line basis and am creating new rows and transposing the data per customer but due to the multitude of data I'm looking for suggestions on if there is a better way to go about doing this as it's a little time consuming at the moment!
I'd appreciate any insight or suggestions that you could offer! Thank you in advance for any help.
Best wishes,
Starstick.