Creating multiple rows from single row

Sinjinmanta

New Member
Joined
Feb 17, 2016
Messages
3
I'm not sure how to even phrase this question. I want to take a table of data and create rows for each entry.

What I have:
[TABLE="width: 256"]
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Name[/TD]
[TD="class: xl65, width: 64"]Algebra[/TD]
[TD="class: xl65, width: 64"]Biology[/TD]
[TD="class: xl65, width: 64"]Literature[/TD]
[/TR]
[TR]
[TD]Student 1[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]Student 2[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]Student 3[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]3[/TD]
[/TR]
</tbody>[/TABLE]


What I want to go to:
[TABLE="width: 192"]
<colgroup><col width="64" span="3" style="width:48pt"> </colgroup><tbody>[TR]
[TD="width: 64"]Student 1[/TD]
[TD="width: 64, align: right"]1[/TD]
[TD="class: xl65, width: 64"]Algebra[/TD]
[/TR]
[TR]
[TD]Student 1[/TD]
[TD="align: right"]4[/TD]
[TD="class: xl65"]Biology[/TD]
[/TR]
[TR]
[TD]Student 1[/TD]
[TD="align: right"]3[/TD]
[TD="class: xl65"]Literature[/TD]
[/TR]
[TR]
[TD]Student 2[/TD]
[TD="align: right"]3[/TD]
[TD="class: xl65"]Algebra[/TD]
[/TR]
[TR]
[TD]Student 2[/TD]
[TD="align: right"]2[/TD]
[TD="class: xl65"]Biology[/TD]
[/TR]
[TR]
[TD]Student 2[/TD]
[TD="align: right"]3[/TD]
[TD="class: xl65"]Literature[/TD]
[/TR]
[TR]
[TD]Student 3[/TD]
[TD="align: right"]2[/TD]
[TD="class: xl65"]Algebra[/TD]
[/TR]
[TR]
[TD]Student 3[/TD]
[TD="align: right"]2[/TD]
[TD="class: xl65"]Biology[/TD]
[/TR]
[TR]
[TD]Student 3[/TD]
[TD="align: right"]3[/TD]
[TD="class: xl65"]Literature[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
This is done easily with PowerQuery by selecting the first column, then under the 'Transform' tab, select 'Unpivot Other Columns'.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,021
Latest member
Justyna P

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