Ranking with a difference

Mel Smith

Well-known Member
Joined
Dec 13, 2005
Messages
1,023
Office Version
  1. 365
Platform
  1. Windows
I am trying to write a formula that will help me to identify the "best" result and any help will be most appreciated.
Given the following sample data, the result I am trying to achieve is:

6\63, 4\41, 6\54, 4\34, 5\46 The "best" is 6\54 (to rank them would achieve: 6\54, 6\63, 5\46, 4\34, 4\41)

In other words, the first number if highest is the best, if there are two or more 'first numbers' the same, then the deciding factor if the lowest second number.

Mel
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
If they will always be 1 number\2numbers, try
+Fluff v2.xlsm
FG
1
26/636/54
34/416/63
46/545/46
54/344/34
65/464/41
Main
Cell Formulas
RangeFormula
G2:G6G2=SORTBY(F2:F6,LEFT(F2:F6)+0,-1,RIGHT(F2:F6,2)+0,1)
Dynamic array formulas.
 
Upvote 0
=SORTBY(F2:F6,LEFT(F2:F6)+0,-1,RIGHT(F2:F6,2)+0,1)
Hi Fluff,

I put this formula into my spreadsheet: =SORTBY(D46:D53,LEFT(D49:D53)+0,-1,RIGHT(D49:D53,2)+0,1) and the result was #Value!

Have I missed something?
 
Upvote 0
Hi Fluff,

Finger trouble at my end. It works perfectly, of course!
Many thanks.
Mel
 
Upvote 0
Hi Fluff,

A followup question, if I may. How would I achieve the same result if the range was not contiguous? e.g. sample data in, say, G52, J47 and K25
Mel
 
Upvote 0
I've no idea I'm afraid.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,731
Members
448,987
Latest member
marion_davis

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