Adding ordinals (st nd rd th) to date when using TEXT etc

scotthannaford1973

Board Regular
Joined
Sep 27, 2017
Messages
110
Office Version
  1. 2010
Platform
  1. Windows
I have a formula that combines some text and the date of the Monday in the current week - ="Digital Programme - "&TEXT((TODAY()-MOD(TODAY()-2,7)),"dd mmmm yyyy") as below; is there any way to add st, nd etc to the date - so 25th instead of 25 etc?


TIA

1711385997227.png
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
try this:


Cell Formulas
RangeFormula
D3D3="Digital Program= " & TEXT(TODAY(),"d") & SWITCH(0+RIGHT(DAY(TODAY()),1),1,"st",2,"nd",3,"rd","th") & TEXT(TODAY()," mmmm yyyy")
A3A3=DATE(2024,3,1)
A4:A12A4=A3+1
C3:C12C3="Digital Program= " & TEXT(A3,"d") & SWITCH(0+RIGHT(DAY(A3),1),1,"st",2,"nd",3,"rd","th") & TEXT(A3," mmmm yyyy")
 
Upvote 0
Solution
Might look at the dates of 11, 12 and 13 with this formula.
good catch. Why is the English language so irregular!

Cell Formulas
RangeFormula
D3D3="Digital Program= " & TEXT(TODAY(),"d") & IF(AND(DAY(TODAY())>=11,DAY(TODAY())<=13),"th",SWITCH(0+RIGHT(DAY(TODAY()),1),1,"st",2,"nd",3,"rd","th")) & TEXT(TODAY()," mmmm yyyy")
A3A3=DATE(2024,3,1)
A4:A33A4=A3+1
C3:C33C3="Digital Program= " & TEXT(A3,"d") & IF(AND(DAY(A3)>=11,DAY(A3)<=13),"th",SWITCH(0+RIGHT(DAY(A3),1),1,"st",2,"nd",3,"rd","th")) & TEXT(A3," mmmm yyyy")
 
Last edited:
Upvote 0

Forum statistics

Threads
1,215,150
Messages
6,123,312
Members
449,094
Latest member
Chestertim

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