Hi,
How do I covert multiple rows into few rows of n columns

I've data like this

col1 col2 col2 col4 col5
abc
cde
def
123
321
100
txt
list
xls
1
2
3
4
5
6

Output needed is
abc 123 txt 1 4
cde 321 list 2 5
def 100 xls 3 6

Thanks for the help!
ps