+ Reply to Thread
Results 1 to 6 of 6

Monthly dates formula

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    05-22-2007
    Location
    Laguna Beach, CA
    MS-Off Ver
    MS Office 2024
    Posts
    145

    Monthly dates formula

    I like to create the following:

    cell A1 =1/2007 (results Jan-07)
    cell A2 =(A1+31) (results Feb-07
    cell A3 =(A2+31) (results Mar-07)

    It works most of the time but it misses a month here and there (I think it has to do with the 31 days).

    Is there an easy way to do this without the 31 days?

    Bruce

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    You can use

    =EOMONTH(A1,0) you will need to install the Analysis Toolpak to use this
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

  3. #3
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Another option is to type 1/1/2007 in the first cell, 2/1/2007 in the second cell, highlight both cells, then drag the lower right corner, and it will auto fill.

    HTH

    Jason

  4. #4
    Forum Contributor
    Join Date
    05-22-2007
    Location
    Laguna Beach, CA
    MS-Off Ver
    MS Office 2024
    Posts
    145
    OK, I added the Analysis Toolpak and inserted the following:


    A1 = 1/2007 (displayed as Jan-07)

    A2 =EOMONTH(A1,0) displayed as Jan-07

    A3 = need formula to display Feb-07

    Thanks for your help.

    Bruce

    Note: I just want to insert the 1/2007 in one cell and have the other cells fill themselves out.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,844
    If you always put the first of a month in A1 then rather than EOMONTH, try using EDATE. In A2 copied down as far as you require

    =EDATE(A1,1)

    Now if you change A1 all the others will change automatically.

    An alternative without Analysis ToolPak

    =A1+32-DAY(A1+31)

  6. #6
    Forum Contributor
    Join Date
    05-22-2007
    Location
    Laguna Beach, CA
    MS-Off Ver
    MS Office 2024
    Posts
    145
    The =EDATE(A1,1) did the trick.

    Thanks.

    Bruce

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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