+ Reply to Thread
Results 1 to 4 of 4

Lookup closest subsequent date

  1. #1
    Registered User
    Join Date
    11-26-2013
    Location
    .
    MS-Off Ver
    Excel 2010
    Posts
    33

    Lookup closest subsequent date

    Hi.

    I have two tables that are tracking different processes (simplified on table 1 and 2 of the attached).

    I need a way of linking the chronologically closest date value found in table 2 into table 1 - but the date being carried over must be after' the date value in table 1.

    Column C contains the desired output.

    Hope this makes sense. Please let me know if I need to clarify anything further & thanks for helping.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert KOKOSEK's Avatar
    Join Date
    08-03-2018
    Location
    Pole in Yorkshire, UK
    MS-Off Ver
    365/2013
    Posts
    2,743

    Re: Lookup closest subsequent date

    I am not mistype anything (into C3):

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    accept with Ctrl+Shift+Enter as it is array formula.
    Happy with my answer * Add Reputation.
    If You are happy with solution, please use Thread tools and mark thread as SOLVED.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,926

    Re: Lookup closest subsequent date

    In C3:

    =IFERROR(1/(1/MIN(IF($F$3:$F$12=A3,IF($G$3:$G$12>B3,$G$3:$G$12)))),"")

    ... confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Then drag copy down.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    11-26-2013
    Location
    .
    MS-Off Ver
    Excel 2010
    Posts
    33

    Re: Lookup closest subsequent date

    It works - thank you both

+ 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. Match Closest Date in a table but the date can't be after the lookup value
    By excelmelucy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-24-2019, 06:05 AM
  2. Lookup value based on closest date either side of a date
    By RollingStone88 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-10-2019, 08:38 AM
  3. Lookup value with multiple criteria and find date that is closest
    By Hellenborg in forum Excel Formulas & Functions
    Replies: 15
    Last Post: 10-26-2017, 07:36 AM
  4. Replies: 3
    Last Post: 08-23-2017, 07:04 PM
  5. How to lookup value based on Date time closest to criteria
    By ilionel1 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-08-2013, 02:01 PM
  6. Current date lookup and closest time display
    By Am I Wry in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-01-2013, 02:44 PM
  7. [SOLVED] Finding the closest Date - Lookup
    By dluhut in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 05-08-2013, 04:58 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