![]() |
Not ranking 0's
I am trying to rank a string of 5 numbers giving each rank a score depending
on their effort. The problem I have is that some efforts have a 0, yet the rank function still gives them a value of at least 1. Example Alpha 5 Bravo 0 Charlie 4 Delta 1 Echo 3 The result would be: Alpha - rank 1 Charlie - rank 2 Echo - rank 3 Delta - rank 4 Bravo - rank 5 How can I tell the command to, if it sees a 0, award it a 0 ranking? |
Not ranking 0's
Darren,
Try this and drag down =IF(B1=0,0,SUMPRODUCT(1-($B$1:$B$5=0),--(B1 < $B$1:$B$5))+1) -- Mike When competing hypotheses are otherwise equal, adopt the hypothesis that introduces the fewest assumptions while still sufficiently answering the question. "Darren" wrote: I am trying to rank a string of 5 numbers giving each rank a score depending on their effort. The problem I have is that some efforts have a 0, yet the rank function still gives them a value of at least 1. Example Alpha 5 Bravo 0 Charlie 4 Delta 1 Echo 3 The result would be: Alpha - rank 1 Charlie - rank 2 Echo - rank 3 Delta - rank 4 Bravo - rank 5 How can I tell the command to, if it sees a 0, award it a 0 ranking? |
All times are GMT +1. The time now is 06:12 PM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com