Ranking without Duplicates

Gol4Q

New Member
Joined
Mar 11, 2016
Messages
4
I have found within this website/forum the formula of RANK and COUNTIF... for some reason, it keeps returning problems. See below - any help greatly appreciated: (starts at E26)

RANKINGS -
COL E F G
Team 114.006.00
Team 214.801.00
Team 314.204.00
Team 414.105.00
Team 514.703.00
Team 614.803.00

<colgroup><col><col><col></colgroup><tbody>
</tbody>

Formula for Column G for team 4 is: =RANK(F29,$F$26:$F$31,0)+COUNTIF($F$26:F29,F29)-1
Formula for Column G for team 5 is: =RANK(F30,$F$26:$F$31,0)+COUNTIF($F$26:F30,F30)-1
Formula for Column G for team 6 is: =RANK(F31,$F$26:$F$31,0)+COUNTIF($F$26:F31,F31)-1

Team 5 and 6 repeat their RANK in column G, and I can't figure out why... other renditions of the formula spit out a number outside of the range (if only 6 numbers, one will show a rank of "7")

Struggle is real - thanks for any help
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Do you start in G26 with the ranking? This is the result I get


Excel 2007
EFG
26Team 1146
27Team 214.81
28Team 314.24
29Team 414.15
30Team 514.73
31Team 614.82
Sheet4
Cell Formulas
RangeFormula
G26=RANK(F26, $F$26:$F$31)+COUNTIF($F$26:F26, F26)-1
G27=RANK(F27, $F$26:$F$31)+COUNTIF($F$26:F27, F27)-1
G28=RANK(F28, $F$26:$F$31)+COUNTIF($F$26:F28, F28)-1
G29=RANK(F29, $F$26:$F$31)+COUNTIF($F$26:F29, F29)-1
G30=RANK(F30, $F$26:$F$31)+COUNTIF($F$26:F30, F30)-1
G31=RANK(F31, $F$26:$F$31)+COUNTIF($F$26:F31, F31)-1
 
Upvote 0
My excel must be acting wrong - because with your formulas detailed above - mine shows team 5 and team 6 with a ranking of 3...
 
Upvote 0
Hi Gol4Q

Forgot to welcome you to the board in my first post - Welcome to MrExcel :D

That does seem odd, is there anything else acting on the sheet. Try highlighting the cells with the rank and checking the cell formats (Ctrl+F1). I can't imagine it'd be VBA as this would result in the rank being a straight up value. Check calculation isn't set to manual, press F9 and see if the result changes if it does then open up Excel options, go to formulas and change it from manual to automatic.

HTH

Dave
 
Upvote 0
still not working - having other issues. Wish I could attached a document for your review...

Ugh
 
Upvote 0
You can upload your file to one of the many file hosting sites and post a link to it.
 
Upvote 0
Hi,

Your F Column values, are they results of formula(s), if so, can you show the formula?, or may be wrap it with the ROUND function like: =ROUND(your formula,2)
 
Upvote 0
That did it - awesome! Thank you - if you have time, when you have time - so I can learn... why did that work? The "F" column was simply a formula --> =J7 --> and so on, taking on a sum function from other cell.

Thanks
 
Upvote 0
That did it - awesome! Thank you - if you have time, when you have time - so I can learn... why did that work? The "F" column was simply a formula --> =J7 --> and so on, taking on a sum function from other cell.

Thanks

You're welcome, welcome to the forum.

Without "seeing" your data...if your F column values are taken from another cell (e.g. corresponding J column cells) which are the results of a formula(s)...if you check those cells' value by cell formatting and expanding the decimal places beyond 2 to whatever (e.g. 10), you'll probably see that 14.7 may actually be 14.7443388984 or your 14.8 may actually be 14.7444522118, and thou I'm not certain of the EXACT number of digits Excel uses to calculate, I believe it's up to 15 decimal places, which as you can see may throw off your results. By wrapping the formula with the ROUND function to limit the value to 2 decimal places, Excel will calculate ONLY up to 2 decimal places, bypassing the possible error mentioned above.

More on the ROUND function: https://support.office.com/en-us/article/ROUND-function-c018c5d8-40fb-4053-90b1-b3e7f61a213c
 
Upvote 0

Forum statistics

Threads
1,215,995
Messages
6,128,180
Members
449,430
Latest member
sadielynn7

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