Tie Breaker

Johnmus

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

I am using the following formula to rank within different categories in Column A (MSMI is one of four). This works great except when there is a tie it shows duplicate ranks. Is there anyway to add a tie-breaker to this formula?

Code:
=IF(A4="MSMI",SUMPRODUCT((A$4:A$75="MSMI")*(I$4:I$75>I4)/COUNTIFS(A$4:A$75,A$4:A$75&"",I$4:I$75,I$4:I$75&""))+1,"")

Any help is appreciated.

John
 

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'm not sure exactly what the output is going to look like here in terms of whether the rankings are integers, but if you were to replace the +1 in your expression with RAND()(or 1+RAND()or whatever).

This will add a random number on top of the calculation you're performing on each MSMI member. Thus, even if the value of the calculation is identical, the ranking will be different(because a random number is added on top of this). however, this may not be what you want - rankings won't be integers any more.

Cheers, :)
 
Upvote 0
Welcome to the MrExcel board!

Is this what you mean? This is just an artificial tie-breaker. Or did you intend using data in another column to break any ties?

Excel Workbook
ABCDEFGHIJ
4MSMI62
5abc6
6MSMI81
7MSMI45
8MSMI63
9abc3
10abc2
11MSMI64
12MSMI36
13
Rank
 
Upvote 0
Thank you both for the help. Yes, indeed I wish to break the tie with data in column D. Sorry I did not mention that. The artificial tie breaker will work but will not justify the reason for breaking the tie.
 
Upvote 0
Yes, indeed I wish to break the tie with data in column D.
Then perhaps you could give some indication of the sort of data in column D and how it would break a tie? Is is alphabetic with key letters/words deciding the rank or is it numeric with higher values (or lower?) resulting in a higher overall rank?

Unless you tell us clearly, all we can do is guess (and that didn't work for me the first time ;) )
 
Upvote 0
Sorry for not being more explicit. The data in column D is numeric - scores for competitions - the higher score in column D will break the tie.

Thanks again!

John
 
Upvote 0
Rather than using your framework, I came up with my own here that I think should do what you want:

=IF(A4="MSMI",RANK(I4,$I$4:$I$75,1)+(RANK(D4,$D$4:$D$75,1)/100),0)

This line assigns a rank in ascending order for each MSMI member composed of the actual rank in terms of I values plus 1/100 of the rank in terms of the D values(this amount is simply to break any ties).

=IF(A4="MSMI",RANK(Q4,$Q4:$Q$75,0),"") ( above formula placed in cell Q in this example).

This ranks in descending order the numbers created in the previous cell. This should give you a listing with the highest value in I listed as 1 with any ties broken. Obviously, it will not work if you two records have identical I and D values(that will still give you a tie).

Cheers, :)
 
Last edited:
Upvote 0
I think you could use a simpler formula in your helper column. (What you need to divide by in the helper column depends on the type of numbers you have in columns I and D.)

Excel Workbook
ADIJQ
4MSMI3636.003
5abc76
6MSMI2818.002
7MSMI3454.003
8MSMI4626.004
9abc83
10abc12
11MSMI3636.003
12MSMI8363.008
13
Rank
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,462
Members
452,915
Latest member
hannnahheileen

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