A complicated reformatting problem in excel

bobomaggie

New Member
Joined
Jan 29, 2014
Messages
3
Anyone has a neat solution to this reformatting problem? I have a huge data set that needs to be reformatted from A to B. The trick is that students do not necessarily take the same number/type of tests. Thanks!

Format A

Student ID Subject Score
a reading 343
a math 434
a history 453
a science 454
b algebra I 454
b reading 342
c geometry 334
c history 343
c reading 450

Format B

Student ID Reading Math History Science Algebra I Geometry
a 343 434 453 454
b 342 454
c 450 343
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Welcome to the Board!

Have you tried a Pivot Table?


Excel 2010
ABCDEFGH
3Sum of ScoreColumn Labels
4Row Labelsalgebra IgeometryhistorymathreadingscienceGrand Total
5a4534343434541684
6b454342796
7c3343434501127
8Grand Total45433479643411354543607
Sheet4



HTH,
 
Upvote 0
AHA!!! and in the value field you just keep sum of score. In that case I just have to make sure there is no duplicate scores for the same student. Oh my, you made this so easy. Thank you!!


Welcome to the Board!

Have you tried a Pivot Table?

Excel 2010
ABCDEFGH
Sum of ScoreColumn Labels
Row Labels
a
b
c
Grand Total

<colgroup><col><col><col><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
[TD="align: center"]3[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]

[TD="align: center"]4[/TD]

[TD="align: right"]algebra I[/TD]
[TD="align: right"]geometry[/TD]
[TD="align: right"]history[/TD]
[TD="align: right"]math[/TD]
[TD="align: right"]reading[/TD]
[TD="align: right"]science[/TD]
[TD="align: right"]Grand Total[/TD]

[TD="align: center"]5[/TD]

[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]453[/TD]
[TD="align: right"]434[/TD]
[TD="align: right"]343[/TD]
[TD="align: right"]454[/TD]
[TD="align: right"]1684[/TD]

[TD="align: center"]6[/TD]

[TD="align: right"]454[/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"][/TD]
[TD="align: right"]342[/TD]
[TD="align: right"][/TD]
[TD="align: right"]796[/TD]

[TD="align: center"]7[/TD]

[TD="align: right"][/TD]
[TD="align: right"]334[/TD]
[TD="align: right"]343[/TD]
[TD="align: right"][/TD]
[TD="align: right"]450[/TD]
[TD="align: right"][/TD]
[TD="align: right"]1127[/TD]

[TD="align: center"]8[/TD]

[TD="align: right"]454[/TD]
[TD="align: right"]334[/TD]
[TD="align: right"]796[/TD]
[TD="align: right"]434[/TD]
[TD="align: right"]1135[/TD]
[TD="align: right"]454[/TD]
[TD="align: right"]3607[/TD]

</tbody>
Sheet4




HTH,
 
Upvote 0

Forum statistics

Threads
1,223,228
Messages
6,170,871
Members
452,363
Latest member
merico17

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