How to create a Macro which forms new list combining elements of ColA with ColB

LisaDavis

New Member
Joined
Feb 24, 2014
Messages
7
I want to combine approx 100 items in column A with around 200 items in column B without having to do it by manually copying and pasting.

Below is a simplified version of what I am trying to do. Can I do this with a Macro?


[TABLE="class: grid, width: 75"]
<TBODY>[TR]
[TD]A1
[/TD]
[TD]B1
[/TD]
[/TR]
[TR]
[TD]A2
[/TD]
[TD]B2
[/TD]
[/TR]
[TR]
[TD]A3
[/TD]
[TD]B3
[/TD]
[/TR]
</TBODY>[/TABLE]

[TABLE="class: grid, width: 75"]
<TBODY>[TR]
[TD]A1
[/TD]
[TD]B1
[/TD]
[/TR]
[TR]
[TD]A1
[/TD]
[TD]B2
[/TD]
[/TR]
[TR]
[TD]A1
[/TD]
[TD]B3
[/TD]
[/TR]
[TR]
[TD]A2
[/TD]
[TD]B1
[/TD]
[/TR]
[TR]
[TD]A2
[/TD]
[TD]B2
[/TD]
[/TR]
[TR]
[TD]A2
[/TD]
[TD]B3
[/TD]
[/TR]
[TR]
[TD]A3
[/TD]
[TD]B1
[/TD]
[/TR]
[TR]
[TD]A3
[/TD]
[TD]B2
[/TD]
[/TR]
[TR]
[TD]A3
[/TD]
[TD]B3
[/TD]
[/TR]
</TBODY>[/TABLE]
 
Hi hippiehacker. Thanks so much for your corrections. I've still a lot to learn!!!! :)
 
Upvote 0

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Wow, that is incredibly fast and works perfect! It is even formatted nicely. Thank you and I look forward to checking out your learning resources.

Lisa
 
Upvote 0
LisaDavis,

Thanks for the feedback.

You are very welcome. Glad I could help.

And, come back anytime.
 
Upvote 0

Forum statistics

Threads
1,223,246
Messages
6,170,988
Members
452,373
Latest member
TimReeks

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