ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   from one column into multiple columns (https://www.excelbanter.com/excel-discussion-misc-queries/269347-one-column-into-multiple-columns.html)

juan1

from one column into multiple columns
 
I have a large data file in Excel like the following:

column 1
r231
r236
r239
r240
r231
r236
r239
r240
r231
r236
r239
r240
.
.
.
r231
r236
r239
r240

with upto 1 million rows.

column 2 has
item1
item1
item1
item1
item2
item2
item2
item2
item3
item3
item3
item3
.
.
.
itemX
itemX
itemX
itemX

Column 3 has
aa
bb
ab
ac
ab
bb
cc
aa
.
.
.
bb
aa
ac
cc

I would like to convert this data into the following table:

column 1, starting from the second row, has the following:
r231
r236
r239
r240

row 1, starting from second column, has item1, item2, item3, item4 in columns 2 through 5.

column 2, starting from the second row, has the original column 3 data that correspond to item1.

column 3, starting from the second row, has the original column 3 data that correspond to item2.

column 4, starting from the second row, has the original column 3 data that correspond to item3.

column 5, starting from the second row, has the original column 3 data that correspond to item3.

Would appreciate your help on how to do this in Excel 2010 for Windows.

This large data file is in txt format as well. A tip on how to convert the file in Linux/Unix is also appreciated.


All times are GMT +1. The time now is 06:52 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com