Rearranging Data in Excel

astout920

New Member
Joined
Apr 21, 2014
Messages
5
Hi, all. I have a table where I need to rearrange the data. The below is a small sample size. The real table is about 100 rows and 700 columns. The first table is what it looks like now, and the second table is what I'd like it to look like. Is there an easy way to do this. I tried pivot tables but it wasn't working right (for me). Would MS Access be a better tool? Although I'm not sure how to build the right query.

Any help would be greatly appreciated!!! Thanks!!!

Current Input
[TABLE="width: 356"]
<tbody>[TR]
[TD="align: center"]Qualifier[/TD]
[TD="align: center"]Model 1[/TD]
[TD="align: center"]Model 2[/TD]
[TD="align: center"]Model 3[/TD]
[/TR]
[TR]
[TD="align: center"]A[/TD]
[TD="align: center"]0.1[/TD]
[TD="align: center"][/TD]
[TD="align: center"]0.2[/TD]
[/TR]
[TR]
[TD="align: center"]B[/TD]
[TD="align: center"]0.5[/TD]
[TD="align: center"][/TD]
[TD="align: center"]0.1[/TD]
[/TR]
[TR]
[TD="align: center"]C[/TD]
[TD="align: center"]0.4[/TD]
[TD="align: center"]0.1[/TD]
[TD="align: center"]0.1[/TD]
[/TR]
[TR]
[TD="align: center"]D[/TD]
[TD="align: center"][/TD]
[TD="align: center"]0.6[/TD]
[TD="align: center"]0.1[/TD]
[/TR]
[TR]
[TD="align: center"]E[/TD]
[TD="align: center"][/TD]
[TD="align: center"]0.3[/TD]
[TD="align: center"]0.5[/TD]
[/TR]
</tbody>[/TABLE]


Desired Output (the headers in the top row can be any text as far as I'm concerned)
[TABLE="width: 192"]
<tbody>[TR]
[TD="class: xl65, width: 64, align: center"]Model[/TD]
[TD="class: xl65, width: 64, align: center"]Qualifier[/TD]
[TD="class: xl65, width: 64, align: center"]Value[/TD]
[/TR]
[TR]
[TD="class: xl65, align: center"]Model 1[/TD]
[TD="class: xl65, align: center"]A[/TD]
[TD="class: xl65, align: center"]0.1[/TD]
[/TR]
[TR]
[TD="class: xl65, align: center"]Model 1[/TD]
[TD="class: xl65, align: center"]B[/TD]
[TD="class: xl65, align: center"]0.5[/TD]
[/TR]
[TR]
[TD="class: xl65, align: center"]Model 1[/TD]
[TD="class: xl65, align: center"]C[/TD]
[TD="class: xl65, align: center"]0.4[/TD]
[/TR]
[TR]
[TD="class: xl65, align: center"]Model 1[/TD]
[TD="class: xl65, align: center"]D[/TD]
[TD="class: xl65, align: center"][/TD]
[/TR]
[TR]
[TD="class: xl65, align: center"]Model 1[/TD]
[TD="class: xl65, align: center"]E[/TD]
[TD="class: xl65, align: center"][/TD]
[/TR]
[TR]
[TD="class: xl65, align: center"]Model 2[/TD]
[TD="class: xl65, align: center"]A[/TD]
[TD="class: xl65, align: center"][/TD]
[/TR]
[TR]
[TD="class: xl65, align: center"]Model 2[/TD]
[TD="class: xl65, align: center"]B[/TD]
[TD="class: xl65, align: center"][/TD]
[/TR]
[TR]
[TD="class: xl65, align: center"]Model 2[/TD]
[TD="class: xl65, align: center"]C[/TD]
[TD="class: xl65, align: center"]0.1[/TD]
[/TR]
[TR]
[TD="class: xl65, align: center"]Model 2[/TD]
[TD="class: xl65, align: center"]D[/TD]
[TD="class: xl65, align: center"]0.6[/TD]
[/TR]
[TR]
[TD="class: xl65, align: center"]Model 2[/TD]
[TD="class: xl65, align: center"]E[/TD]
[TD="class: xl65, align: center"]0.3[/TD]
[/TR]
[TR]
[TD="class: xl65, align: center"]Model 3[/TD]
[TD="class: xl65, align: center"]A[/TD]
[TD="class: xl65, align: center"]0.2[/TD]
[/TR]
[TR]
[TD="class: xl65, align: center"]Model 3[/TD]
[TD="class: xl65, align: center"]B[/TD]
[TD="class: xl65, align: center"]0.1[/TD]
[/TR]
[TR]
[TD="class: xl65, align: center"]Model 3[/TD]
[TD="class: xl65, align: center"]C[/TD]
[TD="class: xl65, align: center"]0.1[/TD]
[/TR]
[TR]
[TD="class: xl65, align: center"]Model 3[/TD]
[TD="class: xl65, align: center"]D[/TD]
[TD="class: xl65, align: center"]0.1[/TD]
[/TR]
[TR]
[TD="class: xl65, align: center"]Model 3[/TD]
[TD="class: xl65, align: center"]E[/TD]
[TD="class: xl65, align: center"]0.5[/TD]
[/TR]
</tbody>[/TABLE]

 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).

Forum statistics

Threads
1,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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