Hi,
I have a spreadsheet with multiple records per person, I would like to convert into one row per person. I will give an example below.
Columns A to D will be the same in every row for every person. The order details in the remaining columns (E to H) will be different.
[TABLE="width: 1178"]
<tbody>[TR]
[TD]Person Unique ID[/TD]
[TD]Name[/TD]
[TD]Surname[/TD]
[TD]Address[/TD]
[TD]Order id[/TD]
[TD]Order description[/TD]
[TD]order date[/TD]
[TD]order price[/TD]
[/TR]
[TR]
[TD]A44[/TD]
[TD]Alex[/TD]
[TD]Smith[/TD]
[TD]1 High Street[/TD]
[TD]5[/TD]
[TD]apples[/TD]
[TD]01/01/2000[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]D516[/TD]
[TD]Diane[/TD]
[TD]Jones[/TD]
[TD]222 High Street[/TD]
[TD]4[/TD]
[TD]bananas[/TD]
[TD]01/02/2000[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD]D516[/TD]
[TD]Diane[/TD]
[TD]Jones[/TD]
[TD]222 High Street[/TD]
[TD]34[/TD]
[TD]grapes[/TD]
[TD]03/04/2010[/TD]
[TD]32[/TD]
[/TR]
[TR]
[TD]D516[/TD]
[TD]Diane[/TD]
[TD]Jones[/TD]
[TD]222 High Street[/TD]
[TD]56[/TD]
[TD]peas[/TD]
[TD]05/06/2012[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]D700[/TD]
[TD]David[/TD]
[TD]Green[/TD]
[TD]55 High Road[/TD]
[TD]567[/TD]
[TD]peppers[/TD]
[TD]03/04/2015[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]D700[/TD]
[TD]David[/TD]
[TD]Green[/TD]
[TD]55 High Road[/TD]
[TD]1234[/TD]
[TD]lettuce[/TD]
[TD]03/05/2013[/TD]
[TD]54[/TD]
[/TR]
[TR]
[TD]D700[/TD]
[TD]David[/TD]
[TD]Green[/TD]
[TD]55 High Road[/TD]
[TD]2123[/TD]
[TD]olives[/TD]
[TD]07/08/2009[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]E55[/TD]
[TD]Eric[/TD]
[TD]Martin[/TD]
[TD]100 High Road[/TD]
[TD]654[/TD]
[TD]strawberries[/TD]
[TD]06/07/2015[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]E55[/TD]
[TD]Eric[/TD]
[TD]Martin[/TD]
[TD]100 High Road[/TD]
[TD]89[/TD]
[TD]potatoes[/TD]
[TD]01/01/2014[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]F223[/TD]
[TD]Fiona[/TD]
[TD]Smith[/TD]
[TD]25 Church Street[/TD]
[TD]98[/TD]
[TD]salt[/TD]
[TD]02/01/2008[/TD]
[TD]44[/TD]
[/TR]
[TR]
[TD]F223[/TD]
[TD]Fiona[/TD]
[TD]Smith[/TD]
[TD]25 Church Street[/TD]
[TD]766[/TD]
[TD]sugar[/TD]
[TD]10/06/2015[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]F223[/TD]
[TD]Fiona[/TD]
[TD]Smith[/TD]
[TD]25 Church Street[/TD]
[TD]4544[/TD]
[TD]jam[/TD]
[TD]09/06/2015[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]G55[/TD]
[TD]Gary[/TD]
[TD]King[/TD]
[TD]100 Oxford Road[/TD]
[TD]65[/TD]
[TD]marmalade[/TD]
[TD]08/06/2015[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
Spreadsheet will be sorted by column A - person unique ID so all a persons records will be consecutive in spreadsheet. A person will have a maximum of 3 lines on a spreadsheet. The outcome I would like to get is like the example below.
[TABLE="width: 2064"]
<tbody>[TR]
[TD="class: xl65, width: 129"]Person Unique ID[/TD]
[TD="class: xl65, width: 129"]Name[/TD]
[TD="class: xl65, width: 129"]Surname[/TD]
[TD="class: xl65, width: 129"]Address[/TD]
[TD="class: xl65, width: 129"]Order 1 id[/TD]
[TD="class: xl65, width: 129"]Order 1 description[/TD]
[TD="class: xl65, width: 129"]order 1 date[/TD]
[TD="class: xl65, width: 129"]order 1 price[/TD]
[TD="class: xl65, width: 129"]Order 2 id[/TD]
[TD="class: xl65, width: 129"]Order 2 description[/TD]
[TD="class: xl65, width: 129"]order 2 date[/TD]
[TD="class: xl65, width: 129"]order 2 price[/TD]
[TD="class: xl65, width: 129"]Order 3 id[/TD]
[TD="class: xl65, width: 129"]Order 3 description[/TD]
[TD="class: xl65, width: 129"]order 3 date[/TD]
[TD="class: xl65, width: 129"]order 3 price[/TD]
[/TR]
[TR]
[TD="class: xl66"]A44[/TD]
[TD="class: xl66"]Alex[/TD]
[TD="class: xl66"]Smith[/TD]
[TD="class: xl66"]1 High Street[/TD]
[TD="class: xl66"]5[/TD]
[TD="class: xl66"]apples[/TD]
[TD="class: xl67"]01/01/2000[/TD]
[TD="class: xl66"]1[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl66"]D516[/TD]
[TD="class: xl66"]Diane[/TD]
[TD="class: xl66"]Jones[/TD]
[TD="class: xl66"]222 High Street[/TD]
[TD="class: xl66"]4[/TD]
[TD="class: xl66"]bananas[/TD]
[TD="class: xl67"]01/02/2000[/TD]
[TD="class: xl66"]45[/TD]
[TD="class: xl66"]34[/TD]
[TD="class: xl66"]grapes[/TD]
[TD="class: xl67"]03/04/2010[/TD]
[TD="class: xl66"]32[/TD]
[TD="class: xl66"]56[/TD]
[TD="class: xl66"]peas[/TD]
[TD="class: xl67"]05/06/2012[/TD]
[TD="class: xl66"]200[/TD]
[/TR]
[TR]
[TD="class: xl66"]D700[/TD]
[TD="class: xl66"]David[/TD]
[TD="class: xl66"]Green[/TD]
[TD="class: xl66"]55 High Road[/TD]
[TD="class: xl66"]567[/TD]
[TD="class: xl66"]peppers[/TD]
[TD="class: xl67"]03/04/2015[/TD]
[TD="class: xl66"]5000[/TD]
[TD="class: xl66"]1234[/TD]
[TD="class: xl66"]lettuce[/TD]
[TD="class: xl67"]03/05/2013[/TD]
[TD="class: xl66"]54[/TD]
[TD="class: xl66"]2123[/TD]
[TD="class: xl66"]olives[/TD]
[TD="class: xl67"]07/08/2009[/TD]
[TD="class: xl66"]10[/TD]
[/TR]
[TR]
[TD="class: xl66"]E55[/TD]
[TD="class: xl66"]Eric[/TD]
[TD="class: xl66"]Martin[/TD]
[TD="class: xl66"]100 High Road[/TD]
[TD="class: xl66"]654[/TD]
[TD="class: xl66"]strawberries[/TD]
[TD="class: xl67"]06/07/2015[/TD]
[TD="class: xl66"]20[/TD]
[TD="class: xl66"]89[/TD]
[TD="class: xl66"]potatoes[/TD]
[TD="class: xl67"]01/01/2014[/TD]
[TD="class: xl66"]30[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl66"]F223[/TD]
[TD="class: xl66"]Fiona[/TD]
[TD="class: xl66"]Smith[/TD]
[TD="class: xl66"]25 Church Street[/TD]
[TD="class: xl66"]98[/TD]
[TD="class: xl66"]salt[/TD]
[TD="class: xl67"]02/01/2008[/TD]
[TD="class: xl66"]44[/TD]
[TD="class: xl66"]766[/TD]
[TD="class: xl66"]sugar[/TD]
[TD="class: xl67"]10/06/2015[/TD]
[TD="class: xl66"]100[/TD]
[TD="class: xl66"]4544[/TD]
[TD="class: xl66"]jam[/TD]
[TD="class: xl67"]09/06/2015[/TD]
[TD="class: xl66"]10[/TD]
[/TR]
[TR]
[TD="class: xl66"]G55[/TD]
[TD="class: xl66"]Gary[/TD]
[TD="class: xl66"]King[/TD]
[TD="class: xl66"]100 Oxford Road[/TD]
[TD="class: xl66"]65[/TD]
[TD="class: xl66"]marmalade[/TD]
[TD="class: xl67"]08/06/2015[/TD]
[TD="class: xl66"]2[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
</tbody>[/TABLE]
Does anyone have any advice on how to achieve this?
Thanks,
I have a spreadsheet with multiple records per person, I would like to convert into one row per person. I will give an example below.
Columns A to D will be the same in every row for every person. The order details in the remaining columns (E to H) will be different.
[TABLE="width: 1178"]
<tbody>[TR]
[TD]Person Unique ID[/TD]
[TD]Name[/TD]
[TD]Surname[/TD]
[TD]Address[/TD]
[TD]Order id[/TD]
[TD]Order description[/TD]
[TD]order date[/TD]
[TD]order price[/TD]
[/TR]
[TR]
[TD]A44[/TD]
[TD]Alex[/TD]
[TD]Smith[/TD]
[TD]1 High Street[/TD]
[TD]5[/TD]
[TD]apples[/TD]
[TD]01/01/2000[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]D516[/TD]
[TD]Diane[/TD]
[TD]Jones[/TD]
[TD]222 High Street[/TD]
[TD]4[/TD]
[TD]bananas[/TD]
[TD]01/02/2000[/TD]
[TD]45[/TD]
[/TR]
[TR]
[TD]D516[/TD]
[TD]Diane[/TD]
[TD]Jones[/TD]
[TD]222 High Street[/TD]
[TD]34[/TD]
[TD]grapes[/TD]
[TD]03/04/2010[/TD]
[TD]32[/TD]
[/TR]
[TR]
[TD]D516[/TD]
[TD]Diane[/TD]
[TD]Jones[/TD]
[TD]222 High Street[/TD]
[TD]56[/TD]
[TD]peas[/TD]
[TD]05/06/2012[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]D700[/TD]
[TD]David[/TD]
[TD]Green[/TD]
[TD]55 High Road[/TD]
[TD]567[/TD]
[TD]peppers[/TD]
[TD]03/04/2015[/TD]
[TD]5000[/TD]
[/TR]
[TR]
[TD]D700[/TD]
[TD]David[/TD]
[TD]Green[/TD]
[TD]55 High Road[/TD]
[TD]1234[/TD]
[TD]lettuce[/TD]
[TD]03/05/2013[/TD]
[TD]54[/TD]
[/TR]
[TR]
[TD]D700[/TD]
[TD]David[/TD]
[TD]Green[/TD]
[TD]55 High Road[/TD]
[TD]2123[/TD]
[TD]olives[/TD]
[TD]07/08/2009[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]E55[/TD]
[TD]Eric[/TD]
[TD]Martin[/TD]
[TD]100 High Road[/TD]
[TD]654[/TD]
[TD]strawberries[/TD]
[TD]06/07/2015[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]E55[/TD]
[TD]Eric[/TD]
[TD]Martin[/TD]
[TD]100 High Road[/TD]
[TD]89[/TD]
[TD]potatoes[/TD]
[TD]01/01/2014[/TD]
[TD]30[/TD]
[/TR]
[TR]
[TD]F223[/TD]
[TD]Fiona[/TD]
[TD]Smith[/TD]
[TD]25 Church Street[/TD]
[TD]98[/TD]
[TD]salt[/TD]
[TD]02/01/2008[/TD]
[TD]44[/TD]
[/TR]
[TR]
[TD]F223[/TD]
[TD]Fiona[/TD]
[TD]Smith[/TD]
[TD]25 Church Street[/TD]
[TD]766[/TD]
[TD]sugar[/TD]
[TD]10/06/2015[/TD]
[TD]100[/TD]
[/TR]
[TR]
[TD]F223[/TD]
[TD]Fiona[/TD]
[TD]Smith[/TD]
[TD]25 Church Street[/TD]
[TD]4544[/TD]
[TD]jam[/TD]
[TD]09/06/2015[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]G55[/TD]
[TD]Gary[/TD]
[TD]King[/TD]
[TD]100 Oxford Road[/TD]
[TD]65[/TD]
[TD]marmalade[/TD]
[TD]08/06/2015[/TD]
[TD]2[/TD]
[/TR]
</tbody>[/TABLE]
Spreadsheet will be sorted by column A - person unique ID so all a persons records will be consecutive in spreadsheet. A person will have a maximum of 3 lines on a spreadsheet. The outcome I would like to get is like the example below.
[TABLE="width: 2064"]
<tbody>[TR]
[TD="class: xl65, width: 129"]Person Unique ID[/TD]
[TD="class: xl65, width: 129"]Name[/TD]
[TD="class: xl65, width: 129"]Surname[/TD]
[TD="class: xl65, width: 129"]Address[/TD]
[TD="class: xl65, width: 129"]Order 1 id[/TD]
[TD="class: xl65, width: 129"]Order 1 description[/TD]
[TD="class: xl65, width: 129"]order 1 date[/TD]
[TD="class: xl65, width: 129"]order 1 price[/TD]
[TD="class: xl65, width: 129"]Order 2 id[/TD]
[TD="class: xl65, width: 129"]Order 2 description[/TD]
[TD="class: xl65, width: 129"]order 2 date[/TD]
[TD="class: xl65, width: 129"]order 2 price[/TD]
[TD="class: xl65, width: 129"]Order 3 id[/TD]
[TD="class: xl65, width: 129"]Order 3 description[/TD]
[TD="class: xl65, width: 129"]order 3 date[/TD]
[TD="class: xl65, width: 129"]order 3 price[/TD]
[/TR]
[TR]
[TD="class: xl66"]A44[/TD]
[TD="class: xl66"]Alex[/TD]
[TD="class: xl66"]Smith[/TD]
[TD="class: xl66"]1 High Street[/TD]
[TD="class: xl66"]5[/TD]
[TD="class: xl66"]apples[/TD]
[TD="class: xl67"]01/01/2000[/TD]
[TD="class: xl66"]1[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl66"]D516[/TD]
[TD="class: xl66"]Diane[/TD]
[TD="class: xl66"]Jones[/TD]
[TD="class: xl66"]222 High Street[/TD]
[TD="class: xl66"]4[/TD]
[TD="class: xl66"]bananas[/TD]
[TD="class: xl67"]01/02/2000[/TD]
[TD="class: xl66"]45[/TD]
[TD="class: xl66"]34[/TD]
[TD="class: xl66"]grapes[/TD]
[TD="class: xl67"]03/04/2010[/TD]
[TD="class: xl66"]32[/TD]
[TD="class: xl66"]56[/TD]
[TD="class: xl66"]peas[/TD]
[TD="class: xl67"]05/06/2012[/TD]
[TD="class: xl66"]200[/TD]
[/TR]
[TR]
[TD="class: xl66"]D700[/TD]
[TD="class: xl66"]David[/TD]
[TD="class: xl66"]Green[/TD]
[TD="class: xl66"]55 High Road[/TD]
[TD="class: xl66"]567[/TD]
[TD="class: xl66"]peppers[/TD]
[TD="class: xl67"]03/04/2015[/TD]
[TD="class: xl66"]5000[/TD]
[TD="class: xl66"]1234[/TD]
[TD="class: xl66"]lettuce[/TD]
[TD="class: xl67"]03/05/2013[/TD]
[TD="class: xl66"]54[/TD]
[TD="class: xl66"]2123[/TD]
[TD="class: xl66"]olives[/TD]
[TD="class: xl67"]07/08/2009[/TD]
[TD="class: xl66"]10[/TD]
[/TR]
[TR]
[TD="class: xl66"]E55[/TD]
[TD="class: xl66"]Eric[/TD]
[TD="class: xl66"]Martin[/TD]
[TD="class: xl66"]100 High Road[/TD]
[TD="class: xl66"]654[/TD]
[TD="class: xl66"]strawberries[/TD]
[TD="class: xl67"]06/07/2015[/TD]
[TD="class: xl66"]20[/TD]
[TD="class: xl66"]89[/TD]
[TD="class: xl66"]potatoes[/TD]
[TD="class: xl67"]01/01/2014[/TD]
[TD="class: xl66"]30[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
[TR]
[TD="class: xl66"]F223[/TD]
[TD="class: xl66"]Fiona[/TD]
[TD="class: xl66"]Smith[/TD]
[TD="class: xl66"]25 Church Street[/TD]
[TD="class: xl66"]98[/TD]
[TD="class: xl66"]salt[/TD]
[TD="class: xl67"]02/01/2008[/TD]
[TD="class: xl66"]44[/TD]
[TD="class: xl66"]766[/TD]
[TD="class: xl66"]sugar[/TD]
[TD="class: xl67"]10/06/2015[/TD]
[TD="class: xl66"]100[/TD]
[TD="class: xl66"]4544[/TD]
[TD="class: xl66"]jam[/TD]
[TD="class: xl67"]09/06/2015[/TD]
[TD="class: xl66"]10[/TD]
[/TR]
[TR]
[TD="class: xl66"]G55[/TD]
[TD="class: xl66"]Gary[/TD]
[TD="class: xl66"]King[/TD]
[TD="class: xl66"]100 Oxford Road[/TD]
[TD="class: xl66"]65[/TD]
[TD="class: xl66"]marmalade[/TD]
[TD="class: xl67"]08/06/2015[/TD]
[TD="class: xl66"]2[/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[TD="class: xl66"][/TD]
[/TR]
</tbody>[/TABLE]
Does anyone have any advice on how to achieve this?
Thanks,