Answers for "excel vba get ordinal number from cardinal number"

VBA
1

excel vba get ordinal number from cardinal number

Function Ordinal(n)
  Ordinal = n & Evaluate("IF(OR(--RIGHT(" & n & ",2)={11,12,13}),""th"",IFERROR(CHOOSE(RIGHT(" & n & "),""st"",""nd"",""rd""),""th""))")
End Function
Posted by: Guest on March-25-2020

Code answers related to "VBA"

Browse Popular Code Answers by Language