Adding st, nd, rd, th to ranked values

masud8956

Board Regular
Joined
Oct 22, 2016
Messages
163
Office Version
  1. 2016
  2. 2011
  3. 2007
Platform
  1. Windows
Hi everyone!

I am using the following formula to rank 20 rows of entries at S5:S24.

Code:
=IF(ISNUMBER(R5),1+COUNTIF($R$5:$R$24,">"&R5),"")

What modification do I need to get the texts st, nd, rd, th as ordinal suffix?

Regards
 
As an additional note, if the underlying cardinal values are wanting to be retained, here is an option to add the ordinal suffixes by Conditional Formatting. :)
... But without the superscript :(
 
Last edited:
Upvote 0

Excel Facts

Get help while writing formula
Click the italics "fx" icon to the left of the formula bar to open the Functions Arguments dialog. Help is displayed for each argument.
One word of caution with the prettier formula (although it may not matter if your range stays at <= 20 cells)...
it will convert 21, 22, 23 to 21th, 22th, 23th.


Loved seeing all of the great ideas in this thread though. :beerchug:
 
Last edited:
Upvote 0
I retract my previous statement (about the word of caution).

It will work fine as long as you adjust all of the ranges...unlike what I first attempted.:???:
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,279
Members
452,630
Latest member
OdubiYouth

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