Thanks Thanks:  0
Likes Likes:  0
Results 1 to 5 of 5

Thread: How do I add 2 years to a date field?

  1. #1
    New Member
    Join Date
    Mar 2003
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default How do I add 2 years to a date field?

    I'm trying to add two years to a date type in Excel. I specifically do not want to just add 730 days as it doesn't account for leap years. Please advise.

    Thanks! :D

  2. #2
    Board Regular
    Join Date
    Dec 2002
    Posts
    346
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Hi,

    You could use this; you need to make sure that the Analysis Tool Pak in turned on.

    =EDATE(A12,24)

    2rrs

  3. #3
    New Member
    Join Date
    Mar 2003
    Posts
    34
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Column A has your original dates:
    =DATE(YEAR(A1)+2,MONTH(A1),DAY(A1))

  4. #4
    New Member
    Join Date
    Mar 2003
    Posts
    2
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Worked great thanks!

    Now is there a way I can subtract today's date for a day in the future and determine the number of days in between? For example if monday is 03/24/03 and today is 03/20/01 the number of days between the two dates is 735. How can I calculate this?

    Thanks so much for the help!

  5. #5
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    84,284
    Post Thanks / Like
    Mentioned
    40 Post(s)
    Tagged
    8 Thread(s)

    Default

    Quote Originally Posted by gavia111
    Worked great thanks!

    Now is there a way I can subtract today's date for a day in the future and determine the number of days in between? For example if monday is 03/24/03 and today is 03/20/01 the number of days between the two dates is 735. How can I calculate this?

    Thanks so much for the help!
    =A1-TODAY()

    A1 houses a value like 03/24/03, a true date. Format the formula cell as General.

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •