+ Reply to Thread
Results 1 to 3 of 3

Check if the in and out time falls between a specific time interval

  1. #1
    Registered User
    Join Date
    09-05-2019
    Location
    India
    MS-Off Ver
    2016
    Posts
    1

    Check if the in and out time falls between a specific time interval

    I am looking for a solution after a long trial and error workings. I have 2 columns in and out with date and time. I want to check if the in and out falls between the interval 10PM to 8AM of next day. Further, for those which falls within this range, I want to check atleast minimum of 3 hours are falling within this interval. My data looks like below in col A and B.

    I need the output in column C and D where column C gives me the in and out time falls between the interval and Col D give me if it falls more than 3 hours between 10PM to 8AM.

    PHP Code: 
                     In                   Out          Between 10-8              <=3hrs
        09
    /24/2019 06:00:18      09/25/2019 01:00:22         Yes                 Yes
        09
    /09/2019 17:54:58      09/10/2019 03:32:03         Yes                 Yes
        09
    /03/2019 10:19:49      09/03/2019 23:22:40         Yes                 No
        10
    /01/2019 00:01:22      10/01/2019 11:49:39         Yes                 Yes
        09
    /24/2019 23:59:46      09/25/2019 09:10:38         Yes                 Yes
        09
    /09/2019 13:11:41      09/10/2019 01:36:47         Yes                 Yes
        09
    /09/2019 13:11:41      09/09/2019 21:36:47         No                  No 
    Last edited by srivibish; 03-26-2020 at 10:29 PM.

  2. #2
    Forum Moderator Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux
    Posts
    10,265

    Re: Check if the in and out time falls between a specific time interval

    Administrative note

    Welcome to the forum

    in your haste to solve your problem, you probably missed the yellow banner advising how to get answers faster by posting a sheet ?

    Please take a moment to read it and attach a sheet accordingly.

    Thanks you for helping us help you
    You really don't have to give me rep points for moderating. It's part of the job. Keep rep points for those who find solutions

  3. #3
    Forum Moderator Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux
    Posts
    10,265

    Re: Check if the in and out time falls between a specific time interval

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    Note: As you are new I will add it for you.Please read forum rules which you might have missed

    https://www.mrexcel.com/board/thread...erval.1128792/

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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