I am currently working in Microsoft Excel 2013 and I have one big column of data that I want to split into exactly three columns. I would like to go from this:
name_1
timestamp_1
comment_1
name_2
timestamp_2
comment_2
...
name_N
timestamp_N
comment_N
to this:
name_1 timestamp_1 comment_1
name_2 timestamp_2 comment_2
...
name_N timestamp_N comment_N
is there a way to acheive that?
I presume that your data in single column. you can create a sub to done this
Sub rowToColumn()
nRow = 2 'Assume u have header on Row 1
Do until cells(nRow,"A") = ""
cells(nRow, 2) = cells(nRow + 1, "A")
cells(nRow, 3) = cells(nRow + 2, "A")
'Then remove the additional row.....
bla bla bla......
nRow = nRow + 1
Loop
End sub
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.