RANK function with exception

cristian26

New Member
Joined
May 24, 2016
Messages
2
Hello,

I have encountered a problem and I cannot find a solution to it. My Excel knowledge is good but it lacks certain areas.
I have a list of people and their scores. I need to order them in descending order. Everything is basic so far. My issue is as follows:

The requirement is that if any of the scores is "0", then the person/people scoring "0" must be ranked first. This is for a cards game similar to WHIST, in which the winner is determined either by the highest score or by the score of "0".

Could anyone please help me
 

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.
This will need a bit a testing but it seems to work to rank numbers in B2:B10.

=SUMPRODUCT(--(IF(B2=0,9.99E+307,B2) < B$2:B$10))+IF(B2 < > 0,COUNTIF($B$2:$B$10,0))+1
 
Last edited:
Upvote 0
Which cells have your people and your scores? Those cells are what the formula needs to be applied to.
 
Upvote 0
That wouldn't work with ties of 0, assuming that's possible of course.
 
Upvote 0

Forum statistics

Threads
1,215,923
Messages
6,127,717
Members
449,399
Latest member
VEVE4014

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