Rank using Multiple Columns

Hliboi

New Member
Joined
May 19, 2011
Messages
9
I'm facing a issue with ranking in Excel particularly in regards to tie breaking.
I tried several options but i guess they don't fit my issue. Its quite simple really, I'll explain:

The demo data:



row1abcdefghij
row212345678910
row3
row48783749569907307485
row51211219612112112112183121121

<tbody>
</tbody>


As you can see its easy for me to rank the first line (I'm working in columns instead of rows for the data). When i do a Rank Function gives the following result:

klmnopqrst
row435619281064
row511911111011

<tbody>
</tbody>


Which is correct. The problem arises in the second line (row 5). There are ties because all of them reach the maximum of 121.

<code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; white-space: inherit;">
</code>What i would like to do is take the second row (row 2)as a tie breaker- It could also be alphabetic by replacing the numbers with letters:

row2abcdefghij

<tbody>
</tbody>


So even if there is a tie in row 5 it could untie or break the tie giving precedente to the number or letter in row 2. Thus row 2 will eliminate all possible ties giving the the following ranking to row 5:

row512934561079

<tbody>
</tbody>
<code style="margin: 0px; padding: 0px; border: 0px; font-family: Consolas, Menlo, Monaco, "Lucida Console", "Liberation Mono", "DejaVu Sans Mono", "Bitstream Vera Sans Mono", "Courier New", monospace, sans-serif; white-space: inherit;">

</code>How could one achieve this result?


Thank You very much in advance.
 

Excel Facts

VLOOKUP to Left?
Use =VLOOKUP(A2,CHOOSE({1,2},$Z$1:$Z$99,$Y$1:$Y$99),2,False) to lookup Y values to left of Z values.
I think one simple way to achieve your objective is to add or (subtract in your case) a fractional amount to each figure in your Row5, thereby altering the ties so that they are no longer identical. Then you would rank all the new figures.

The trick in this approach is to pick a fraction that is not an entire significant digit greater or lesser than the figure. To clarify, if you had a collection of 121s and you subtracted 10% of the figures in Row 2, you'd get a collection of 120s plus varying amounts. A problem arises when you get to the 10th item, where you'd end up subtraction 10% of 10 = 1 from the figure, giving you 120 and there might be other 120s that weren't tied prior to the amendment. So pick a number where that won't happen, like 1%; if you have less than 100 figures, chose 100 as the multiplier-divider, whichever may be the case. You can keep on using other multipliers-dividers for additional levels of tie-breaking, like you would need to in sports standings where Points ties are broken by using Goal Differential, and then by Home Wins, then by Total Goals, then by.... You get the point.

Copy the B formulas right-wards.

Vis:
ABCDEFGHIJK
1tie-breaker12345678910
2multiplier-divider1%
3
4height8783749569907307485
5width1211219612112112112183121121
6
7width rank (ties)35619281064
8height rank (ties)11911111011
9
10width (appended)86.9982.9873.9794.9668.9589.9472.93-0.0873.9184.90
11height rank (appended)120.99120.9895.97120.96120.95120.94120.9382.92120.91120.90
12
13width rank (tie-broken)35619281074
14height rank (tie-broken)12934561078

<tbody>
</tbody>
Sheet20

Worksheet Formulas
CellFormula
B7=RANK.EQ(B4,$B$4:$K$4)
B8=RANK.EQ(B5,$B$5:$K$5)
B10=B4-B$1*$B$2
B11=B5-B$1*$B$2
B13=RANK.EQ(B10,$B10:$K10)
B14=RANK.EQ(B11,$B11:$K11)

<tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
Thank you so much! It worked great! That's also a very cool lesson I learned!
Thanks again and all the best!
 
Upvote 0

Forum statistics

Threads
1,215,455
Messages
6,124,937
Members
449,195
Latest member
Stevenciu

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