Using Sumproduct Unable to remove duplicate ranking

yaetis

New Member
Joined
Jun 1, 2015
Messages
2
A
Manager
B
Employee
C
Salary
D
Comparative Ranking
JohnEmployee 1100002
JohnEmployee 2100002
RobEmployee 3350001
RobEmployee 103
RobEmployee 203
SmithEmployee 1600021
SmithEmployee 3500002
SmithEmployee 203

<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.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
d2 =COUNTIFS($A$2:$A$9,A2,$C$2:$C$9,">"&C2)+COUNTIFS(A$2:A2,A2,C$2:C2,C2)

ManagerEmployeeSalaryComparative Ranking
JohnEmployee 1100001
JohnEmployee 2100002
RobEmployee 3350001
RobEmployee 102
RobEmployee 203
SmithEmployee 1600021
SmithEmployee 3500002
SmithEmployee 203

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
d2 =COUNTIFS($A$2:$A$9,A2,$C$2:$C$9,">"&C2)+COUNTIFS(A$2:A2,A2,C$2:C2,C2)

ManagerEmployeeSalaryComparative Ranking
JohnEmployee 1100001
JohnEmployee 2100002
RobEmployee 3350001
RobEmployee 102
RobEmployee 203
SmithEmployee 1600021
SmithEmployee 3500002
SmithEmployee 203

<tbody>
</tbody>

Works like a Charms, I was so dumbStuck with Sumproduct , totally ignored the awesomeness of Countif..
Thanks a lot !
 
Upvote 0

Forum statistics

Threads
1,207,011
Messages
6,076,145
Members
446,187
Latest member
LMill

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top