+ Reply to Thread
Results 1 to 2 of 2

pattern :Date Function

  1. #1
    drschieff
    Guest

    pattern :Date Function

    I am trying to enter an date in cell A2 (i.e. 12/31/04)
    I want the date for the last day of the next month to automatically appear
    in cell A33 (1/31/05), the last day of the next month to appear in cell A34
    (2/28/05), and to continue this pattern for the next 60 months.
    If I change the date in cell A2 (i.e. 2/28/05), I would like all the dates
    in A33, A34 etc to automatically update (A33 would become 3/31/05, A34 would
    become 4/30/05, etc etc).
    I tried using the format =DATE(Year(A2),MONTH(A2+1),DAY(A2)), but that gives
    me 1/31/04 in Cell A33 (it doesn't update the year)
    Any suggestions?

  2. #2
    Peo Sjoblom
    Guest

    re: pattern :Date Function

    =DATE(YEAR(A2),MONTH(A2)+2,0)

    Regards,

    Peo Sjoblom

    "drschieff" wrote:

    > I am trying to enter an date in cell A2 (i.e. 12/31/04)
    > I want the date for the last day of the next month to automatically appear
    > in cell A33 (1/31/05), the last day of the next month to appear in cell A34
    > (2/28/05), and to continue this pattern for the next 60 months.
    > If I change the date in cell A2 (i.e. 2/28/05), I would like all the dates
    > in A33, A34 etc to automatically update (A33 would become 3/31/05, A34 would
    > become 4/30/05, etc etc).
    > I tried using the format =DATE(Year(A2),MONTH(A2+1),DAY(A2)), but that gives
    > me 1/31/04 in Cell A33 (it doesn't update the year)
    > Any suggestions?


+ 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