Link to home
Start Free TrialLog in
Avatar of marku24
marku24Flag for United States of America

asked on

Format Date in Excel

I have a Date in Excel of 5/2/2011, I would like this date to be appended to a text field that starts with "My Date is"........  That said, I would like to convert the date above and have it appear as "My Date is May 2nd".  When I use MONTH() I get a 5 and not "May".  Any ideas?
Avatar of zorvek (Kevin Jones)
zorvek (Kevin Jones)
Flag of United States of America image

Assuming the date is in A1:

="My Date is "&TEXT(A1,"MMM D")

Kevin
ASKER CERTIFIED SOLUTION
Avatar of zorvek (Kevin Jones)
zorvek (Kevin Jones)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
MONTH returns a month number, not a month name.

You could use a formula like this:

="My date is "&TEXT(A2,"mmmm d")
slow fingers :)
Avatar of marku24

ASKER

works great, thanks
To display the ordinal of the day use this function:

="My Date is "&TEXT(A1,"MMM D")&CHOOSE(MIN(MOD(IF(AND(MOD(DAY(A1),100)>10,MOD(DAY(A1),100)<14),4,DAY(A1))-1,10)+1,4),"st","nd","rd","th")

Kevin
You can use a formula like this:

="my date is "&CHOOSE(MONTH(A1),"Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")&" " &DAY(A1) & "nd"

Take a look at the attached example.

jppinto
Book2.xlsx