+ 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 Guru Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    Excel 2010 on Linux
    Posts
    11,472

    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
    Be very, very careful using IFERROR ! It hides ALL errors which is not always what you want to get correct results

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

    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)

Similar Threads

  1. [SOLVED] Time Difference excluding a specific time interval
    By nickyowen99 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-01-2019, 01:37 AM
  2. Replies: 1
    Last Post: 07-23-2019, 11:09 AM
  3. Count if specific time falls within time range
    By JPED41 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-09-2018, 07:31 PM
  4. Check if cell is in time interval
    By soli004 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-23-2016, 09:49 AM
  5. COUNTIF time interval falls between set of time ranges
    By eyoonbbj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-15-2014, 01:44 PM
  6. [SOLVED] SUM data that falls within a time interval
    By shelsx in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-12-2012, 11:17 PM
  7. Replies: 0
    Last Post: 04-23-2012, 10:06 AM

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