Afternoon all,
Bit of an odd one, and I'm probably over complicating the issue here.
Essentially I have a set of data like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Cust No[/TD]
[TD]Name[/TD]
[TD]Invoice[/TD]
[TD]Date[/TD]
[TD]Due Amount[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]ABC[/TD]
[TD]00001[/TD]
[TD]19/03[/TD]
[TD]4000[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]ABC[/TD]
[TD]00002[/TD]
[TD]20/03[/TD]
[TD]4500[/TD]
[/TR]
[TR]
[TD]23456[/TD]
[TD]CDE[/TD]
[TD]00004[/TD]
[TD]19/03[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]34567[/TD]
[TD]DEF[/TD]
[TD]00007[/TD]
[TD]11/02[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]34567[/TD]
[TD]DEF[/TD]
[TD]00009[/TD]
[TD]01/03[/TD]
[TD]2000[/TD]
[/TR]
</tbody>[/TABLE]
That, for the purpose of a mailmerge I'd like the Invoice, Date and Due Amounts to be listed horizontally instead so
[TABLE="width: 500"]
<tbody>[TR]
[TD]Cust No[/TD]
[TD]Name[/TD]
[TD]Invoice 1[/TD]
[TD]Invoice 2[/TD]
[TD]Date 1[/TD]
[TD]Date 2[/TD]
[TD]Amount Due 1[/TD]
[TD]Amount Due 2[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]ABC[/TD]
[TD]00001[/TD]
[TD]00002[/TD]
[TD]19/03[/TD]
[TD]20/03[/TD]
[TD]4000[/TD]
[TD]4500[/TD]
[/TR]
[TR]
[TD]23456[/TD]
[TD]CDE[/TD]
[TD]00004[/TD]
[TD][/TD]
[TD]19/03[/TD]
[TD][/TD]
[TD]3000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]34567[/TD]
[TD]DEF[/TD]
[TD]00007[/TD]
[TD]00009[/TD]
[TD]11/02[/TD]
[TD]01/03[/TD]
[TD]2000[/TD]
[TD]2000[/TD]
[/TR]
</tbody>[/TABLE]
No real preference on the field order, so it could for example be Invoice 1, Date 1, Amount Due 1, Invoice 2, Date 2, Amount Due 2 etc. instead.
This is for thousands of rows of data so any help is greatly appreciated.
Cheers!
Bit of an odd one, and I'm probably over complicating the issue here.
Essentially I have a set of data like this:
[TABLE="width: 500"]
<tbody>[TR]
[TD]Cust No[/TD]
[TD]Name[/TD]
[TD]Invoice[/TD]
[TD]Date[/TD]
[TD]Due Amount[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]ABC[/TD]
[TD]00001[/TD]
[TD]19/03[/TD]
[TD]4000[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]ABC[/TD]
[TD]00002[/TD]
[TD]20/03[/TD]
[TD]4500[/TD]
[/TR]
[TR]
[TD]23456[/TD]
[TD]CDE[/TD]
[TD]00004[/TD]
[TD]19/03[/TD]
[TD]3000[/TD]
[/TR]
[TR]
[TD]34567[/TD]
[TD]DEF[/TD]
[TD]00007[/TD]
[TD]11/02[/TD]
[TD]2000[/TD]
[/TR]
[TR]
[TD]34567[/TD]
[TD]DEF[/TD]
[TD]00009[/TD]
[TD]01/03[/TD]
[TD]2000[/TD]
[/TR]
</tbody>[/TABLE]
That, for the purpose of a mailmerge I'd like the Invoice, Date and Due Amounts to be listed horizontally instead so
[TABLE="width: 500"]
<tbody>[TR]
[TD]Cust No[/TD]
[TD]Name[/TD]
[TD]Invoice 1[/TD]
[TD]Invoice 2[/TD]
[TD]Date 1[/TD]
[TD]Date 2[/TD]
[TD]Amount Due 1[/TD]
[TD]Amount Due 2[/TD]
[/TR]
[TR]
[TD]12345[/TD]
[TD]ABC[/TD]
[TD]00001[/TD]
[TD]00002[/TD]
[TD]19/03[/TD]
[TD]20/03[/TD]
[TD]4000[/TD]
[TD]4500[/TD]
[/TR]
[TR]
[TD]23456[/TD]
[TD]CDE[/TD]
[TD]00004[/TD]
[TD][/TD]
[TD]19/03[/TD]
[TD][/TD]
[TD]3000[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]34567[/TD]
[TD]DEF[/TD]
[TD]00007[/TD]
[TD]00009[/TD]
[TD]11/02[/TD]
[TD]01/03[/TD]
[TD]2000[/TD]
[TD]2000[/TD]
[/TR]
</tbody>[/TABLE]
No real preference on the field order, so it could for example be Invoice 1, Date 1, Amount Due 1, Invoice 2, Date 2, Amount Due 2 etc. instead.
This is for thousands of rows of data so any help is greatly appreciated.
Cheers!