+ Reply to Thread
Results 1 to 4 of 4

Extract last day of month from text month

  1. #1
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Extract last day of month from text month

    Hold do I get the end date of a month for the current year (I assume EOMONTH is involved somewhere) from only a text month. e.g.' September' = 30/9/2016, 'January' = 31/1/2016. Next year 'September' would return 30/9/2017, 'January' would return 31/1/2017?

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Extract last day of month from text month

    This works for me (U.S. regional date format)...

    A1 = some month name like September

    =EOMONTH(1&A1&YEAR(NOW()),0)

    Format as Date
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Forum Contributor
    Join Date
    12-02-2008
    Location
    Brisbane
    MS-Off Ver
    2016
    Posts
    807

    Re: Extract last day of month from text month

    Yep, works me, too. Thanks - much appreciated.

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Extract last day of month from text month

    You're welcome. Thanks for the feedback!

+ 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. how to convert the month in a date to the text word for that month
    By sthshrmags in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-05-2014, 03:15 PM
  2. [SOLVED] Extract Day, Month and Year from a text box (user input) date value
    By HeyInKy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-01-2014, 10:40 PM
  3. [SOLVED] Combine date (month) and text and still be able to add a month to next column
    By kinscy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-20-2014, 12:34 AM
  4. [SOLVED] Auto instert Month names for This month, Last month and Next month
    By hemal89 in forum Word Programming / VBA / Macros
    Replies: 4
    Last Post: 12-10-2013, 12:01 PM
  5. [SOLVED] Extract Text from String then Convert to a Date (Month/Year)
    By sgrey24 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-14-2013, 06:11 PM
  6. Replies: 5
    Last Post: 10-04-2012, 07:06 AM
  7. How to extract month number from month name
    By PM in forum Excel General
    Replies: 2
    Last Post: 01-19-2005, 12:06 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