+ Reply to Thread
Results 1 to 6 of 6

If statement for expiry dates

  1. #1
    Registered User
    Join Date
    05-11-2013
    Location
    Wigan, Englan
    MS-Off Ver
    Excel 2010
    Posts
    46

    If statement for expiry dates

    Hi Everybody

    I hope you are well!

    I am trying to get a formula which states whether a contract is
    1) In contract
    2) Out of Contract
    3) Within 6 months of renewal
    4) Within 1 year of renewal

    I have tried numerous IF formulas but I cannot seem to get it to work. There is a excel spreadsheet attached. Please feel free to give it a go.

    Thanks

    Mike

    Dates formula.xlsx
    Last edited by mfairhurst1; 09-22-2013 at 03:37 PM. Reason: rule 1

  2. #2
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: If statement for expiry dates

    And how long are the contracts?
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: If statement for expiry dates

    Try this...
    =IF(C5<TODAY(),"Out of Contract",
    IF(C5>TODAY(),
    IF(AND(C5>TODAY(),C5<=TODAY()+180),"6 Months to Renewal",
    IF(AND(C5>TODAY(),C5<=TODAY()+365),"1 Year to Renewal","In Contract")),""))
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    05-11-2013
    Location
    Wigan, Englan
    MS-Off Ver
    Excel 2010
    Posts
    46

    Re: If statement for expiry dates

    That works. thanks a lot for your help!!

    Mike

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: If statement for expiry dates

    you'r welcome. If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 at the bottom of my post to this thread)

  6. #6
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: If statement for expiry dates

    Or this:

    =IFERROR(IF(DATEDIF(TODAY(),C5,"m")<=3,"In Countract",IF(DATEDIF(TODAY(),C5,"m")<=6,"6 Months to Renewal",IF(DATEDIF(TODAY(),C5,"m")<=12,"1 Year to Renewal"))),"Out of Contract")

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Check dates in range either same dates or different dates by formula
    By breadwinner in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-12-2013, 07:42 AM
  2. Replies: 1
    Last Post: 11-01-2012, 03:41 PM
  3. Workday Formula-Notice dates and Expiry dates
    By lamjoey in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 07-24-2011, 06:52 AM
  4. Replies: 3
    Last Post: 07-19-2010, 01:02 PM
  5. [SOLVED] Formula for dates-hire dates of employees
    By shunt in forum Excel General
    Replies: 2
    Last Post: 01-24-2006, 07:15 PM

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