Function Problems

Display Excel Rank Values as 1st, 2nd, 3rd, and 4th

Adam DavisAdam Davis Nov 18, 2026 870 views

Question details

Display numeric Excel rank values with ordinal suffixes such as 1st, 2nd, 3rd, and 4th.

Display Excel Rank Values as 1st, 2nd, 3rd, and 4th
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet contains numeric rank values that need to be presented as ordinal labels.
Observed behavior
Rank values appear with the correct suffix, including 11th, 12th, and 13th.
Before you start

Identify the cell containing the numeric rank and choose an empty column for the ordinal label. The formula below assumes the rank is a positive whole number in cell A2.

Solution 1Recommended

Add ordinal suffixes to rank values with an Excel formula

Use this formula to convert numeric ranks into ordinal labels, including the exceptions for numbers ending in 11, 12, or 13.

1
Select an empty cell

In Excel, click an empty cell next to the rank in A2, such as B2.

2
Enter the ordinal formula

Enter =A2&IF(AND(MOD(A2,100)>=11,MOD(A2,100)<=13),"th",IF(MOD(A2,10)=1,"st",IF(MOD(A2,10)=2,"nd",IF(MOD(A2,10)=3,"rd","th")))) and press Enter. Replace A2 with the cell containing your rank if needed.

3
Apply it to other ranks

Drag the fill handle from B2 down the column to create labels for the remaining rank values.

Add ordinal suffixes to rank values with an Excel formula
Keep the numeric ranks: The ordinal labels are text. Keep the original numeric rank column if you need to sort numerically or use the ranks in calculations.
Work with ranks in WPS Spreadsheets

Create ordinal rank labels in WPS Spreadsheets

Use WPS Spreadsheets to append the correct ordinal suffix to existing numeric ranks while keeping the original values available for calculations.

  1. 1. Open the workbook: Open WPS Spreadsheets and use Open to select the workbook containing your rank values.
  2. 2. Select a label cell: Click an empty cell next to the first rank, such as B2 when the numeric rank is in A2.
  3. 3. Add the suffix formula: Enter =A2&IF(AND(MOD(A2,100)>=11,MOD(A2,100)<=13),"th",IF(MOD(A2,10)=1,"st",IF(MOD(A2,10)=2,"nd",IF(MOD(A2,10)=3,"rd","th")))) and press Enter.
  4. 4. Fill the formula down: Drag the fill handle from B2 down alongside the other numeric ranks.
Handle ordinal exceptions such as 11th, 12th, and 13th.Open and edit Microsoft Excel XLS and XLSX files.Fill the formula down a column for multiple ranks.Use a familiar spreadsheet interface for free.
microsoft office alternative - wps office

Frequently Asked Questions

Why does 11 use “th” instead of “st”?

Numbers ending in 11, 12, or 13 are exceptions to the final-digit rule. The formula checks the last two digits first, so it returns 11th, 12th, and 13th.

Can I use the formula with an existing RANK calculation?

Yes. Keep the RANK formula in its current cell and enter the ordinal formula in another cell, replacing A2 with the rank cell reference.

Can I sort the ordinal labels numerically?

The labels are text, so sort by the original numeric rank column instead. In Excel, select the data and use Data > Sort with the numeric rank column as the sort key.

What if Excel does not accept the formula?

Check that A2 contains a positive whole-number rank. If your regional settings use semicolons as function argument separators, replace the commas in the formula with semicolons.