excel vba - Combining 2 columns into 1. (one after the other) -


i combine 2 columns 1. 1 after other.

i have this:

        b row 1: 1  10 row 2: 2  11 row 3: 3  12 row 4: 4  13 

and obtain this:

       row 1: 1 row 2: 2 row 3: 3 row 4: 4 row 5: 10 row 6: 11 row 7: 12 row 8: 13 

the number of rows in 2 columns different every time (number of rows in , b same).

i tried many functions , i'm close still not there. appreciate help. prefer formulas. i'm still newbie in vba fine.

thanks!

here formula it.

put in c1 , copy down.

=if(a1<>"",a1,index(b:b,row()-counta(a:a))) 

enter image description here


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -