+ Reply to Thread
Results 1 to 9 of 9

Get Month Names Between 2 Dates.

  1. #1
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Get Month Names Between 2 Dates.

    Hi Kindly Advise me a solution.

    I am able to get the Months count between 2 dates using "=Datedif(Startdate,Enddate,"m")

    but I also need the names of the months & year in between 2 dates, like below pic, yellow highlighted is my requirement.
    Attached Images Attached Images

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,647

    Re: Get Month Names Between 2 Dates.

    Do you want a VBA solution?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert kersplash's Avatar
    Join Date
    11-22-2016
    Location
    Perth
    MS-Off Ver
    Home 2016 (Windows 10)/Work 2013 Pro Plus (Windows 10)
    Posts
    2,012

    Re: Get Month Names Between 2 Dates.

    This may help....non-VBA.

    https://www.mrexcel.com/forum/excel-...two-dates.html

  4. #4
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Get Month Names Between 2 Dates.

    Yes I Need VBA solution pls

  5. #5
    Registered User
    Join Date
    03-20-2018
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    16

    Re: Get Month Names Between 2 Dates.

    Please Login or Register  to view this content.
    Try to work on this code. Edit some part so you can customized it to your project.

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: Get Month Names Between 2 Dates.

    UDF
    Use in cell like
    =IFERROR(Months(A$1,A$2,ROW(A1)-1),"")
    format the cell "mmm-yy" and copy down

    Where;
    A$1 = Starting date cell
    A$2 = Ending Date cell
    ROW(A1)-1 should not be touched.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor
    Join Date
    09-05-2012
    Location
    Dubai
    MS-Off Ver
    Office 365
    Posts
    409

    Re: Get Month Names Between 2 Dates.

    Wow Both Tricks worked fantastic , Thank you jindon & oluapseyer

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,518

    Re: Get Month Names Between 2 Dates.

    You are welcome.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  9. #9
    Registered User
    Join Date
    03-20-2018
    Location
    Philippines
    MS-Off Ver
    2013
    Posts
    16

    Re: Get Month Names Between 2 Dates.

    you're welcome...

+ 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] Calculation of days per month for dates beginning in one month and ending in another month
    By Fahrettin in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-07-2015, 04:52 PM
  2. List Month names between 2 dates
    By Sasquatch2014 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-06-2015, 02:47 PM
  3. [SOLVED] count number of times a text appeared in a month in given range of dates and names
    By KK1234 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 01-26-2014, 08:27 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. Using LOOKUP to assign month names to cells with dates.
    By AndyPandy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-12-2013, 06:06 AM
  6. how can I change the default month names for dates grouping in pivot tables
    By bagullo in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-25-2011, 05:24 AM
  7. Sql query(convert dates to month names)
    By poppy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-20-2005, 04:54 AM

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