Hi, i hope someone can help me as this is driving me potty.
I have student grades listed like below
[TABLE="width: 325"]
<!--StartFragment--> <colgroup><col width="65" span="5" style="width:65pt"> </colgroup><tbody>[TR]
[TD="width: 65, align: center"][/TD]
[TD="class: xl63, width: 65, align: center"]Biology[/TD]
[TD="class: xl63, width: 65, align: center"]Chemistry[/TD]
[TD="class: xl63, width: 65, align: center"]History[/TD]
[TD="class: xl63, width: 65, align: center"]Physics[/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Student 1[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Student 2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Student 3[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[/TR]
and I want to bring back the subject names in descending order, like below:
[TABLE="width: 541"]
<colgroup><col span="5"><col span="4"></colgroup><tbody>[TR]
[TD][/TD]
[TD="align: center"]Biology[/TD]
[TD="align: center"]Chemistry[/TD]
[TD="align: center"]History[/TD]
[TD="align: center"]Physics[/TD]
[TD="align: center"]1st[/TD]
[TD="align: center"]2nd[/TD]
[TD="align: center"]3rd[/TD]
[TD="align: center"]4th[/TD]
[/TR]
[TR]
[TD="align: center"]Student 1[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]Chemistry[/TD]
[TD="align: center"]History[/TD]
[TD="align: center"]Biology[/TD]
[TD="align: center"]Physics[/TD]
[/TR]
[TR]
[TD="align: center"]Student 2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]History[/TD]
[TD="align: center"]Physics[/TD]
[TD="align: center"]Chemistry[/TD]
[TD="align: center"]Biology[/TD]
[/TR]
[TR]
[TD="align: center"]Student 3[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]Physics[/TD]
[TD="align: center"]History[/TD]
[TD="align: center"]Biology[/TD]
[TD="align: center"]Chemistry[/TD]
[/TR]
</tbody>[/TABLE]
I can do it in the case of student 3 by using a mix of index, match and large functions but I cannot get it to work properly where i have duplicate grades.
If you have a code that works could you also briefly explain what each bit does as i have a much larger sample i need to apply it to,
Thanks
I have student grades listed like below
[TABLE="width: 325"]
<!--StartFragment--> <colgroup><col width="65" span="5" style="width:65pt"> </colgroup><tbody>[TR]
[TD="width: 65, align: center"][/TD]
[TD="class: xl63, width: 65, align: center"]Biology[/TD]
[TD="class: xl63, width: 65, align: center"]Chemistry[/TD]
[TD="class: xl63, width: 65, align: center"]History[/TD]
[TD="class: xl63, width: 65, align: center"]Physics[/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Student 1[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]2[/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Student 2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[/TR]
[TR]
[TD="class: xl63, align: center"]Student 3[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[/TR]
<!--EndFragment-->
</tbody>[/TABLE]and I want to bring back the subject names in descending order, like below:
[TABLE="width: 541"]
<colgroup><col span="5"><col span="4"></colgroup><tbody>[TR]
[TD][/TD]
[TD="align: center"]Biology[/TD]
[TD="align: center"]Chemistry[/TD]
[TD="align: center"]History[/TD]
[TD="align: center"]Physics[/TD]
[TD="align: center"]1st[/TD]
[TD="align: center"]2nd[/TD]
[TD="align: center"]3rd[/TD]
[TD="align: center"]4th[/TD]
[/TR]
[TR]
[TD="align: center"]Student 1[/TD]
[TD="align: center"]6[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]7[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]Chemistry[/TD]
[TD="align: center"]History[/TD]
[TD="align: center"]Biology[/TD]
[TD="align: center"]Physics[/TD]
[/TR]
[TR]
[TD="align: center"]Student 2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]4[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]5[/TD]
[TD="align: center"]History[/TD]
[TD="align: center"]Physics[/TD]
[TD="align: center"]Chemistry[/TD]
[TD="align: center"]Biology[/TD]
[/TR]
[TR]
[TD="align: center"]Student 3[/TD]
[TD="align: center"]1[/TD]
[TD="align: center"]0[/TD]
[TD="align: center"]2[/TD]
[TD="align: center"]3[/TD]
[TD="align: center"]Physics[/TD]
[TD="align: center"]History[/TD]
[TD="align: center"]Biology[/TD]
[TD="align: center"]Chemistry[/TD]
[/TR]
</tbody>[/TABLE]
I can do it in the case of student 3 by using a mix of index, match and large functions but I cannot get it to work properly where i have duplicate grades.
If you have a code that works could you also briefly explain what each bit does as i have a much larger sample i need to apply it to,
Thanks