Rank data with specific text

sharky12345

Well-known Member
Joined
Aug 5, 2010
Messages
3,422
Office Version
  1. 2016
Platform
  1. Windows
I'm using this formula to rank my data;

=RANK(B6,$B$6:$B$13)

Can anyone show me how to use specific text instead of a numeric value?

What I'd like is LOW, MEDIUM and HIGH instead if that's possible?
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
How about

=IF(RANK(B6,$B$6:$B$13)/COUNTA($B$6:$B$13)>0.8,"low",IF(RANK(B6,$B$6:$B$13)/COUNTA($B$6:$B$13)>0.2,"medium","high"))


Amend .8 and .2 to whatever makes sense with the type of data you are analyzing
 
Upvote 0
You haven't said exactly how the low/medium/high should be determined & if you really are only ranking 8 values that is quite a small sample.
Here is another much shorter option to consider, but note that it does not always produce identical results to the formula suggested by Yongle. Comes back to how you define low/medium/high especially with a small sample.

Excel Workbook
BCD
65mediummedium
76mediummedium
88highhigh
92lowlow
101lowlow
114mediummedium
126mediummedium
137highmedium
Rank



.. and wondering what you would want returned here?

Excel Workbook
BCD
61000highhigh
7500mediummedium
8500mediummedium
9500mediummedium
10500mediummedium
111lowmedium
121lowmedium
131lowmedium
Rank (2)
 
Last edited:
Upvote 0
Peter,

Thanks - I now understand that the answer is perhaps not as straightforward as you would think.

This one seems to do the trick;

=LOOKUP(PERCENTRANK($B$6:$B$13,B6),{0,0.2,0.8},{"LOW","MEDIUM","HIGH"})
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,260
Members
452,627
Latest member
KitkatToby

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