+ Reply to Thread
Results 1 to 4 of 4

On this [Nth] day of [Month] [Year]

  1. #1
    Registered User
    Join Date
    11-19-2018
    Location
    Atlanta, Georgia
    MS-Off Ver
    2010
    Posts
    4

    On this [Nth] day of [Month] [Year]

    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!

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: On this [Nth] day of [Month] [Year]

    Sorry got to go.

    Here is a start for you.

    the rest is easy.

    =CHOOSE(Day(AG28),"First"," Second"," Third"," Fourth"," Fifth"," Sixth"," Seventh"," Eighth"," Ninth"," Tenth"," Eleventh"," Twelfth"," Thirteenth"," Fourteenth"," Fifteenth"," Sixteenth"," Seventeenth"," Eighteenth"," Ninteenth"," Twentieth"," Twenty First"," Twenty Second"," Twenty Third"," Twenty Fourth"," Twenty Fifth"," Twenty Sixth"," Twenty Seventh"," Twenty Eighth"," Twenty Nineth"," Thirtieth"," Thirty First")
    My General Rules if you want my help. Not aimed at any person in particular:

    1. Please Make Requests not demands, none of us get paid here.

    2. Check back on your post regularly. I will not return to a post after 4 days.
    If it is not important to you then it definitely is not important to me.

  3. #3
    Registered User
    Join Date
    11-19-2018
    Location
    Atlanta, Georgia
    MS-Off Ver
    2010
    Posts
    4

    Re: On this [Nth] day of [Month] [Year]

    I've never used the CHOOSE Function, but I see how it works.

    That's awesome! Thank you

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: On this [Nth] day of [Month] [Year]

    ..and another option

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Convert calendar year month to fiscal year month
    By sheetnoob in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-13-2018, 03:30 AM
  2. Running Totals from 24 hours to month, month to year without year decreasing
    By Safetyintern in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-20-2015, 01:13 PM
  3. Graphing dates by month/year with 2 bars per month/year
    By Ellpoyohlokoh in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-22-2014, 05:25 AM
  4. Replies: 3
    Last Post: 09-04-2013, 10:49 AM
  5. How to add Month-on-Month and Year-on-Year %Variance into a pivot table
    By emeritus1812 in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 06-09-2013, 02:37 AM
  6. If Column A Month and Year = ColumnB Todays Month and Year then send email
    By HACCStaff in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-15-2013, 12:47 AM
  7. Entering month/year, instead of month/day/year, and displaying as such
    By Gunther Maplethorpe in forum Excel General
    Replies: 10
    Last Post: 07-17-2011, 07:31 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1