+ Reply to Thread
Results 1 to 9 of 9

Find closest time value based on multiple criteria

  1. #1
    Registered User
    Join Date
    06-29-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    6

    Question Find closest time value based on multiple criteria

    Hi all,

    I hope you can help me figure out a formula for this.

    Attached is my data.

    In COLUMN T on Sheet 1 tab, I need to get the closest time on COLUMN Z on Sheet 0 tab using COLUMNS C and N on Sheet 1 tab.

    I am hoping someone can help!

    Thank you.
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    02-07-2013
    Location
    Philippines
    MS-Off Ver
    Excel Online; 365
    Posts
    610

    Re: Find closest time value based on multiple criteria

    Kamusta Jennifers?? Kamusta ang Makati?

    Could you upload a sample workbook with your desired results?
    If I've helped U pls click on d *Add Reputation

  3. #3
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Find closest time value based on multiple criteria

    can you explain about criteria.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  4. #4
    Registered User
    Join Date
    06-29-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Find closest time value based on multiple criteria

    Hello AVK,

    i want to match the closest SIGN_IN time of the person (column A) in SHEET 1 based on the time indicated in COLUMN N

    If you look at the attachment, the result i would like to see in sheet 1 column t cell 'T4' is cell 'Z4' on the first sheet. criteria is sheet 1 columns C and N and look up value is column Z on the first sheet.

    i hope this makes sense.

    thank you!

  5. #5
    Registered User
    Join Date
    06-29-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Find closest time value based on multiple criteria

    Hello AVK,

    Have you hadva chance to look into this?

    Appreciate the help in advance!

    Thanks!

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,170

    Re: Find closest time value based on multiple criteria

    Surely not Z4 as the dates are different? Z21 is a match on Date & Time

    Please add some results to your posted file

  7. #7
    Registered User
    Join Date
    06-29-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    6

    Re: Find closest time value based on multiple criteria

    Hi,

    Thank you all for looking into this.

    Just to make the query clearer:

    Sheet 01 - employee schedule
    Sheet 02 - sign in and sign out time of the employee

    GOAL: to check based on signin and signout how much the deviate from their schedule.

    Sample:

    Sheet 01 row 3 - employee ended the lunch at 1630; looking at sheet 02 closest signin time was cell Z9 at 1645.

    Need to identify formula to reflect the result with multiple employees and dates as reference.

    Thank you.
    Attached Files Attached Files

  8. #8
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Find closest time value based on multiple criteria

    one clarification required : In both sheet, "PRI_INDEX" different. For matching atleast one field common.

  9. #9
    Registered User
    Join Date
    06-29-2012
    Location
    Philippines
    MS-Off Ver
    Excel 2010
    Posts
    6
    Thank you AVK. I use the EMP_ID or EMP_SHORT_NAME as the unique reference field.

+ 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. Replies: 4
    Last Post: 10-27-2015, 02:00 PM
  3. Replies: 3
    Last Post: 06-12-2015, 10:33 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. [SOLVED] Find closest value to meet given criteria
    By saysys in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-12-2014, 02:11 AM
  6. 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
  7. [SOLVED] Find a number closest to 30 in a range with one more criteria (criteria includes text)
    By Sarangsood in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-22-2013, 01:16 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