PDA

View Full Version : VBA Code for Combing Lists



Macro628
08-23-2016, 05:28 PM
Hello,

I'm looking for a method to combine values from one list and have it match to another list then create two new columns from that data. I enclosed an example of this problem within this post..

Thank You for your time..

mikerickson
08-23-2016, 10:44 PM
Put this formula in one cell =INDEX(A:A,1+INT((ROW(A2)-2)/COUNTA(B:B))+1,1)&""
And this in the cell to its right =INDEX(B:B,MOD(ROW(A1)-1,COUNTA(B:B)-1)+2,1)&""


Then drag down.

Macro628
08-24-2016, 05:42 PM
Thanks that did the trick!