+ Reply to Thread
Results 1 to 4 of 4

Find closest time match with multi criteria, return another value

  1. #1
    Registered User
    Join Date
    03-31-2015
    Location
    Texas, United States of America
    MS-Off Ver
    2013
    Posts
    1

    Find closest time match with multi criteria, return another value

    Hello! Im hopeful I could borrow your time and knowledge to solve a problem I have. The excel file I am working with is actually 5 different spreadsheets, each with over a half million lines of data. Here is my dilemma:

    Zone is sometimes UNK(“Unknown”) in specific columns but is known in others. This is my problem.

    What I need is a formula that looks at the user id, date and closest time match to answer for the “unknown” zone.

    See attachment for example. I really appreciate any help you can provide.

    Regards,
    Daniel
    Attached Files Attached Files

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

    Re: Find closest time match with multi criteria, return another value

    Welcome to the forum!

    In the workbook, it says this:

    The user ID has a match
    The dates also match
    The UNK fell at 12:00:04 AM, the closest known was Zone 3 at 12:00:01 AM
    Where will we find the matches and the Zone 3 at 12:00:01 AM entry?
    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.

  3. #3
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Find closest time match with multi criteria, return another value

    Please try at E2 and drag down

    =IF(B2="unk",INDEX($B$2:$B$5,MATCH(AGGREGATE(15,6,ABS(D2-$D$2:$D$5),2),INDEX(ABS(D2-$D$2:$D$5),),)),"")

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: Find closest time match with multi criteria, return another value

    Hi
    Try this in E2:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

+ 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. Find closest time value based on multiple criteria
    By jennifers in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-30-2017, 06:25 PM
  2. Need help in multi criteria find and match value
    By alvin8866 in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-21-2016, 08:20 PM
  3. [SOLVED] For a multi-criteria match, return the value closest to current value in list
    By FraserMBrowning in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-04-2015, 06:16 AM
  4. Find the closest time match
    By VBAasdf in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-06-2015, 12:20 PM
  5. SOS:Return multiple values against multi criteria match and index function
    By nitesh_inin in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-26-2012, 05:45 PM
  6. Replies: 6
    Last Post: 01-28-2012, 06:59 PM
  7. Multi-Column Closest Match
    By iAnomaly in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-17-2011, 05:42 PM

Tags for this Thread

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