Hey everyone,
I have been using a simple if function to make this work for documents using code like:
=IF(AG28="",IF(MONTH(TODAY())=1,"January",IF(MONTH(TODAY())=2,"February",IF(MONTH(TODAY())=3,"March",IF(MONTH(TODAY())=4,"April",IF(MONTH(TODAY())=5,"May",IF(MONTH(TODAY())=6,"June",IF(MONTH(TODAY())=7,"July",IF(MONTH(TODAY())=8,"August",IF(MONTH(TODAY())=9,"September",IF(MONTH(TODAY())=10,"October",IF(MONTH(TODAY())=11,"November","December"))))))))))),"")
and:
=IF(AG28="",IF(OR(DAY(TODAY())=1,DAY(TODAY())=21,DAY(TODAY())=31),"st",IF(OR(DAY(TODAY())=2,DAY(TODAY())=22),"nd",IF(OR(DAY(TODAY())=3,DAY(TODAY())=23),"rd","th"))),"")
My code works but it is sloppy, does anyone know of a macro to take a date and return that date in the form of:
On this [Nth] day of [month] [year]
Thanks in advance!
Bookmarks