Hi appreciate if you could assist:
Current data set
<tbody>
</tbody>
Required data structure (in view of a mailing list):
<tbody>
</tbody>
As the mailing list will grab the data under each header for each row (based on the customer number), I need to re-assign the data to the individual headers.
As per the sample above, the data will be sorted by customer number.
I have a long list of 500 customer numbers each with an average of 2 accounts, so I need to find an efficient solution to automate this task.
Appreciate your kind assistance. Thanks!
Current data set
Branch | Account Number | Customer Number | Customer Name | Class |
2000 | 12345 | 101 | JOE | A |
2000 | 34590 | 101 | JOE | A |
2000 | 23581 | 312 | PETER | A |
2000 | 32510 | 511 | HARRY | A |
2000 | 36711 | 511 | HARRY | A |
2000 | 15231 | 511 | HARRY | A |
2000 | 52315 | 789 | PAUL | A |
etc... |
<tbody>
</tbody>
Required data structure (in view of a mailing list):
Branch | Customer Number | Customer Name | Account 1 | Class 1 | Account 2 | Class 2 | Account 3 | Class 3 |
2000 | 101 | JOE | 12345 | A | 34590 | A | ||
2000 | 312 | PETER | 23581 | A | ||||
2000 | 511 | HARRY | 32510 | A | 36711 | A | 15231 | A |
2000 | 789 | PAUL | 52315 | A | ||||
etc... |
<tbody>
</tbody>
As the mailing list will grab the data under each header for each row (based on the customer number), I need to re-assign the data to the individual headers.
As per the sample above, the data will be sorted by customer number.
I have a long list of 500 customer numbers each with an average of 2 accounts, so I need to find an efficient solution to automate this task.
Appreciate your kind assistance. Thanks!