Link to home
Start Free TrialLog in
Avatar of finnstone
finnstone

asked on

moving columns and row data in excel

id like to move data around in my excel file. how can i do it using vba?

i have data in col a -d

some rows have only data in col a, others only data in col a,b, others with data only in col a,b,c and others with  data in a,b,c,d

i need the output file to make x # of rows for each row

example
cola           b       c     d
handle     6       43   106

so it would become
handle  6
handle 43
handle 106

for each row.

thanks!
Avatar of Saurabh Singh Teotia
Saurabh Singh Teotia
Flag of India image

Is their any particular reason that you want to do this with VBA??

Also have you tried..copy then paste special-->values and selecting the last option of transpose to be true which will do what you are looking for...

In additional if you still want to do go with vb route can you give me your sample file with how's the data in number of rows and how you want to see...
Avatar of finnstone
finnstone

ASKER

yeah many files to do it to.

here is sample data
ssample.xlsx
ASKER CERTIFIED SOLUTION
Avatar of Saurabh Singh Teotia
Saurabh Singh Teotia
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
wow very cool. thanks!
Yw...Glad to help.. :-)