+ Reply to Thread
Results 1 to 4 of 4

Matching dates with different formats and multiple criteria

  1. #1
    Registered User
    Join Date
    07-24-2015
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    2

    Matching dates with different formats and multiple criteria

    Hi,
    I have this worksheet that I'm currently working on.
    I need to compute for the overtime hours by the staff on a daily basis.
    However, the data provided by our IT shows that some staff had multiple in and out per day. Thus, it's very difficult for me to get the no of hours worked if I have to check the in/out manually and one at a time - it would be very tedious and time consuming.
    I wanted to do a vlookup or match however, the dates are in different formats.
    How do I match the earliest time checked in and latest time checked out by a staff.
    Attached is the worksheet.

    Thank you in advance for the help!
    Attached Files Attached Files

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

    Re: Matching dates with different formats and multiple criteria

    To find earliest time for a given date

    =INDEX($D$4:$D$100,SMALL(IF(INT($D$4:$D$100)=INT($D4),ROW($A$4:$A$100)-ROW($A$4)+1,""),1))

    For latest time for same date

    =INDEX($F$4:$F$100,LARGE(IF(INT($F$4:$F$100)=INT($F5),ROW($A$4:$A$100)-ROW($A$4)+1,""),1))

    These array formulas and need to entered with CTRL+SHIFT+ENTER

    Hope this helps.

    The results are in columns AA and AB of the attached.

  3. #3
    Registered User
    Join Date
    07-24-2015
    Location
    Singapore
    MS-Off Ver
    2010
    Posts
    2

    Re: Matching dates with different formats and multiple criteria

    Hi John,

    Thanks for the formula. It works just right. However, I need to refer the data from another sheet that lists all the in/out of all staff. Thus, how to modify the formula so that I could match the in/out timing with the corresponding staff?

    Thanks again!

  4. #4
    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,209

    Re: Matching dates with different formats and multiple criteria

    Can you post a sample file showing the sheets with in/out and your "summary" please.

+ 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. Dates in Multiple Formats...Need to make same
    By cartica in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-16-2015, 06:37 PM
  2. [SOLVED] Evaluating and matching dates of different formats
    By Wedge120 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-01-2013, 02:28 PM
  3. Matching Criteria from adjacent dates
    By pickslides in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-06-2013, 11:37 PM
  4. Macro to copy a range of dates based on matching criteria
    By christopherb in forum Excel General
    Replies: 0
    Last Post: 06-10-2011, 05:39 AM
  5. Count if between two dates and matching criteria
    By RichST in forum Excel General
    Replies: 2
    Last Post: 10-12-2010, 07:55 AM
  6. Counting the Number of Dates with Matching Month Criteria
    By zom in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-17-2008, 07:47 PM
  7. Counting the Number of Dates with Matching Month Criteria
    By ExcelTip in forum Tips and Tutorials
    Replies: 0
    Last Post: 08-25-2005, 05:50 AM

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