How to change date format in Excel?

Closed
Manikanta - Updated on Jul 5, 2018 at 11:55 AM
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 - Jul 10, 2018 at 11:24 AM
Hello,

Sir I want change date format in 25-06-2018 to 25th June 2018


How can change 25 in Th letter in upper case

Please tell me any one

2 responses

Zohaib R Posts 2368 Registration date Sunday September 23, 2012 Status Member Last seen December 13, 2018 69
Jul 5, 2018 at 03:29 PM
Hi Manikanta,

Hope you are doing good. If A1 Contains "25-06-2018" then this formula will change the date to your desired format:

=TEXT(DATE(RIGHT(A1,4),RIGHT(LEFT(A1,5),2),LEFT(A1,2)),"dd")&"Th" & " " & TEXT(DATE(RIGHT(A1,4),RIGHT(LEFT(A1,5),2),LEFT(A1,2)),"MMMM YYYY")


Notice Th in the forrmula, you can replace it with th to suite your need.
0
TrowaD Posts 2921 Registration date Sunday September 12, 2010 Status Moderator Last seen December 27, 2022 555
Updated on Jul 10, 2018 at 11:25 AM
Hello,

May I suggest the following:
=DAY(A1) & "Th " & PROPER(TEXT(A1,"mmmm yyy"))

Best regards,
Trowa

0