Ordinal format

  • Thread starter Thread starter george ross
  • Start date Start date
G

george ross

Any suggestions on how to apply a format that will give
ordinal numbers - ie 1st, 2nd, 3rd, 4th etc.
 
Hi George,

Here is one way

=A1&CHOOSE((A1<>{11,12,13})*MIN(4,MOD(A1,10))+1,"th","st","nd","rd","th")

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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

Back
Top