+ Reply to Thread
Results 1 to 6 of 6

Filtering the log in and log out time

  1. #1
    Registered User
    Join Date
    01-11-2020
    Location
    KSA
    MS-Off Ver
    2013
    Posts
    7

    Filtering the log in and log out time

    Need help please,,,

    Been trying a lot of formulas from the forum but still can't get the result I want. I want to filter the time where there is a standard time in and time out in the morning, noon and end shift. Raw data are collected from a registering machine and somehow there are multiple records in just one person and sometime there are missing record. I had posted the spreadsheet and in the time in time out are the time exactly what I want to formulate highlighted in yellow.

    Given in the punch time,

    In the Morning Time in, If time in is less than standard time it should give me standard time otherwise the log in time.
    In the Morning Time out, any log between 1200-1300 hours it should give me the standard time out otherwise the log out time.
    and goes same with the Afternoon time in and time out.


    Hopefully somebody can give me a guidance. Thanks..
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    01-04-2020
    Location
    Hull, UK
    MS-Off Ver
    2016
    Posts
    60

    Re: Filtering the log in and log out time

    I've taken a stab at it. Let me know if that's what you meant
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-11-2020
    Location
    KSA
    MS-Off Ver
    2013
    Posts
    7

    Re: Filtering the log in and log out time

    Thank you but it is not like it.

    So,

    Column G (Time in) should be from 0645-1200 hours
    Column H (Time out) should be <=1200 hours
    Column I (Time in) should be >=1300 hours
    Column J (Time out) should be from 1300-1845 hours

    Challenge I am having is the punch time which doesn't record in 4 columns only.
    Some instances, from punch1-4 they are all falling into the column(time in) G. That's where distorting my formulas when i am moving to time out column.

    Thanks.

  4. #4
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Filtering the log in and log out time

    I think the attached will get you closer, but you need more logic. If there are only 3 punches, where's the cut-off to determine if they missed the clocking in after lunch, or if they missed the clocking out at the end of the day.

    In other words, if the 3rd punch is 15:00 and there is no 4th punch, is that a late clock in from lunch, or did they miss the clock-in from lunch and that's their early clock out time?
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    01-11-2020
    Location
    KSA
    MS-Off Ver
    2013
    Posts
    7

    Re: Filtering the log in and log out time

    Hi Gregb11,

    Thank you so much.

    To answer this ""In other words, if the 3rd punch is 15:00 and there is no 4th punch, is that a late clock in from lunch, or did they miss the clock-in from lunch and that's their early clock out time?"",
    it is the early clock out time.

    Looking at your formula in the AM Time out, Punch2 sometimes is not where the clock out is. These could be still morning clock in and evening clock out. Same in the afternoon Time in.

    Meaning at all the punches log, it could be any of them falls into to the column AM time in/out and PM time in/out and sometimes blanks log are there.

  6. #6
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,831

    Re: Filtering the log in and log out time

    Quote Originally Posted by Eusoj View Post
    To answer this ""In other words, if the 3rd punch is 15:00 and there is no 4th punch, is that a late clock in from lunch, or did they miss the clock-in from lunch and that's their early clock out time?"",
    it is the early clock out time.
    It was just an example - so at what time does it change from an early clock-out to a late clock-in? If the punch-time is 13:50, it's probably a late clock-in, not an early clock-out, no? And in this case they missed punching out for the day?

    Punch2 sometimes is not where the clock out is. These could be still morning clock in and evening clock out. Same in the afternoon Time in.
    So what's the rule?
    I'm assuming the first punch is always regarded as the AM clock-in time.
    The second punch could either be the AM clock-out time, or they missed that punch and it's the PM Clock-in time, or they missed that punch and it could be the clock-out time.
    The 3rd punch could be the PM clock-in time or they missed the punch in and it's actually the clock-out time.
    The 4th punch I would assume is always assumed to be the PM clock-out time.
    Would they clock-in/out more than 4 times? If they could clock in and out for breaks as well, then it would be very difficult to determine what's a clock-in/out vs. a missed punch.

+ 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. Time stamp filtering
    By Mroy in forum Excel General
    Replies: 2
    Last Post: 02-27-2015, 04:01 PM
  2. [SOLVED] Filtering time stamped data
    By Mroy in forum Excel General
    Replies: 2
    Last Post: 01-29-2014, 01:16 PM
  3. Filtering a pivot by time range
    By koootzz in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 05-05-2013, 01:26 PM
  4. [SOLVED] Filtering date/time
    By nickstick in forum Excel General
    Replies: 12
    Last Post: 03-15-2013, 06:58 PM
  5. Filtering based on date and time
    By kinseld5 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-18-2012, 08:05 AM
  6. Filtering out weekday dead time
    By Tony Clarke in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 03-26-2006, 07:00 PM
  7. [SOLVED] Filtering TIME/DATE
    By Mark in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-04-2005, 11:35 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