+ Reply to Thread
Results 1 to 3 of 3

How to lookup value based on Date time closest to criteria

  1. #1
    Registered User
    Join Date
    12-06-2012
    Location
    Johanessburg
    MS-Off Ver
    Excel 2010
    Posts
    1

    How to lookup value based on Date time closest to criteria

    Hi all,

    I have a predicament where I need to lookup date/time on a separate sheet that is closest to time Ive got on a another sheet. Also the time I am looking up is dependent on the service name that is within the description on the second sheet. If you take a look at the spreadsheet I have attached what I actually need to pull into my sheet is the ID that corresponds with the time I am looking up. I dont know if it is possible using excel I dont really know much about VBA, but I need to get this thing working. Any help would be highly appreciated. I am using Execl 2010 and have attached a sample spreadsheet.

    I hope my question makes sense...
    Attached Files Attached Files

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

    Re: How to lookup value based on Date time closest to criteria

    pl see the attached file with formula.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    08-04-2011
    Location
    Anchorage, AK
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: How to lookup value based on Date time closest to criteria

    Hi. I have similar question and was able to use your file to meet most of my need. Is it possible to add in there a check to see that one more criteria matches? See in the attached that C2 should bring back "Location 1" because the device names match in A2 and F2 AND it is the nearest date/time. I'm stumped.

    Thank you.
    Attached Files Attached Files

+ 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. Lookup closest time value based on criteria
    By ryanpog1 in forum Excel General
    Replies: 16
    Last Post: 07-10-2019, 09:15 PM
  2. 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
  3. [SOLVED] Finding the closest Date - Lookup
    By dluhut in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 05-08-2013, 04:58 PM
  4. Return value based on closest time/date and name
    By Steven87 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-11-2013, 03:52 PM
  5. Two criteria lookup - exact & closest match
    By kapucino in forum Excel General
    Replies: 3
    Last Post: 01-28-2012, 01:19 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