+ Reply to Thread
Results 1 to 5 of 5

Thread: Dynamic Month Names

  1. #1
    Registered User
    Join Date
    07-16-2010
    Location
    Arizona, USA
    MS-Off Ver
    Excel 2007
    Posts
    2

    Dynamic Month Names

    I have a cell linked to a Access query which contains a stored month name. For example, the access user selects the starting month of a financial period. After inserting the starting month name (i.e. March) I would like the next 11 horizontal cells to fill in the next 11 months. I tried the date addition function with no luck. Any ideas?

  2. #2
    Registered User
    Join Date
    02-17-2011
    Location
    California
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Dynamic Month Names


  3. #3
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: Dynamic Month Names

    If we assume A1 holds MARCH as a text string you might consider:

    B1:
    =UPPER(TEXT(DATE(1905,MONTH(1&A1)+1,1),"mmmm"))
    copied across to L1
    Note though the above is returning a string not a date per se.

  4. #4
    Forum Guru snb's Avatar
    Join Date
    05-09-2010
    Location
    VBA
    MS-Off Ver
    Redhat
    Posts
    5,151

    Re: Dynamic Month Names

    Use the autofill-grip (the cross in the right down corner of the cell)

    or, if 'march' is in cell A9:

    Sub snb()
      Cells(9, 1).AutoFill Cells(9, 1).Resize(, 11)
    End Sub
    Last edited by snb; 03-10-2011 at 04:37 AM.



  5. #5
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,423

    Re: Dynamic Month Names

    The implication is that this needs to be dynamic though granted you could automate the AutoFill via Change Event - I confess that a formula approach seemed a little more obvious to me.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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.2.0