excel - transpose data from row to column in desired times -


i need transpose row of text in column row times shown below: (need copy a1 e1 text in related row 2 [here a2 e3] times)

        b     c       d       e       f 1   ab1     ab2     ab3     ab4     ab5     total      2   3   2   1   3   1   10 3                        4   ab1                  5   ab1                  6   ab1                  7   ab2                  8   ab2                  9   ab3                  10  ab4                  11  ab4                  12  ab4                  13  ab5      

sub transposedata()     dim sourcedata variant, results variant, long, j long, k long      sourcedata = range("a1:e2").value     results = range("a4:a20000").value      = 1 ubound(sourcedata, 2)         j = 1 sourcedata(2, i)             k = k + 1             results(k, 1) = sourcedata(1, j)         next     next      range("a4:a20000").value = results  end sub 

Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -