Trying to rank data based on a % to last years sales. The formula I am using here is =IFERROR((IF(AND(F4=0,E4>0),E4/100,IF(AND(F4<0,E4>0),SUM(E4,ABS(F4))/100,(E4-F4)/F4))),"-"). Certain instances have 0 is both columns resulting in the "-".
EX here :
I am then taking the above data and attempting to rank however it will not rank the cell that comes back with "-". Noting here that no matter what I have changed it to I cannot get my ranking formula to rank this. It keeps returning a #value! error. Using this formula =RANK(G4,$G$4:$G$15,0)+COUNTIF($G$4:G4,G4)-1
Let me know if more data is needed to support.
EX here :
Sales (column E) | LY Sales (column F) | % to LY (column G) |
0 | 410 | -100% |
0 | 0 | - |
I am then taking the above data and attempting to rank however it will not rank the cell that comes back with "-". Noting here that no matter what I have changed it to I cannot get my ranking formula to rank this. It keeps returning a #value! error. Using this formula =RANK(G4,$G$4:$G$15,0)+COUNTIF($G$4:G4,G4)-1
Let me know if more data is needed to support.