Sorting two rows as a group

Johnmus

Board Regular
Joined
Jun 18, 2011
Messages
138
Hi All,

I have created a band competition recap which list schools and their scores. The groups are entered based on performance time, then ranked within their class. I want to sort the groups by "place" located in column AX. The problem is that I have another row underneath the row with scores that includes rankings (ordinals) for each sub caption listed in the row above. So I need to keep the two rows together for sorting purposes. See truncated sample below.

Row # School Name ....Scores for sub captions ..........................................................Total ......Place (Col AX)
[TABLE="class: grid, width: 700"]
<tbody>[TR]
[TD]5[/TD]
[TD]School 1[/TD]
[TD]98[/TD]
[TD]88[/TD]
[TD]77[/TD]
[TD]55[/TD]
[TD]66[/TD]
[TD]77[/TD]
[TD]44[/TD]
[TD]88[/TD]
[TD]67[/TD]
[TD]88[/TD]
[TD]67.8[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]6[/TD]
[TD]Ordinals[/TD]
[TD] 1[/TD]
[TD] 2[/TD]
[TD] 3[/TD]
[TD] 6[/TD]
[TD] 5[/TD]
[TD] 2[/TD]
[TD] 4[/TD]
[TD] 1[/TD]
[TD] 3[/TD]
[TD] 1[/TD]
[TD] 3[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]7[/TD]
[TD]School 2[/TD]
[TD]99[/TD]
[TD]92[/TD]
[TD]81[/TD]
[TD]75[/TD]
[TD]71[/TD]
[TD]88[/TD]
[TD]69[/TD]
[TD]90[/TD]
[TD]81[/TD]
[TD]89[/TD]
[TD]83.5[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]8[/TD]
[TD]Ordinals[/TD]
[TD] 1[/TD]
[TD] 1[/TD]
[TD] 2[/TD]
[TD] 3[/TD]
[TD] 3[/TD]
[TD] 1[/TD]
[TD] 2[/TD]
[TD] 1[/TD]
[TD] 2[/TD]
[TD] 1[/TD]
[TD] 2[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]


Is that even possible?

Thanks for any suggestions!
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
You could use a helper column.
in AY2 put =IF(AX2<>"",AX2,AY1+0.5) & fill down
Then you can sort on column AY

HTH
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0
Try
=IF(AX2<>"",AX2,AY1+0.05)+(COUNTIF(AX$2:AX2,AX2)/10)
 
Upvote 0
Glad to help & thanks for the feedback
 
Upvote 0

Forum statistics

Threads
1,223,886
Messages
6,175,196
Members
452,616
Latest member
intern444

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