+ Reply to Thread
Results 1 to 4 of 4

IF Statement

Hybrid View

  1. #1
    Registered User
    Join Date
    04-23-2007
    Posts
    2

    IF Statement

    I would like to track a due date for an item in my worksheet.
    The due date is 15 years from a start date referenced in another cell, and it recurs every 15 years.

    I have a calculation that creates warning dates leading up to that deadline (1 year, 6 months, 3 months, 1 month). What I would now like to do is to make that due date cell smart enough to know whether the result is less than<today's date, or greater than>today's date. If it is less than<today's date it has already happened in the past and is of no more use to me. I would like it to find the next logical due date based on a 15 year cycle. I have already figured out the 'then' part of the statement. I am simply looking for the next due date based on the originating date with 15 year cycles.

    It's simpler than it sounds, I know

  2. #2
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    If you have your start date in A1, for example 01/01/1990, then in B1

    =IF(DATE(YEAR($A$2)+15,MONTH($A$2),DAY($A$2))<TODAY(),"This date has passed",DATE(YEAR($A$2)+15,MONTH($A$2),DAY($A$2)))

    and in C1

    =IF(DATE(YEAR($A$2)+30,MONTH($A$2),DAY($A$2))<TODAY(),"This date has passed",DATE(YEAR($A$2)+30,MONTH($A$2),DAY($A$2)))
    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
    Registered User
    Join Date
    04-23-2007
    Posts
    2
    Hey, thanks for your reply. What if the 30 years is added, but still falls short of today, do I add another string with 45 and 60 and so on? I think 60 would be max.

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Yes, just carry on into D1, E1, etc and amend the formula accordingly

+ 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