Closed Thread
Results 1 to 3 of 3

Re: Manipulating dates (was Add 6 months to a date)

  1. #1
    Bill Ridgeway
    Guest

    Re: Manipulating dates (was Add 6 months to a date)

    Just to round up (for now) the question on how to manipulate dates, here are
    some formulae (which assume the root date is in A1) for advancing dates. It
    started as an exercise to try to understand the subject - hence the number
    of variations. I hope it will be of use.

    1 day
    =DATE(YEAR(A1),MONTH(A1),DAY(A1)+1)

    1 month
    =DATE(YEAR(A1),MONTH(A1)+1,DAY(A1))

    1 year
    =DATE(YEAR(A1)+1,MONTH(A1),DAY(A1))

    1 year, 1 month, 1 day
    =DATE(YEAR(A1)+1,MONTH(A1)+1,DAY(A1)+1)

    1 year, 1 month
    =DATE(YEAR(A1)+1,MONTH(A1)+1,DAY(A1))

    First day of following month
    =DATE(YEAR(A1),MONTH(A1)+1,1)

    Last day of current month
    =DATE(YEAR(A1),MONTH(A1)+1,0)

    Last day of following month
    =DATE(YEAR(A1),MONTH(A1)+1+1,0)

    Tenth day of following month
    =DATE(YEAR(A1),MONTH(A1)+1,10)

    Bill Ridgeway
    Computer Solutions
    >
    >
    >




  2. #2
    CLR
    Guest

    Re: Manipulating dates (was Add 6 months to a date)

    Very handy compilation Bill..........another one for my secret stash.

    Thanks for posting it.

    Vaya con Dios,
    Chuck, CABGx3




    "Bill Ridgeway" wrote:

    > Just to round up (for now) the question on how to manipulate dates, here are
    > some formulae (which assume the root date is in A1) for advancing dates. It
    > started as an exercise to try to understand the subject - hence the number
    > of variations. I hope it will be of use.
    >
    > 1 day
    > =DATE(YEAR(A1),MONTH(A1),DAY(A1)+1)
    >
    > 1 month
    > =DATE(YEAR(A1),MONTH(A1)+1,DAY(A1))
    >
    > 1 year
    > =DATE(YEAR(A1)+1,MONTH(A1),DAY(A1))
    >
    > 1 year, 1 month, 1 day
    > =DATE(YEAR(A1)+1,MONTH(A1)+1,DAY(A1)+1)
    >
    > 1 year, 1 month
    > =DATE(YEAR(A1)+1,MONTH(A1)+1,DAY(A1))
    >
    > First day of following month
    > =DATE(YEAR(A1),MONTH(A1)+1,1)
    >
    > Last day of current month
    > =DATE(YEAR(A1),MONTH(A1)+1,0)
    >
    > Last day of following month
    > =DATE(YEAR(A1),MONTH(A1)+1+1,0)
    >
    > Tenth day of following month
    > =DATE(YEAR(A1),MONTH(A1)+1,10)
    >
    > Bill Ridgeway
    > Computer Solutions
    > >
    > >
    > >

    >
    >
    >


  3. #3
    Ken Wright
    Guest

    Re: Manipulating dates (was Add 6 months to a date)

    Chip Pearson also has some great info on dates/times on his website:-

    http://cpearson.com/excel/datearith.htm

    --
    Regards
    Ken....................... Microsoft MVP - Excel
    Sys Spec - Win XP Pro / XL 97/00/02/03

    ------------------------------*------------------------------*----------------
    It's easier to beg forgiveness than ask permission :-)
    ------------------------------*------------------------------*----------------


    "Bill Ridgeway" <[email protected]> wrote in message
    news:[email protected]...
    > Just to round up (for now) the question on how to manipulate dates, here
    > are some formulae (which assume the root date is in A1) for advancing
    > dates. It
    > started as an exercise to try to understand the subject - hence the number
    > of variations. I hope it will be of use.
    >
    > 1 day
    > =DATE(YEAR(A1),MONTH(A1),DAY(A1)+1)
    >
    > 1 month
    > =DATE(YEAR(A1),MONTH(A1)+1,DAY(A1))
    >
    > 1 year
    > =DATE(YEAR(A1)+1,MONTH(A1),DAY(A1))
    >
    > 1 year, 1 month, 1 day
    > =DATE(YEAR(A1)+1,MONTH(A1)+1,DAY(A1)+1)
    >
    > 1 year, 1 month
    > =DATE(YEAR(A1)+1,MONTH(A1)+1,DAY(A1))
    >
    > First day of following month
    > =DATE(YEAR(A1),MONTH(A1)+1,1)
    >
    > Last day of current month
    > =DATE(YEAR(A1),MONTH(A1)+1,0)
    >
    > Last day of following month
    > =DATE(YEAR(A1),MONTH(A1)+1+1,0)
    >
    > Tenth day of following month
    > =DATE(YEAR(A1),MONTH(A1)+1,10)
    >
    > Bill Ridgeway
    > Computer Solutions
    >>
    >>
    >>

    >
    >




Closed 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