sql - Excel function or VBA script to combine ranges -


i have 2 columns each varying amount of rows. in instance want merge (scalar multiple? multiple matrices?) item in a1 range(b1:b50) , repeat each item in column a.

ideally 2 values separated comma. here's i'd accomplish.

what best route go? can matrix function work combining text?

try code :

sub sample()      dim lastrowa long, lastrowb long, row long      lastrowa = range("a" & rows.count).end(xlup).row     lastrowb = range("b" & rows.count).end(xlup).row      row = 1     = 1 lastrowa         j = 1 lastrowb             cells(row, 4) = cells(i, 1)             cells(row, 5) = cells(i, 1) & "," & cells(j, 2)             row = row + 1         next     next  end sub 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -