Transform several rows into columns

krisde

New Member
Joined
Sep 18, 2014
Messages
3
Hi,
I have to transform a table with multiple repeatable rows into columns.
Tried do use the Offset function but did not work.
I am using Excel 2010.

My raw data looks like this

Application</SPAN>Attribute 1</SPAN>Value 1</SPAN>
Attribute 2</SPAN>Value 2</SPAN>
Attribute 3</SPAN>Value 3</SPAN>
Attribute 4</SPAN>Value 4</SPAN>
Attribute 5</SPAN>Value 5</SPAN>
Attribute 6</SPAN>Value 6</SPAN>
Attribute 7</SPAN>Value 7</SPAN>

<TBODY>
</TBODY><COLGROUP><COL><COL><COL></COLGROUP>

And the result needs to look like this:

Attribute 1Attribute 2Attribute 3Attribute 4Attribute 5Attribute 6Attribute 7
Application</SPAN>Value 1</SPAN>Value 2</SPAN>Value 3</SPAN>Value 4</SPAN>Value 5</SPAN>Value 6</SPAN>Value 7</SPAN>

<TBODY>
</TBODY>


As I get the raw data on regular basis and need to transform them every time I get them, I planned to hold them in one sheet and the transformed version of it in another sheet.

Can anyone help?

Thanks
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Transposing your columns will do so. Easiest way to do this is to just copy your data, then paste special and ensure Transpose is checked. In Excel 2010, the options are also in the right-click context menu after you've copied your data.

i24taa.png

1zl3a0x.png

2q9hn3k.png


Edit: Oops, missed bswdchwartz's reply.
 
Last edited:
Upvote 0
easy enough with index()
Excel Workbook
ABCDEFGHIJKLM
1Attribute 1Value 1Attribute 1Attribute 2Attribute 3Attribute 4Attribute 5Attribute 6Attribute 700
2Attribute 2Value 2Value 1Value 2Value 3Value 4Value 5Value 6Value 700
3Attribute 3Value 3
4Attribute 4Value 4
5Attribute 5Value 5
6Attribute 6Value 6
7Attribute 7Value 7
Sheet1
 
Upvote 0
OK, forgot to mention that I have about 1700 lines in the table, so after these 7 attributes the next application with 7 attributes follows and so on for over 250 applications.

For those 7 entries it would be easy, agree.
Thoiught to use a transpose function with offset in a loop till end of the table, but failed to get it running.

Thanks
DK
 
Upvote 0
like this then ?
Excel Workbook
ABCDEFGHIJKL
1Attribute 1Value 1Attribute 1Attribute 2Attribute 3Attribute 4Attribute 5Attribute 6Attribute 7
2Attribute 2Value 2Value 1Value 2Value 3Value 4Value 5Value 6Value 7
3Attribute 3Value 3attribute x 1attribute x 2attribute x 3attribute x 4attribute x 5attribute x 6attribute x 7
4Attribute 4Value 4value x1value x2value x3value x4value x5value x6value x7
5Attribute 5Value 5attribute Z 1attribute Z 2attribute Z 3attribute Z 4attribute Z 5attribute Z 6attribute Z 7
6Attribute 6Value 6value Z 1value Z 2value Z 3value Z 4value Z 5value Z 6value Z 7
7Attribute 7Value 70000000
8attribute x 1value x10000000
9attribute x 2value x2
10attribute x 3value x3
11attribute x 4value x4
12attribute x 5value x5
13attribute x 6value x6
14attribute x 7value x7
15attribute Z 1value Z 1
16attribute Z 2value Z 2
17attribute Z 3value Z 3
18attribute Z 4value Z 4
19attribute Z 5value Z 5
20attribute Z 6value Z 6
21attribute Z 7value Z 7
Sheet1
 
Upvote 0
No, the source looks like this:
Application 1</SPAN>

Attribute 1</SPAN>

Value 1</SPAN>
Attribute 2</SPAN>Value 2</SPAN>
Attribute 3</SPAN>Value 3</SPAN>
Attribute 4</SPAN>Value 4</SPAN>
Attribute 5</SPAN>Value 5</SPAN>
Attribute 6</SPAN>Value 6</SPAN>
Attribute 7</SPAN>Value 7</SPAN>
Application 2</SPAN>Attribute 1</SPAN>Value 11</SPAN>
Attribute 2</SPAN>Value 12</SPAN>
Attribute 3</SPAN>Value 13</SPAN>
Attribute 4</SPAN>Value 14</SPAN>
Attribute 5</SPAN>Value 15</SPAN>
Attribute 6</SPAN>Value 16</SPAN>
Attribute 7</SPAN>Value 17</SPAN>
Application 3</SPAN>Attribute 1</SPAN>Value 21</SPAN>
Attribute 2</SPAN>Value 22</SPAN>
Attribute 3</SPAN>Value 23</SPAN>
Attribute 4</SPAN>Value 24</SPAN>
Attribute 5</SPAN>Value 25</SPAN>
Attribute 6</SPAN>Value 26</SPAN>
Attribute 7</SPAN>Value 27</SPAN>
Application 4</SPAN>Attribute 1</SPAN>Value 31</SPAN>
Attribute 2</SPAN>Value 32</SPAN>
Attribute 3</SPAN>Value 33</SPAN>
Attribute 4</SPAN>Value 34</SPAN>
Attribute 5</SPAN>Value 35</SPAN>
Attribute 6</SPAN>Value 36</SPAN>
Attribute 7</SPAN>Value 37</SPAN>
And so on ....

<TBODY>
</TBODY><COLGROUP><COL><COL><COL></COLGROUP>
 
Upvote 0
what's it supposed to end up like then?
this maybe?
Excel Workbook
ABCDEFGHIJKL
1app 1Attribute 1Value 1Attribute 1Attribute 2Attribute 3Attribute 4Attribute 5Attribute 6Attribute 7
2Attribute 2Value 2app 1Value 1Value 2Value 3Value 4Value 5Value 6Value 7
3Attribute 3Value 3app 2value x1value x2value x3value x4value x5value x6value x7
4Attribute 4Value 4app3value Z 1value Z 2value Z 3value Z 4value Z 5value Z 6value Z 7
5Attribute 5Value 5
6Attribute 6Value 6
7Attribute 7Value 7
8app 2Attribute 1value x1
9Attribute 2value x2
10Attribute 3value x3
11Attribute 4value x4
12Attribute 5value x5
13Attribute 6value x6
14Attribute 7value x7
15app3Attribute 1value Z 1
16Attribute 2value Z 2
17Attribute 3value Z 3
18Attribute 4value Z 4
19Attribute 5value Z 5
20Attribute 6value Z 6
21Attribute 7value Z 7
Sheet1 (2)
Excel Workbook
E
2app 1
Sheet1 (2)
Excel Workbook
F
2Value 1
Sheet1 (2)
 
Upvote 0

Forum statistics

Threads
1,215,575
Messages
6,125,619
Members
449,238
Latest member
wcbyers

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top