RANK - Negative, then positive ranking

Bigtaff

New Member
Joined
May 8, 2014
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hello Everyone.

I have an Excel sheet where I am trying to rank a job queue. Some of these jobs are late, resulting in a negative number when using critical ratio to calculate the loading pattern. I want to rank these critical ratio scores, ranking the negative number closest to zero (-0.001 as an example) in 1st place going all the way to the lowest (-15 as an example) before it then starts ranking the positive critical ratio scores. All rank scorings should be shown in a positive number way to prevent confusion of which job to be loaded next. So, as an example, see the list of numbers below and how I would like to see them ranked. Critical ratio score on the left, desired rank position on the right.

-0.001_____Rank 1
-2_________Rank 2
-15________Rank 3
0.0001____Rank 4
+0.2______Rank 5
+3________Rank 6
+9________Rank 7

I hope this makes sense. If you need anything else to help me then please do say and I will try my best to provide what you need.

Many thanks for any help you can provide, really.
 
Hi, here is another option using built in functions that you can try.

Book1
AB
4DataRank
597
6 
736
8-0.0011
9-153
10 
110.00014
12-22
130.25
Sheet1
Cell Formulas
RangeFormula
B5:B13B5=IF(A5="","",IF(A5<0,COUNTIFS($A$5:$A$13,">"&A5,$A$5:$A$13,"<0")+1,COUNTIFS($A$5:$A$13,"<"&A5)+1))
 
Upvote 0

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Peter, thank you so much for your help! That works perfectly now :):):)
You're welcome. Glad you got it going. Thanks for letting us know. :)

I see that FormR has also found a way to try using standard worksheet functions. I thought there should be a way, but I couldn't come up with it. :)
 
Upvote 0
Hi, here is another option using built in functions that you can try.

Book1
AB
4DataRank
597
6 
736
8-0.0011
9-153
10 
110.00014
12-22
130.25
Sheet1
Cell Formulas
RangeFormula
B5:B13B5=IF(A5="","",IF(A5<0,COUNTIFS($A$5:$A$13,">"&A5,$A$5:$A$13,"<0")+1,COUNTIFS($A$5:$A$13,"<"&A5)+1))
Thanks a lot, FormR. I will also keep this solution in mind if the VBA causes issues, as it's likely to be a shared sheet at some point.
 
Upvote 0

Forum statistics

Threads
1,215,055
Messages
6,122,902
Members
449,097
Latest member
dbomb1414

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