Copy and paste until certain text reach

hanz753

Board Regular
Joined
Aug 9, 2017
Messages
53
Hello,

I have data in Column A to B. Column A="Unit Number" , Column B = "Delivery Name" and Column C = "Postcode". The Issue I have, the titles of each of the columns are in the data set.[TABLE="width: 500"]
<tbody>[TR]
[TD]Unit Number[/TD]
[TD]Delivery Name[/TD]
[TD]Postcode[/TD]
[/TR]
[TR]
[TD]2234we[/TD]
[TD]Home[/TD]
[TD]JK34 4FG[/TD]
[/TR]
[TR]
[TD][TABLE="width: 451"]
<tbody>[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody><colgroup><col><col><col></colgroup>[/TABLE]
[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Unit Number[/TD]
[TD]Delivery Name[/TD]
[TD]Postcode[/TD]
[/TR]
[TR]
[TD]243243fg[/TD]
[TD]Away[/TD]
[TD]RG34 4GF[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
What I need the VBA, Macro or Formula to do so is copy the data down until it has reached the titles mentioned above.

Thank you for your help

[TABLE="width: 93"]
<tbody>[TR]
[TD][TABLE="width: 66"]
<tbody>[TR]
[TD][/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[TABLE="width: 93"]
<tbody>[TR]
[TD][TABLE="width: 292"]
<tbody>[TR]
[TD][/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]
[TABLE="width: 66"]
<tbody>[TR]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,225,757
Messages
6,186,850
Members
453,379
Latest member
gabriellegonzalez

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