Ranking

andrei461

New Member
Joined
Sep 26, 2020
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
I need help to calculate ranking on the basis of criteria. Col. A has list of item Col. B has price for each item Col. C categorized each item as "urgent" & "Not Urgent". In col. D there is a date for each item. In col. E, i want to rank all "urgent" item on the basis of there Price and on the basis of the date in col.D which should be less than H2.
If the item has same price & is "urgent" then same rank should be given and also the ranking should be on continuous basis i.e., something like 1,2,2,3,4,5, and so on.
Kindly help to derive an excel formula for the same.

i am using the formula as shown in the pic, However this takes the account of both "Urgent" & "Non Urgent" and also i am not able to think how bring the date criteria in it.

I hope you guys understood. My english is bad its not my first language
smile.gif
thanks for the help in advance
 

Attachments

  • Portal.jpg
    Portal.jpg
    175.9 KB · Views: 12
Last edited by a moderator:

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Do you mean like this?

Book1 (version 1).xlsb
ABCDEFGH
112-04-2020
2
3ItemPriceCategoryDateRank
4CTR_013.5Urgent04-04-20206
5CTR_023.2Not Urgent05-04-2020 
6CTR_033.44Not Urgent06-04-2020 
7CTR_043Urgent06-04-20202
8CTR_052.1Urgent08-04-20201
9CTR_063.4Urgent09-04-20205
10CTR_073.2Urgent06-04-20204
11CTR_083.44Urgent11-05-2020 
12CTR_093Not Urgent12-04-2020 
13CTR_102.1Not Urgent06-04-2020 
14CTR_113.4Not Urgent14-05-2020 
15CTR_123.2Not Urgent15-04-2020 
16CTR_133.44Not Urgent16-04-2020 
17CTR_143Not Urgent17-04-2020 
18CTR_152.1Not Urgent18-04-2020 
19CTR_163.4Not Urgent19-04-2020 
20CTR_173.2Urgent20-04-2020 
21CTR_183.44Urgent21-04-2020 
22CTR_193Urgent06-04-20202
23CTR_202.1Urgent23-04-2020 
Sheet16
Cell Formulas
RangeFormula
E4:E23E4=IF(AND(C4="Urgent",D4<=$H$1),SUMPRODUCT(--($B$4:$B$23<B4),--($C$4:$C$23="Urgent"),--($D$4:$D$23<=$H$1))+1,"")
 
Upvote 0
yeah eric something like this but the ranking is needed to be in series. like as in your case 3 is missing. i have found a solution though

=IF((C5="Urgent")*(D5>=H$2),MAX(1,SUM(FREQUENCY(IF((C$4:C$23="Urgent")*(D$4:D$23>$H$2)*(B$4:B$23>B5),B$4:B$23),B5))),"")

That formula solved my issue.

Thanks for your response
 
Upvote 0

Forum statistics

Threads
1,214,846
Messages
6,121,905
Members
449,054
Latest member
luca142

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