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.
<tbody>
</tbody>
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.
<tbody>
</tbody>
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.
Person Unique ID | Name | Surname | Address | Order id | Order description | order date | order price |
A44 | Alex | Smith | 1 High Street | 5 | apples | 01/01/2000 | 1 |
D516 | Diane | Jones | 222 High Street | 4 | bananas | 01/02/2000 | 45 |
D516 | Diane | Jones | 222 High Street | 34 | grapes | 03/04/2010 | 32 |
D516 | Diane | Jones | 222 High Street | 56 | peas | 05/06/2012 | 200 |
D700 | David | Green | 55 High Road | 567 | peppers | 03/04/2015 | 5000 |
D700 | David | Green | 55 High Road | 1234 | lettuce | 03/05/2013 | 54 |
D700 | David | Green | 55 High Road | 2123 | olives | 07/08/2009 | 10 |
E55 | Eric | Martin | 100 High Road | 654 | strawberries | 06/07/2015 | 20 |
E55 | Eric | Martin | 100 High Road | 89 | potatoes | 01/01/2014 | 30 |
F223 | Fiona | Smith | 25 Church Street | 98 | salt | 02/01/2008 | 44 |
F223 | Fiona | Smith | 25 Church Street | 766 | sugar | 10/06/2015 | 100 |
F223 | Fiona | Smith | 25 Church Street | 4544 | jam | 09/06/2015 | 10 |
G55 | Gary | King | 100 Oxford Road | 65 | marmalade | 08/06/2015 | 2 |
<tbody>
</tbody>
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.
Person Unique ID | Name | Surname | Address | Order 1 id | Order 1 description | order 1 date | order 1 price | Order 2 id | Order 2 description | order 2 date | order 2 price | Order 3 id | Order 3 description | order 3 date | order 3 price |
A44 | Alex | Smith | 1 High Street | 5 | apples | 01/01/2000 | 1 | ||||||||
D516 | Diane | Jones | 222 High Street | 4 | bananas | 01/02/2000 | 45 | 34 | grapes | 03/04/2010 | 32 | 56 | peas | 05/06/2012 | 200 |
D700 | David | Green | 55 High Road | 567 | peppers | 03/04/2015 | 5000 | 1234 | lettuce | 03/05/2013 | 54 | 2123 | olives | 07/08/2009 | 10 |
E55 | Eric | Martin | 100 High Road | 654 | strawberries | 06/07/2015 | 20 | 89 | potatoes | 01/01/2014 | 30 | ||||
F223 | Fiona | Smith | 25 Church Street | 98 | salt | 02/01/2008 | 44 | 766 | sugar | 10/06/2015 | 100 | 4544 | jam | 09/06/2015 | 10 |
G55 | Gary | King | 100 Oxford Road | 65 | marmalade | 08/06/2015 | 2 |
<tbody>
</tbody>
Does anyone have any advice on how to achieve this?
Thanks,