CHOOSE Function

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

Hi,
I'm using this to return '1st' '2nd' '3rd' etc
=CHOOSE(RANK(H5,$H$5:$H$14),"st","nd","rd","th")
(This is part of a longer formula)
This works OK up to 4th, if the rank is more than 4 it
returns an error.
The ranking goes up to 10th. My question is, is there a
way to get any rank above 4 to return 'th' other than
entering 'th' 7 times in the formula?
TIA
Paul
 
One way:

=CHOOSE(IF(RANK(H5,$H$5:$H$14)>4,4,RANK
(H5,$H$5:$H$14)),"st","nd","rd","th")

HTH
Jason
Atlanta, GA
 
You can try

=IF(RANK(H5,$H$5:$H$14)>3,"th",CHOOSE(RANK(H5,$H$5:$H$14),"st","nd","rd"))


Avne
 
Jason and Avner,
Of course! Woods and trees! Thank you both very much,
Regards,
Paul (Using a friends machine)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

How to custom format a date 2
nested "If" fuction 4
conditional formatting 3
How to Rank Name? 4
Ranking 15
Date abbreviations / extensions 6
Ordinal Numbers 12
Conditional Format - Outline Border 12

Back
Top