Ranking by multiple criteria

JPEliz_Sx

New Member
Joined
Oct 29, 2021
Messages
7
Office Version
  1. 2019
Platform
  1. Windows
Hello. I could use some help with a small work project.

I have a set of data and need to determine the rank of each "application" (1 - 22) based on several sets of criteria. The data set is pictured below

1635530441405.png
1635530397510.png


The ranking of the applications is based on the following levels of criteria. Level 1 takes precedence over level 2 & 3 and so on. A rank of 1 would mean that application had the lowest number S HRS - R HRS that was less than or equal to 20 and if there were two applications with those numbers it would then prioritize by process priority (the higher priority receiving ranking 1).

Level 1: S HRS - R HRS <= 20 by process priority
Level 2: PH HRS <= 12 by process priority
Level 3: by process priority based on R HRS high to low

Any help would be greatly appreciated. Please feel free to ask questions if I need to clarify. Thank you.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Welcome to the MrExcel forum!

I still have some questions, but here's a stab at it:

Book1
ABCDEFGHI
1ApplicationPH HRSR HRSS HRSProcessRankPriorityProcess
2114502361011221D1001
32121042361011921133
431241709371631724
5412151170937441178
65122362361011251011
7612542368651761119
87121622361011971730
9811140245172478937
10912118236101199865
1110121726411788
121113169250117821
131211165230111914
1413115426411336
15141229250D10015
1615128230111914
17161224524517241
18171213723686517
191812623610119
2019122323686517
21201223623610112
22211218623610119
23221212223686517
Sheet5
Cell Formulas
RangeFormula
F2:F23F2=MATCH(IF(D2-C2<=20,10,IF(B2<=12,20,30+(1-C2/1000)))+MATCH(E2,$I$2:$I$10,0),SORT(IF(D$2:D$23-C$2:C$23<=20,10,IF(B$2:B$23<=12,20,30+(1-C$2:C$23/1000)))+MATCH(E$2:E$23,$I$2:$I$10,0)),0)


It would help if you could give the expected results, or explain if some of the values don't match your expectation. This formula will work in 365, but not 2019.
 
Upvote 0
Solution
Thank you very much for your reply. After reviewing the results I have realized I made several mistakes in my request :/. Please forgive me I will repost here. If you don't mind, and have the time to update the formula it would be greatly appreciated.


Hi all! First post. New to the forum. I'm fairly new to excel, maybe 3 - 4 months of studying and creating basic dashboards, etc. After putting in several hours trying to figure this one particular task out I've decided to seek help from an expert.

I have a set of data and need to determine the rank of each "application" (1 - 22) based on several sets of criteria.

The ranking of the applications is based on the following levels of criteria.

Level 1: S HRS - R HRS less than or equal to 20 by process priority (lowest to highest priority: 9 to 1). Explanation: [S HRS ] Minus [R HRS] = X. If X is tied, tie break using Process Priority.

Level 2: R HRS less than or equal to PH HRS by process priority (lowest to highest priority: 9 to 1). Explanation: If [R HRS] is less then or equal to [PH HRS] than rank by process priority.

Level 3: Rank (Group) by process priority (lowest to highest priority: 9 to 1) then within that rank by R HRS (highest to lowest). Explanation: After level 1 & 2 the remaining rankings should be first based on process priority (all priority 9 should be placed before 8, all 8 before 7, and so forth). Within those rankings there may be several priority 9's. These should be ranked from largest R HRS to smallest before moving to priority 8 and so on.

Level 1 takes precedence over level 2 & 3. Level 2 takes precedence over level 3.

Ex. A rank of 1 would mean that application had the lowest number S HRS - R HRS that was less than or equal to 20. If there were two applications that were equal to each other it would then prioritize by process priority (the lower priority receiving ranking 1).

The formula must be able to update as all the criteria values change (application process may change, R HRS, S HRS, etc.). Also if it's not to much to ask an explanation of the formula would be extremely helpful too; I'd love to be able to learn while getting help. Thank you.
 
Upvote 0
Welcome to the MrExcel Message Board!

Cross-posting (posting the same question in more than one forum) is not against our rules, but the method of doing so is covered by #13 of the Forum Rules.

Be sure to follow & read the link at the end of the rule too!

Cross posted at: Ranking by multiple criteria
If you have posted the question at more places, please provide links to those as well.

If you do cross-post in the future and also provide links, then there shouldn’t be a problem.
 
Upvote 0
Hi JPElix_Sx,

I see you marked my answer as a solution. I haven't had a chance to answer your questions from post #3. Here's a quick explanation of how the formula works. I create a number representing the various criteria. The first digit represents your first criteria. If S HRS - R HRS < 20, I assign the first digit to be 3 (30 in the formula), if R HRS <= PH HRS, I assign the first digit to be 2, otherwise, the first digit is 1. The second digit of the number is the process priority, which is the second thing to check in all 3 criteria. Then for Criteria 3, I add a decimal of the R HRS to rank each line item within the process priority. I actually add a decimal of (1-R HRS/1000) to reverse the order. That may be wrong, you may want to remove the 1- from the formula (2 places). Also, if you have more process priorities than 9, you'll need to change the 30 to 300 and 20 to 200 and 10 to 100.

That's basically the whole trick. So the formula calculates that value for the current row, then it calculates that value for all rows, then it sorts the table of all rows, then does a MATCH of the current row within the sorted table, which gives the position (ranking).

Let me know if you have any other questions.
 
Upvote 0
That explains it perfectly Eric W. Thank you very much. Sorry for marking it complete early; I had a message pop up telling me not to forget to mark it complete; I probably misread it.

Either way. Thank you for taking the time to explain this to me. It's greatly appreciated.
 
Upvote 0

Forum statistics

Threads
1,214,591
Messages
6,120,425
Members
448,961
Latest member
nzskater

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