sort help

orsm6

Well-known Member
Joined
Oct 3, 2012
Messages
515
Office Version
  1. 365
Platform
  1. Windows
Hi all - trying to sort the ladder results of a comp i run.

could you please tell me how i can sort range M5:O200.
M - contains player name
N - their win points
O - their % points

I would like to sort it by column N high to low, then column O high to low.

so if 2 players share the same win points, their % points would then need to be highest to lowest..... hope this made sense.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
Have you tried the built-in Custom Sort feature?

1732750169106.png


You can sort by each column in whichever order you choose.

1732750293642.png
 
Upvote 0
A formula will put the output somewhere else but if that is what you want then try:
Excel Formula:
=SORTBY($M$5:$O$100,$N$5:$N$100,-1,$O$5:$O$100,-1)
If you use a table to store the data then you are not dependent on hard coding the data range.

If you can't use a table the below will reduce the amount of maintenance required.
Excel Formula:
=LET(rng,$M$5:$O$200,
     SORTBY(rng,CHOOSECOLS(rng,2),-1,CHOOSECOLS(rng,3),-1))
 
Upvote 0
A formula will put the output somewhere else but if that is what you want then try:
Excel Formula:
=SORTBY($M$5:$O$100,$N$5:$N$100,-1,$O$5:$O$100,-1)
If you use a table to store the data then you are not dependent on hard coding the data range.

If you can't use a table the below will reduce the amount of maintenance required.
Excel Formula:
=LET(rng,$M$5:$O$200,
     SORTBY(rng,CHOOSECOLS(rng,2),-1,CHOOSECOLS(rng,3),-1))
thanks heaps for your help. yeah was aware there would be another ouput, this is OK as the ladder is on another sheet to where the raw data is. I got it going.
 
Upvote 0
Another option would be
Excel Formula:
=SORT(M5:O200,{2,3},-1)
Thank you Fluff - while both work, this would provide an easier solution for some of us who aren't as savvy. :)
 
Upvote 0
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,507
Messages
6,179,176
Members
452,893
Latest member
denay

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