Excel formula to rank based on multiple criteria

adit_787

New Member
Joined
Nov 5, 2015
Messages
3
Hey,

Please help, a little urgent!

Need a way to rank a table based on multiple criteria. This is what the table looks like

ApptScheduleTime lapsedUrgent1urgent2rank
10
11/1/2015 21:00

<tbody>
</tbody>
724
1611/1/2015 23:0070Y3
2111/2/2015 04:00
65Y1
2511/2/2015 15:00545
3011/3/2015 00:0045Y2
3111/3/2015 06:0039Y6
3511/3/2015 12:00337

<tbody>
</tbody>

Trying to create a list of what should be prioritized first. The idea of ranking is anything that is Urgent 1 should be ranked first, depending on largest time lapsed, after which, anything with urgent 2 should get prioritized only if greater than 48 (time lapsed), after which the oldest should get ranked first.

I know a little complicated, trying to figure out for a couple days now and hitting deadline, any help appreciated!!!

Thanks in advance guys
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Rearange the data like shown in the data under Original.

After that just sort on urgent, and second on time (from great to small).



Book1
ABCD
1ApptScheduleTime lapsedUrgent
22111-2-2015 04:0065Urgent1
33011-3-2015 00:0045Urgent1
41611-1-2015 23:0070urgent2
53111-3-2015 06:0039urgent2
61011-1-2015 21:0072
72511-2-2015 15:0054
83511-3-2015 12:0033
9
10Original
11ApptScheduleTime lapsedUrgent
121011-1-2015 21:0072
131611-1-2015 23:0070urgent2
142111-2-2015 04:0065Urgent1
152511-2-2015 15:0054
163011-3-2015 00:0045Urgent1
173111-3-2015 06:0039urgent2
183511-3-2015 12:0033
Blad18
 
Upvote 0
Hey,

Thanks a lot! That solves all of the problems, except for 1

Urgent 2 has to be prioritized over non urgent, only if the time lapsed is greater than 48. Any ideas?
 
Upvote 0
with a helpcolumn.


Book1
ABCDE
43ApptScheduleTime lapsedUrgenthelpcolumn
442111-2-2015 04:0065Urgent1Urgent1
453011-3-2015 00:0045Urgent1Urgent1
461611-1-2015 23:0070urgent2urgent2
471011-1-2015 21:0072urgent3
482511-2-2015 15:0054urgent3
493111-3-2015 06:0039urgent2urgent3
503511-3-2015 12:0033urgent3
51
52Original
53ApptScheduleTime lapsedUrgenthelpcolumn
541011-1-2015 21:0072urgent3
551611-1-2015 23:0070urgent2urgent2
562111-2-2015 04:0065Urgent1Urgent1
572511-2-2015 15:0054urgent3
583011-3-2015 00:0045Urgent1Urgent1
593111-3-2015 06:0039urgent2urgent3
603511-3-2015 12:0033urgent3
Blad18
Cell Formulas
RangeFormula
E44=IF(D44="","urgent3",IF(AND(D44="urgent2",C44<48),"urgent3",D44))
E54=IF(D54="","urgent3",IF(AND(D54="urgent2",C54<48),"urgent3",D54))
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,217
Members
449,074
Latest member
cancansova

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