A Manager | B Employee | C Salary | D Comparative Ranking |
John | Employee 1 | 10000 | 2 |
John | Employee 2 | 10000 | 2 |
Rob | Employee 3 | 35000 | 1 |
Rob | Employee 1 | 0 | 3 |
Rob | Employee 2 | 0 | 3 |
Smith | Employee 1 | 60002 | 1 |
Smith | Employee 3 | 50000 | 2 |
Smith | Employee 2 | 0 | 3 |
<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
I want to get a comparative Ranking within each Manager,So for example , I wan to check with John, how his employees are ranked basis on Salary they are getting, For some record the Salary is 0 as well.
For Column D , i have used flat Sumproduct , =SUMPRODUCT(--(A3=$A$3:$A$10),--(C3<=$C$3:$C$10)), but this doesn't take care of Duplicates. I have tried various flavours using , Index as well, But no Luck as well.