Number to Ordinal (1st, 2nd, 3rd)

Excel Formulas › Text

All versionsCHOOSE

Turn 1 into “1st,” 22 into “22nd,” 13 into “13th.” The English ordinal rule has a tricky teens exception — one formula handles it all.


Quick formula: ordinal suffix for the number in A2:
=A2 & IF(MOD(A2,100)>=11, IF(MOD(A2,100)<=13,"th",CHOOSE(MOD(A2,10)+1,"th","st","nd","rd","th","th","th","th","th","th")), CHOOSE(MOD(A2,10)+1,"th","st","nd","rd","th","th","th","th","th","th"))
11–13 always take “th”; otherwise the last digit picks st/nd/rd/th.

Functions used (tap for the full reference guide):

The example

Numbers with their ordinal suffixes.

AB
1NumberOrdinal
211st
32222nd
41313th

The formula

Number plus the right suffix:

=A2 & IF(AND(MOD(A2,100)>=11, MOD(A2,100)<=13), "th", CHOOSE(MIN(MOD(A2,10)+1, 5), "th","st","nd","rd","th")) // handles the 11-13 teens

How it works

Last digit decides, except the teens:

  1. The suffix normally depends on the last digit: 1→st, 2→nd, 3→rd, everything else→th.
  2. But 11, 12, 13 (and 111, 112…) are exceptions — they take “th,” so test MOD(A2,100) for 11–13 first.
  3. CHOOSE(MIN(MOD(A2,10)+1, 5), "th","st","nd","rd","th") maps the last digit to its suffix.
  4. Concatenate the number and suffix with &.

For dates, you don’t need this — a custom format or TEXT handles day names. The ordinal formula is for ranks, places, and “Nth” labels in text.

Try it: interactive demo

Live demo

Enter a number.

Ordinal:

Variations

Just the suffix

Drop the number:

=IF(...,"th",CHOOSE(...))

Spelled out

1 -> First (use CHOOSE/lookup).

Day with ordinal

e.g. June 1st:

=TEXT(A2,"mmmm")&" "&DAY(A2)&suffix

Pitfalls & errors

The teens exception. Forgetting 11–13 gives “11st, 12nd, 13rd.” Always test MOD(n,100) for 11–13 first.

Result is text. “1st” can’t be used in math — keep the number in its own cell.

Negatives/zero. The rule assumes positive counts; guard if other values are possible.

Practice workbook

📊
Download the free Number to Ordinal (1st, 2nd, 3rd) practice workbook
An ordinal converter with suffix-only and date variants, plus 4 challenges with answers. No sign-up required.

Frequently asked questions

How do I add ordinal suffixes (st, nd, rd) in Excel?
Use =A2 & IF(AND(MOD(A2,100)>=11,MOD(A2,100)<=13),"th",CHOOSE(MIN(MOD(A2,10)+1,5),"th","st","nd","rd","th")). It handles the 11-13 exception.
Why do 11, 12, 13 need special handling?
They take "th" (11th, 12th, 13th) despite ending in 1, 2, 3. Test MOD(n,100) for 11-13 before checking the last digit.
Can I use ordinals in calculations?
No — the result is text. Keep the underlying number in a separate cell for math or sorting.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: SWITCH function · MOD function · Roman numerals

Function references: CHOOSE · MOD