Display Excel Rank Values as 1st, 2nd, 3rd, and 4th
Question details
Display numeric Excel rank values with ordinal suffixes such 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.
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.
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.
In Excel, click an empty cell next to the rank in A2, such as B2.
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.
Drag the fill handle from B2 down the column to create labels for the remaining rank values.

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. Open the workbook: Open WPS Spreadsheets and use Open to select the workbook containing your rank values.
- 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. 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. Fill the formula down: Drag the fill handle from B2 down alongside the other numeric ranks.

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.




