Hi,
I have been using the following formula to rank successfully =SUMPRODUCT(($A$2:$A$26=$A2)*($C2>$C$2:$C$26))+1 however I would like to only rank numbers above 0.
I have provided a small sample of what result I have been getting with the above formula and in column C, Column D shows the rank result I would like to achieve.
Any help would be greatly appreciated.
Thanks
[TABLE="width: 331"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]Group[/TD]
[TD] Sales[/TD]
[TD]Current Rank[/TD]
[TD]Desired Rank[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD] $ 30.00[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD] $ 20.00[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD] $ -[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD] $ 50.00[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]202[/TD]
[TD] $ 10.00[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]202[/TD]
[TD] $ 10.00[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]202[/TD]
[TD] $ -[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]202[/TD]
[TD] $ 30.00[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]202[/TD]
[TD] $ 40.00[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]202[/TD]
[TD] $ 50.00[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]404[/TD]
[TD] $ 10.00[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]404[/TD]
[TD] $ 20.00[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]404[/TD]
[TD] $ 30.00[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]404[/TD]
[TD] $ 40.00[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]404[/TD]
[TD="align: center"] FALSE[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]404[/TD]
[TD] $ -[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
</tbody>[/TABLE]
I have been using the following formula to rank successfully =SUMPRODUCT(($A$2:$A$26=$A2)*($C2>$C$2:$C$26))+1 however I would like to only rank numbers above 0.
I have provided a small sample of what result I have been getting with the above formula and in column C, Column D shows the rank result I would like to achieve.
Any help would be greatly appreciated.
Thanks
[TABLE="width: 331"]
<tbody>[TR]
[TD]A[/TD]
[TD]B[/TD]
[TD]C[/TD]
[TD]D[/TD]
[/TR]
[TR]
[TD]Group[/TD]
[TD] Sales[/TD]
[TD]Current Rank[/TD]
[TD]Desired Rank[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD] $ 30.00[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD] $ 20.00[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD] $ -[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]101[/TD]
[TD] $ 50.00[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]202[/TD]
[TD] $ 10.00[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]202[/TD]
[TD] $ 10.00[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]202[/TD]
[TD] $ -[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]202[/TD]
[TD] $ 30.00[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]202[/TD]
[TD] $ 40.00[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]202[/TD]
[TD] $ 50.00[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD]404[/TD]
[TD] $ 10.00[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]1[/TD]
[/TR]
[TR]
[TD]404[/TD]
[TD] $ 20.00[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]404[/TD]
[TD] $ 30.00[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]3[/TD]
[/TR]
[TR]
[TD]404[/TD]
[TD] $ 40.00[/TD]
[TD="align: right"]5[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]404[/TD]
[TD="align: center"] FALSE[/TD]
[TD="align: right"]6[/TD]
[TD="align: right"]0[/TD]
[/TR]
[TR]
[TD]404[/TD]
[TD] $ -[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]0[/TD]
[/TR]
</tbody>[/TABLE]