+ Reply to Thread
Results 1 to 7 of 7

Formula to create contract expiry lists based on date

  1. #1
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Formula to create contract expiry lists based on date

    Morning all,

    I have a schedule of contracts which I'd like to summarise into different lists based on when they expire, e.g. <1 month, <6 months.

    I've attached an example of the data I'm working with.

    If you have any queries just give me a shout.

    Thanks in advance,

    Snook

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

    Re: Formula to create contract expiry lists based on date

    for <1
    =IFERROR(INDEX($A:$A,SMALL(INDEX((DATEDIF(TODAY()-1,$B$2:$B$27,"m")>0)*10^10+ROW($B$2:$B$27),0),ROWS(D$2:D2))),"")
    for <6
    =IFERROR(INDEX($A:$A,SMALL(INDEX((DATEDIF(TODAY()-1,$B$2:$B$27,"m")>5)*10^10+ROW($B$2:$B$27),0),ROWS(F$2:F2))),"")
    for < 12
    =IFERROR(INDEX($A:$A,SMALL(INDEX((DATEDIF(TODAY()-1,$B$2:$B$27,"m")>11)*10^10+ROW($B$2:$B$27),0),ROWS(H$2:H2))),"")
    try the above formula and copy towards down
    Samba

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

  3. #3
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Formula to create contract expiry lists based on date

    Absolutely bob on, cheers samba_ravi!

  4. #4
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Formula to create contract expiry lists based on date

    I've just noticed that the formula falls over when the data contains expired agreements. How can I amend it to take account of these?

    Thanks in advance,

    Snook

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Formula to create contract expiry lists based on date

    maybe this (and similar for 6 & 12 months):

    =IFERROR(INDEX($A:$A,AGGREGATE(15,6,ROW($B$2:$B$27)/(($B$2:$B$27 > TODAY())*($B$2:$B$27 < EDATE(TODAY(),1))),ROWS($1:1))),"")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Valued Forum Contributor
    Join Date
    09-09-2009
    Location
    Liverpool, England
    MS-Off Ver
    W: 2021 H: 365
    Posts
    940

    Re: Formula to create contract expiry lists based on date

    Just the job, cheers Glenn Kennedy!

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,055

    Re: Formula to create contract expiry lists based on date

    you're welcome and thanks for the rep.

+ 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: 1
    Last Post: 01-30-2018, 08:45 PM
  2. [SOLVED] Contract Expiry Date Graph/Timeline?
    By exceln3wb in forum Excel General
    Replies: 2
    Last Post: 09-27-2017, 03:27 PM
  3. [SOLVED] Count days before expiry date & after Expiry date in one formula
    By Macfool in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-16-2017, 02:58 PM
  4. [SOLVED] Contract Expiry Dates
    By nwarren in forum Excel Programming / VBA / Macros
    Replies: 37
    Last Post: 05-21-2015, 01:39 PM
  5. [SOLVED] Help with formula to return a value based on if that expiry date is within year
    By mw91 in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 01-08-2015, 11:37 AM
  6. [SOLVED] Allocating a given date to a date range bucket: futures contract expiry
    By labogola in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-26-2013, 08:50 AM
  7. [SOLVED] Alarm activated when contract expiry date is reached?
    By mole_man in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 05-02-2013, 11:07 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