+ Reply to Thread
Results 1 to 5 of 5

Excluding the leap year in a date formula

Hybrid View

  1. #1
    Registered User
    Join Date
    02-06-2008
    Posts
    7

    Excluding the leap year in a date formula

    Hi there,

    I have a series of random dates e.g.
    1 Feb 08
    20 March 08
    12 April 08
    and so on.

    Each date represents the beginning of a lease.
    Each lease finishes in exactly 10 years time.
    Rather than manually typing the date 10 years from now for each date, I'd like a formula which will calculate this and simply copy it down.
    The problem with the formula below is that leap years are not taken in consideration.
    =B4 + (365*10)

    Does anybody know a formula which would exclude leap years from a calculation?

    Thanks,
    Babs

  2. #2
    Forum Expert
    Join Date
    12-29-2004
    Location
    Michigan, USA
    MS-Off Ver
    2013
    Posts
    2,208
    Hi, Babs. Here is an easier solution:

    =DATE(YEAR(B4)+10,MONTH(B4),DAY(B4))

    If by some chance a lease starts on 2/29 of a leap year, it will end on 3/1.

    HTH

    Jason

  3. #3
    Registered User
    Join Date
    02-06-2008
    Posts
    7

    Re: Excluding the leap year in a date formula

    Hi Jason,

    Thanks for your reply. Sorry for my very very later reply.

    Babs

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    If your initial dates are in column A starting with row 2, then in B2
    =A2+3650
    3650 is the number of days in 10 standard years.

    Is that what you need?

    ChemistB

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Ahh, my mistake. My formula is the same as your original one. I read the post incorrectly. Make sure your analysis Toolpak addin is included and you can use this formula
    =EDATE(A2,120)
    ChemistB

+ 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