📜  excel vba从基数中获取序数 - VBA代码示例

📅  最后修改于: 2022-03-11 14:51:54.203000             🧑  作者: Mango

代码示例1
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