Hi,
I have data by unique student ID that includes parent ID, let’s say like this:
<table class="MsoNormalTable" style="width:117.65pt;margin-left:-1.05pt;border-collapse:collapse;mso-yfti-tbllook: 1184;mso-padding-alt:0in 0in 0in 0in" border="0" cellpadding="0" cellspacing="0" width="157"> <tbody><tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;height:15.0pt"> <td style="width:63.65pt;border:solid windowtext 1.0pt; padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="85"> </td> <td style="width:.75in;border:solid windowtext 1.0pt; border-left:none;padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="72"> </td> </tr> <tr style="mso-yfti-irow:1;height:15.0pt"> <td style="width:63.65pt;border:solid windowtext 1.0pt; border-top:none;padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="85"> </td> <td style="width:.75in;border-top:none; border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="72"> </td> </tr> <tr style="mso-yfti-irow:2;height:15.0pt"> <td style="width:63.65pt;border:solid windowtext 1.0pt; border-top:none;padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="85"> </td> <td style="width:.75in;border-top:none; border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="72"> </td> </tr> <tr style="mso-yfti-irow:3;height:15.0pt"> <td style="width:63.65pt;border:solid windowtext 1.0pt; border-top:none;padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="85"> </td> <td style="width:.75in;border-top:none; border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="72"> </td> </tr> <tr style="mso-yfti-irow:4;height:15.0pt"> <td style="width:63.65pt;border:solid windowtext 1.0pt; border-top:none;padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="85"> </td> <td style="width:.75in;border-top:none; border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="72"> </td> </tr> <tr style="mso-yfti-irow:5;height:15.0pt"> <td style="width:63.65pt;border:solid windowtext 1.0pt; border-top:none;padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="85"> </td> <td style="width:.75in;border-top:none; border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="72"> </td> </tr> <tr style="mso-yfti-irow:6;mso-yfti-lastrow:yes;height:15.0pt"> <td style="width:63.65pt;border:solid windowtext 1.0pt; border-top:none;padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="85"> </td> <td style="width:.75in;border-top:none; border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="72"> </td> </tr> </tbody></table>
And I need to rearrange it to list by unique parent ID, preserving student info, in the end, like this:
<table class="MsoNormalTable" style="width:117.65pt;margin-left:-1.05pt;border-collapse:collapse;mso-yfti-tbllook: 1184;mso-padding-alt:0in 0in 0in 0in" border="0" cellpadding="0" cellspacing="0" width="157"> <tbody><tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;height:15.0pt"> <td style="width:63.65pt;border:solid windowtext 1.0pt; padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="85"> Parent ID
</td> <td style="width:.75in;border:solid windowtext 1.0pt; border-left:none;padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="72"> Student ID
</td> </tr> <tr style="mso-yfti-irow:1;height:15.0pt"> <td style="width:63.65pt;border:solid windowtext 1.0pt; border-top:none;padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="85"> </td> <td style="width:.75in;border-top:none; border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="72"> 1, 2
</td> </tr> <tr style="mso-yfti-irow:2;height:15.0pt"> <td style="width:63.65pt;border:solid windowtext 1.0pt; border-top:none;padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="85"> </td> <td style="width:.75in;border-top:none; border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="72"> </td> </tr> <tr style="mso-yfti-irow:3;mso-yfti-lastrow:yes;height:15.0pt"> <td style="width:63.65pt;border:solid windowtext 1.0pt; border-top:none;padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="85"> </td> <td style="width:.75in;border-top:none; border-left:none;border-bottom:solid windowtext 1.0pt;border-right:solid windowtext 1.0pt; padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="72"> 4, 5, 6
</td> </tr> </tbody></table>
Any idea how this can be done?
I have data by unique student ID that includes parent ID, let’s say like this:
<table class="MsoNormalTable" style="width:117.65pt;margin-left:-1.05pt;border-collapse:collapse;mso-yfti-tbllook: 1184;mso-padding-alt:0in 0in 0in 0in" border="0" cellpadding="0" cellspacing="0" width="157"> <tbody><tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;height:15.0pt"> <td style="width:63.65pt;border:solid windowtext 1.0pt; padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="85">
Student ID
Parent ID
1
11
2
11
3
12
4
13
5
13
6
13
And I need to rearrange it to list by unique parent ID, preserving student info, in the end, like this:
<table class="MsoNormalTable" style="width:117.65pt;margin-left:-1.05pt;border-collapse:collapse;mso-yfti-tbllook: 1184;mso-padding-alt:0in 0in 0in 0in" border="0" cellpadding="0" cellspacing="0" width="157"> <tbody><tr style="mso-yfti-irow:0;mso-yfti-firstrow:yes;height:15.0pt"> <td style="width:63.65pt;border:solid windowtext 1.0pt; padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="85"> Parent ID
</td> <td style="width:.75in;border:solid windowtext 1.0pt; border-left:none;padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="72"> Student ID
</td> </tr> <tr style="mso-yfti-irow:1;height:15.0pt"> <td style="width:63.65pt;border:solid windowtext 1.0pt; border-top:none;padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="85">
11
</td> </tr> <tr style="mso-yfti-irow:2;height:15.0pt"> <td style="width:63.65pt;border:solid windowtext 1.0pt; border-top:none;padding:0in 5.4pt 0in 5.4pt;height:15.0pt" nowrap="nowrap" valign="bottom" width="85">
12
3
13
</td> </tr> </tbody></table>
Any idea how this can be done?