Hi appreciate if you could assist:
Current data set
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Branch
[/TD]
[TD]Account Number
[/TD]
[TD]Customer Number[/TD]
[TD]Customer Name[/TD]
[TD]Class[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]12345[/TD]
[TD]101[/TD]
[TD]JOE[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]34590[/TD]
[TD]101[/TD]
[TD]JOE[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]23581[/TD]
[TD]312[/TD]
[TD]PETER[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]32510[/TD]
[TD]511[/TD]
[TD]HARRY[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]36711[/TD]
[TD]511[/TD]
[TD]HARRY[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]15231[/TD]
[TD]511[/TD]
[TD]HARRY[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]52315[/TD]
[TD]789[/TD]
[TD]PAUL[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]etc...[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Required data structure (in view of a mailing list):
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Branch[/TD]
[TD]Customer Number[/TD]
[TD]Customer Name[/TD]
[TD]Account 1[/TD]
[TD]Class 1[/TD]
[TD]Account 2[/TD]
[TD]Class 2[/TD]
[TD]Account 3[/TD]
[TD]Class 3[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]101[/TD]
[TD]JOE[/TD]
[TD]12345[/TD]
[TD]A[/TD]
[TD]34590[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]312[/TD]
[TD]PETER[/TD]
[TD]23581[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]511[/TD]
[TD]HARRY[/TD]
[TD]32510[/TD]
[TD]A[/TD]
[TD]36711[/TD]
[TD]A[/TD]
[TD]15231[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]789[/TD]
[TD]PAUL[/TD]
[TD]52315[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]etc...[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
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
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Branch
[/TD]
[TD]Account Number
[/TD]
[TD]Customer Number[/TD]
[TD]Customer Name[/TD]
[TD]Class[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]12345[/TD]
[TD]101[/TD]
[TD]JOE[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]34590[/TD]
[TD]101[/TD]
[TD]JOE[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]23581[/TD]
[TD]312[/TD]
[TD]PETER[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]32510[/TD]
[TD]511[/TD]
[TD]HARRY[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]36711[/TD]
[TD]511[/TD]
[TD]HARRY[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]15231[/TD]
[TD]511[/TD]
[TD]HARRY[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]52315[/TD]
[TD]789[/TD]
[TD]PAUL[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]etc...[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
Required data structure (in view of a mailing list):
[TABLE="class: grid, width: 500, align: left"]
<tbody>[TR]
[TD]Branch[/TD]
[TD]Customer Number[/TD]
[TD]Customer Name[/TD]
[TD]Account 1[/TD]
[TD]Class 1[/TD]
[TD]Account 2[/TD]
[TD]Class 2[/TD]
[TD]Account 3[/TD]
[TD]Class 3[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]101[/TD]
[TD]JOE[/TD]
[TD]12345[/TD]
[TD]A[/TD]
[TD]34590[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]312[/TD]
[TD]PETER[/TD]
[TD]23581[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]511[/TD]
[TD]HARRY[/TD]
[TD]32510[/TD]
[TD]A[/TD]
[TD]36711[/TD]
[TD]A[/TD]
[TD]15231[/TD]
[TD]A[/TD]
[/TR]
[TR]
[TD]2000[/TD]
[TD]789[/TD]
[TD]PAUL[/TD]
[TD]52315[/TD]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]etc...[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
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!