Priortisation, without skipping ranks

surkdidat

Well-known Member
Joined
Oct 1, 2011
Messages
582
Office Version
  1. 365
I have the following formula, which is ranking items correctly. However, if more than 1 item has the same score, then it will "skip" a rank.
FOr example, if I have scores of 20, 19, 18, 18, 17 it would score as follows

1st 20
2nd 19
3rd 18, 18
5th 17

What I need (ideally) is to have it that as in the above example 17 would be 4th (the 18s still at 3rd, 19 still ranked second etc)

VBA Code:
=IF(AK2="","",IF(K2="PIPELINE",COUNTIFS($H$2:$H$749,H2,$AK$2:$AK$749,">"&AK2)+1,""))))

AK is the score column
K is the status column
H is a specific department
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Not quite following your setup.

But with scores in A2:A7: =RANK(A2,$A$2:$A$7)+COUNTIF(A$2:A2,A2)-1 copied down to get the rank
 
Upvote 0
Hi there, apologies that has not quite done what I need - I have put a table below, hopefully to clarify: :)

VBA Code:
=IF(AK2="","",IF(K2="PIPELINE",COUNTIFS($H$2:$H$749,H2,$AK$2:$AK$749,">"&AK2)+1,""))))

COLUMN C -
(Priority)
COLUMN H -
(Development Area)
COLUMN AK -
(Priority Score)
CURRENT FORMULAREQUIRED SOLUTION
(Formula will go here)AAA2011Currently, correctly looking up the department (AAA) - Correct Position
AAA2011Currently, correctly looking up the department (AAA) - Correct Position
BBB2111Correct
BBB2022Correct
CCC1011Correct
AAA1932Currently, correctly looking up the department (AAA) - Ranking 3rd, needs to be ranked 2nd in Dept AAA, as score is 2nd lowest.


Not quite following your setup.

But with scores in A2:A7: =RANK(A2,$A$2:$A$7)+COUNTIF(A$2:A2,A2)-1 copied down to get the rank
 
Upvote 0

Forum statistics

Threads
1,215,011
Messages
6,122,677
Members
449,092
Latest member
tayo4dgacorbanget

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