RANK(SUMPRODUCT Unique Ranking With Tie Breaker Problem

MrJoshua

New Member
Joined
Jun 29, 2014
Messages
9
Hi there...

I am having a bit of trouble with the formula below which is intended to provide a unique (no duplicates) ranking of Productivity scores (highest to lowest) using another metric as tie breaker as needed (lowest Score is best). The formula is used in cells AM7:AM31 and the tie breaker metric is the rank in cells AW7:AW31. The specific issue is occurring in cells AM17 and AM22, where instead of bumping the rank up by 1 to be 8 and 19 respectively it is bumping the rank up by 2 incorrectly showing 9 and 20 respectively.

=IFERROR(RANK($AL17,$AL$7:$AL$31,0)+SUMPRODUCT(--($AL$7:$AL$31=$AL17),--($AW$7:$AW$31<$AW17)),"")

Below is a sample of the current incorrect outcome as well as the intended correct outcome

I did search through threads, there was lot on Ranking in general...but no this specific problem.

Any suggestion on why this might be happening...?


AM
AN
AO
AP
AQ
AM
AN
AO
AP
AQ
1
2
3
4
5Incorrect OutcomeCorrect Outcome
6EmployeeProductivity Score
Productivity Rank
Handle Time Score
Handle Time Rank
EmployeeProductivity Score
Productivity Rank
Handle Time Score
Handle Time Rank
7Employee 147.22%
17
392.00
13
Employee 147.22%
17
392.00
13
8







9Employee 286.56%
7
268.37
3
Employee 286.56%
7
268.37
3
10Employee 364.92%
15
393.68
14
Employee 364.92%
15
393.68
14
11







12







13Employee 466.89%
13
329.26
8
Employee 466.89%
13
329.26
8
14Employee 5100.33%
4
162.83
1
Employee 5100.33%
4
162.83
1
15Employee 6108.20%
3
298.14
5
Employee 6108.20%
3
298.14
5
16Employee 774.76%
10
389.17
12
Employee 774.76%
10
389.17
12
17Employee 886.56%
9
379.00
11
Employee 886.56%
8
379.00
11
18Employee 980.66%
9
565.81
19
Employee 980.66%
9
565.81
19
19Employee 10110.17%
2
311.21
7
Employee 10110.17%
2
311.21
7
20Employee 1192.47%
6
303.62
6
Employee 1192.47%
6
303.62
6
21Employee 1272.79%
11
345.98
9
Employee 1272.79%
11
345.98
9
22Employee 1331.48%
20
524.59
18
Employee 1331.48%
19
524.59
18
23Employee 1431.48%
18
265.17
2
Employee 1431.48%
18
265.17
2
24Employee 1564.92%
14
360.51
10
Employee 1564.92%
14
360.51
10
25Employee 16153.45%
1
449.52
16
Employee 16153.45%
1
449.52
16
26Employee 1757.05%
16
296.12
4
Employee 1757.05%
16
296.12
4
27Employee 1868.86%
12
460.91
17
Employee 1868.86%
12
460.91
17
28
Employee 1992.47%
5
406.76
15
Employee 1992.47%
5
406.76
15
29








30


31
<colgroup><col width="64" style="width: 48pt;"> <col width="72" style="width: 54pt; mso-width-source: userset; mso-width-alt: 2633;"> <col width="85" style="width: 64pt; mso-width-source: userset; mso-width-alt: 3108;"> <col width="81" style="width: 61pt; mso-width-source: userset; mso-width-alt: 2962;"> <col width="88" style="width: 66pt; mso-width-source: userset; mso-width-alt: 3218;"> <col width="86" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3145;"> <col width="16" style="width: 12pt; mso-width-source: userset; mso-width-alt: 585;"> <col width="72" style="width: 54pt; mso-width-source: userset; mso-width-alt: 2633;"> <col width="85" style="width: 64pt; mso-width-source: userset; mso-width-alt: 3108;"> <col width="81" style="width: 61pt; mso-width-source: userset; mso-width-alt: 2962;"> <col width="88" style="width: 66pt; mso-width-source: userset; mso-width-alt: 3218;"> <col width="86" style="width: 65pt; mso-width-source: userset; mso-width-alt: 3145;"> <tbody> </tbody>
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Did some more digging and looks like the only real solution is to incorporate ROUND...I applied this to the value itself in Column AN going out to 20 decimals so it doesn't actually alter any of the number that can be visually displayed by extending the decimals displayed. This resolved the Ranking issue so AM17 and AM22 n correctly return 8 and 19 respectively. The issue is tied to the IEEE 754 specification. The link below provides a great deal of info on this and specifically recommends using ROUND to address it.

https://support.microsoft.com/en-us...ithmetic-may-give-inaccurate-results-in-excel
 
Last edited:
Upvote 0

Forum statistics

Threads
1,214,391
Messages
6,119,249
Members
448,879
Latest member
oksanana

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