Display date using ordinal numbering

streets

New Member
Joined
Mar 23, 2024
Messages
13
Office Version
  1. 365
Platform
  1. Windows
I desire an excel formula that will automatically update to today's date and that will display the day's digit as ordinal number. How to create it?

Today's date is Wednesday, September 18, 2024. The ordinal numbering endings of "st", "nd", "rd", or "th" is to be added to the end of day's digit, to auto-update to display as "Wednesday, September 18th, 2024" (without quote marks).

When the first of the month comes around, I'd like it to auto-update to Tuesday, October 1st, 2024. Then, following that, automatically update to Wednesday, October 2nd, 2024 and then Thursday, October 3rd, 2024, and so on, as the calendar goes-by.
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
It is possible to do this with a single formula, but I am using a lookup table here.

$scratch.xlsm
ABCDE
1Wednesday, September 18th, 20241st
22nd
33rd
44th
55th
66th
77th
88th
99th
100th
Ordinal Day
Cell Formulas
RangeFormula
A1A1=LET(T,TODAY(),TEXT(T,"Dddd, Mmmm")&" "&DAY(T)&XLOOKUP(VALUE(RIGHT(DAY(T),1)),$D$1:$D$10,$E$1:$E$10)&", "&YEAR(T))
 
Upvote 0
Here is a standalone formula that does not need the table.

Excel Formula:
=LET(T,TODAY(),TEXT(T,"Dddd, Mmmm")&" "&DAY(T)&MID("thstndrdthththththth",RIGHT(DAY(T),1)*2+1,2)&", "&YEAR(T))
 
Upvote 0
Solution
Another option:

Excel Formula:
=LET(t, TODAY(), TEXT(t,"dddd, mmmm d")&XLOOKUP(DAY(t),{1;2;3;4},{"st";"nd";"rd";"th"},,-1)&", "&YEAR(t))
 
Upvote 1
Here is a standalone formula that does not need the table.

Excel Formula:
=LET(T,TODAY(),TEXT(T,"Dddd, Mmmm")&" "&DAY(T)&MID("thstndrdthththththth",RIGHT(DAY(T),1)*2+1,2)&", "&YEAR(T))
I think this formula would not work correctly for day like 11, 12, 13, 21, 22, 23. It would add "st" to 11 for example.
 
Upvote 0
Mine would not work correctly for 21 22 23... my bad. Here is the corrected formula:

Excel Formula:
=LET(t, TODAY(), TEXT(t,"dddd, mmmm d")&XLOOKUP(DAY(t),{1;2;3;4;21;22;23;24;31},{"st";"nd";"rd";"th";"st";"nd";"rd";"th";"st"},,-1)&", "&YEAR(t))

Cell Formulas
RangeFormula
C1C1=LET(t, TODAY(), TEXT(t,"dddd, mmmm d")&XLOOKUP(DAY(t),{1;2;3;4;21;22;23;24;31},{"st";"nd";"rd";"th";"st";"nd";"rd";"th";"st"},,-1)&", "&YEAR(t))
B1:B31B1=LET(t, A1, TEXT(t,"dddd, mmmm d")&XLOOKUP(DAY(t),{1;2;3;4;21;22;23;24;31},{"st";"nd";"rd";"th";"st";"nd";"rd";"th";"st"},,-1)&", "&YEAR(t))
 
Upvote 0
=LET(t,TODAY(),TEXT(t,"dddd, mmmm d"&LOOKUP(DAY(t),{1,2,3,4,21,22,23,24,31},{"\s\t","\n\d","\r\d","\t\h","\s\t","\n\d","\r\d","t\h","\st"})&", yyyy"))
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,117
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top