Copying different names from one collumn.

Vilus

New Member
Joined
Aug 10, 2017
Messages
1
Good evening everyone,

I've just started working with Excel VBE and I've ran into a problem.

I need a VBE solution to copy certain data from a collumn. For example a collumn looks like this:

[TABLE="width: 114"]
<tbody>[TR]
[TD]Carlsberg[/TD]
[/TR]
[TR]
[TD]Carlsberg[/TD]
[/TR]
[TR]
[TD]Carlsberg[/TD]
[/TR]
[TR]
[TD]ISS A/S[/TD]
[/TR]
[TR]
[TD]ISS A/S[/TD]
[/TR]
[TR]
[TD]ISS A/S[/TD]
[/TR]
[TR]
[TD]ISS A/S[/TD]
[/TR]
[TR]
[TD]ISS A/S[/TD]
[/TR]
[TR]
[TD]ISS A/S[/TD]
[/TR]
[TR]
[TD]H. Lundbeck A/S[/TD]
[/TR]
[TR]
[TD]H. Lundbeck A/S[/TD]
[/TR]
[TR]
[TD]H. Lundbeck A/S[/TD]
[/TR]
[TR]
[TD]H. Lundbeck A/S[/TD]
[/TR]
[TR]
[TD]FLSmidth & Co.A/S[/TD]
[/TR]
</tbody><colgroup><col></colgroup>[/TABLE]

In the 2nd, 3rd and other rows there are information which has to be copied along with the name of a brand and pasted in new document or sheet.

Basically I need help figuring out how to tell VBE to differ between names in the collumn so it would copy everything what is related to Carlsberg, ISS A/S and so on and paste it to other sheet/document.
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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