generate list from 2 different sheets

oliverraaijmakers

New Member
Joined
Jun 25, 2012
Messages
3
I am looking for a macro (no pivottable) that can combine data from 2 sheets (5 columns and 2columns) into 1 additional sheet in such a way that for every 1 row in the first sheet, all rows in the second sheet get copied below eachother in the third sheet (in 2 seperate colums). The problem is that the amount of rows in both sheets can vary. So it should work with 2 row entries, but also with 20; in both sheets.

Example:
sheet 1:
R1:
1
2
3


sheet 2:
R1:
a
b
c
d

this should result in

sheet 3:
R1 R2
1 a
1 b
1 c
1 d
2 a
2 b
2 c
2 d
3 a
3 b
3 c
3 d

thank you in advance
 

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
could you give a better example. I'm not sure what would be the trigger to show the clustering of data begins and stops.
 
Upvote 0

Forum statistics

Threads
1,203,060
Messages
6,053,303
Members
444,650
Latest member
bookendinSA

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