+ Reply to Thread
Results 1 to 10 of 10

formula for recurring expire date

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    10-22-2014
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    177

    formula for recurring expire date

    Hello,

    I am trying to figured out formula to determine expire date of annual leave.

    example:

    I hired on Dec 1, 2013
    my annual leave will be expire after 3 month from hired month on current year (2015), which is March 2016.

    I wonder if i can use formula in one single cell rather than two cells as attached example.

    Thank you.
    Attached Files Attached Files

  2. #2
    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
    53,048

    Re: formula for recurring expire date

    This will give you the 3 months...
    =EDATE(H3,3)
    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

  3. #3
    Forum Contributor
    Join Date
    10-22-2014
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    177

    Re: formula for recurring expire date

    Hi,

    Thank you for your help.

    But i am afraid that will not work.

    as you can see, EDATE(H3,3) will give 3 month which return to March 2014 ( not valid year).

    I need a dynamic formula that will return to March 2016 for this year, and for next year will automatically change to March 2017 and so on, as after it expire, it will reset until next year expire date.

    Thank you.

  4. #4
    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
    53,048

    Re: formula for recurring expire date

    So you want it to use 3...15...27 months etc?

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: formula for recurring expire date

    =DATE(YEAR(TODAY()),MONTH(A3)+3,1)
    Try this formula
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  6. #6
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: formula for recurring expire date

    For expire date
    =DATE(YEAR(TODAY()),MONTH(H3)+3,1)

    For month left
    =IF(MONTH(J3)<MONTH(TODAY()),MONTH(J3)+12-MONTH(TODAY()),MONTH(TODAY())-MONTH(J3))
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    10-22-2014
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    177

    Re: formula for recurring expire date

    Thank You FDibbins, yes i want to repeat the expire date every 12 month.

    Thank you nflsales & kvsrinivasamurthy , Expire date is exactly what i want.

    more advance, how to tweak the formula :

    If the current date exceeded expire date , then expire date + 12 month, if not exceeded then use expire date

    =IF(I3>DATE(YEAR(TODAY()),MONTH(H3)+3,1),DATE(YEAR(TODAY()+1),MONTH(H3)+3,1),DATE(YEAR(TODAY()),MONTH(H3)+3,1))

    is it correct?

    example for expire date Sep 2015.

    Result will be : IF current date ( 26 Nov 2015) > Sep 2015, then expire date will be Sep 2016

    for expire date Dec 2015, it still Dec 2015, as 26 Nov 2015 not exceeded Dec 2015.
    Last edited by qiyusi; 11-26-2015 at 04:40 AM.

  8. #8
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: formula for recurring expire date

    With kvsrinivasamurthy's formula in C3 already this in E3 for months left:
    Formula: copy to clipboard
    =DATEDIF(B3,C3,"md")
    Dave

  9. #9
    Forum Contributor
    Join Date
    10-22-2014
    Location
    Indonesia
    MS-Off Ver
    2010
    Posts
    177

    Re: formula for recurring expire date

    Thank you FlameRetired, yes it work with datedif, minor change, "md" to "ym" as "md" to count days not months.

    Final formula for expire date that worked for me:

    =IF(I3-DATE(YEAR(TODAY());MONTH(H3)+3;1)<0;DATE(YEAR(TODAY());MONTH(H3)+3;1);DATE(YEAR(TODAY());MONTH(H3)+15;1))

    Thank you all for your help. really appreciate

  10. #10
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 V 2503
    Posts
    13,702

    Re: formula for recurring expire date

    You are welcome. Thanks for the feedback.

+ 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. Replies: 2
    Last Post: 11-14-2014, 08:15 AM
  2. Add an expire date
    By der1ross in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-26-2014, 05:26 AM
  3. Formula to calculate a month before a renewal date is due to expire
    By Charlene C in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-21-2013, 11:49 AM
  4. [SOLVED] email when cell date expire
    By laduk in forum Outlook Formatting & Functions
    Replies: 4
    Last Post: 10-28-2012, 01:10 PM
  5. COUNTIF date will expire in a date range
    By neilanderson in forum Excel General
    Replies: 6
    Last Post: 07-31-2012, 02:08 PM
  6. [SOLVED] Date Function:contracts expire.
    By LisaS in forum Excel General
    Replies: 1
    Last Post: 07-27-2005, 04:05 PM
  7. Check Expire Date
    By kuanct in forum Excel General
    Replies: 5
    Last Post: 02-24-2005, 11:22 AM

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