I have a column that can hold 25 numbers. If there are less than 25, the balance are zeros. I want to rank the numbers, not the zeros, even if there are duplicates. Does any one know how? If I could only combine the two formulas below.
This formula works well to rank the numbers greater than zero, but gives the same rank to duplicate numbers. =IF(W7<0, RANK(W7,$W$7:$W$31)-COUNTIF($W$7:$W$31,0), IF(W7=0,"", RANK(W7,$W$7:$W$31)))
This formula ranks every number, even duplicates, but always includes the zeros {=SUM(1*(R7>$R$7:$R$31))+1+IF(ROW(R7)-ROW($R$7)=0,0,SUM(1*(R7=OFFSET($R$7,0,0,INDEX(ROW(R7)-ROW($R$7)+1,1)-1,1))))}
Bookmarks