Split one line into two and automate up until end of table

peter_nemeth

New Member
Joined
Jun 23, 2018
Messages
1
Hi all

I have got list of suppliers as below:

[TABLE="width: 500"]
<tbody>[TR]
[TD]WIL001
WILSON01/05/18I1232124.5124.9149.31
EPE001EPE INTERN01/05/18IPSNIV176908157.831.56189.36
DEX001DEXAM01/05/18IX00013571233.0246.62279.64

<tbody>
[TD="class: xl65, align: right"][/TD]
[TD="width: 64"][/TD]
[TD="width: 90"][/TD]
[TD="width: 64, align: right"][/TD]
[TD="width: 64, align: right"][/TD]
[TD="width: 64, align: right"][/TD]

</tbody>
[/TD]
[TD="class: xl65, align: right"][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]I would like to transform it into this format. How can I create two lines as header and line from one invoice/row and then go down and do the same with second invoice all the way down??
[/TD]
[TD][/TD]
[TD="class: xl65, align: right"][/TD]
[TD][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD][TABLE="width: 64"]
<tbody>[TR]
[TD="class: xl65, width: 64"][/TD]
[/TR]
[TR]
[TD="class: xl65"]

H|01|1|INV|WIL001|1232||05//2018|124.31|24.9|149.31|GBP|A
[/TD]
[/TR]
[TR]
[TD="class: xl65"]L|01|1232|1|10|5000||124.51|24.9|149.31|20.00||A

<tbody>
</tbody>
[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD="class: xl65, align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
[TR]
[TD]Many thanks![/TD]
[TD][/TD]
[TD="class: xl65, align: right"][/TD]
[TD][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[/TR]
</tbody>[/TABLE]




<tbody>
[TD="class: xl65"]

<tbody>

[TD="class: xl65"][/TD]

[TD="class: xl65"][/TD]

</tbody>
[/TD]

</tbody>







<tbody>
</tbody>
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

Forum statistics

Threads
1,224,894
Messages
6,181,618
Members
453,057
Latest member
LE102024

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top