+ Reply to Thread
Results 1 to 3 of 3

Calculate expiry dates based on months

  1. #1
    Registered User
    Join Date
    10-31-2012
    Location
    South Australia, Australia
    MS-Off Ver
    Excel 2016
    Posts
    49

    Calculate expiry dates based on months

    HI All,
    Just wondering if some of you gurus would mind helping me with a simple formula that i can't get my head around.
    I have a date in cell A1 (dd/mm/yy) which represents an expiry date. I would like to have the word "expired" appear in cell A2 based on a formula which would subtract a number of months. eg. If the date in A1 is older than 10 months ago based on todays date then "expired" in A2. I imagine this would be based around the today() formula but i can't quite get it to work for me.
    Many thanks in advance.

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Calculate expiry dates based on months

    You can get 10 months before today by using EDATE so you could use this formula

    =IF(A1<=EDATE(TODAY(),-10),"Expired","OK")

    In Excel 2003 EDATE requires Analysis ToolPak to be enabled, an alternative is this

    =IF(DATEDIF(A1,TODAY(),"m")>=10,"Expired","OK")
    Audere est facere

  3. #3
    Registered User
    Join Date
    10-31-2012
    Location
    South Australia, Australia
    MS-Off Ver
    Excel 2016
    Posts
    49

    Re: Calculate expiry dates based on months

    Excellent- First option is great- Thankyou

+ 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