+ Reply to Thread
Results 1 to 22 of 22

Date + time overlap checking

  1. #1
    Registered User
    Join Date
    02-02-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    14

    Post Date + time overlap checking

    How can i check date+time overlap?
    See attached excel file.

    Checking : ID vs NUMBER vs CONTROL NUMBER vsDate vs Time OVERLAP


    Thanks,
    zRc55
    Attached Files Attached Files

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Date + time overlap checking

    Hi,

    "Checking : ID vs NUMBER vs CONTROL NUMBER vsDate vs Time OVERLAP"

    Checking against what criteria? Giving what intended results? Placing these results where?

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Registered User
    Join Date
    02-02-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Date + time overlap checking

    Checking by means of :
    Example: ID 1 usually have 2 sets of number (1 or 2) and have 20 or less control numbers. Control number+date+time would not be overlap with another control number.
    Example, Scenario 1:
    ID 1, NUMBER 1 , Control number 1 Date+Time ON 8/18/2013 9:00, Date+Time OFF 8/18/2013 8:00, this is overlap.
    Scenario 2: ID 1, NUMBER 1 , Control number 2 Date+Time ON 8/18/2013 21:00, Date+Time OFF 8/19/2013 03:00
    ID 1, NUMBER 1 , Control number 3 Date+Time ON 8/19/2013 2:00, Date+Time OFF 8/9/2013 8:00, this is overlap.

  4. #4
    Registered User
    Join Date
    02-02-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Date + time overlap checking

    DATE TIME OVERLAPS.xlsx
    Revised sample with explantion..

  5. #5
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Date + time overlap checking

    I put a sumproduct formula in column L and then Autofilter on results > 1
    Attached Files Attached Files
    Kind regards,
    Piet Bom

  6. #6
    Registered User
    Join Date
    02-02-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Date + time overlap checking

    Thanks Piet Bom

    No checking for TIME ON vs TIME OFF overlap?
    Ex : ON OFF
    Same Date 10:23 9:00

    Another checking, Can we check also skip date within the ID


    Thanks ,
    zRc55

  7. #7
    Registered User
    Join Date
    02-02-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Date + time overlap checking

    Hi,

    Need help:

    Another scenario for overlap and date skip.
    Please help.



    Thanks,
    Zaldy
    Attached Files Attached Files

  8. #8
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Date + time overlap checking

    Zaldy,

    Please do not bump your thread so often. You need to wait for the user to be online to reply to you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  9. #9
    Registered User
    Join Date
    02-02-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Date + time overlap checking

    Sorry.

    Thanks for the advice Admin.

  10. #10
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Date + time overlap checking

    Another attempt.........
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    02-02-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Date + time overlap checking

    Thanks you so much PietBom.

    May we also request a mcaro for this one if possible?
    Because sometimes we have more than 50,000 records to check.


    Thanks again.

  12. #12
    Registered User
    Join Date
    02-02-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Date + time overlap checking

    Hi PietBom,

    Hope you can still check my request.

    Check Row 23 and 26, there is an error, no checking/errors indicated.
    See attached file.


    Thanks again in Advance.
    zRc55
    Attached Files Attached Files

  13. #13
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Date + time overlap checking

    @zRc55,
    I do not understand why the dates in row 23 and 26 are invalid.
    Can you explain why ?

  14. #14
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Date + time overlap checking

    Could this work for you? I combined the 3 columns that made up a date to form a real date. This column is actually redundant if you use Date and Time instead of just times. This would also simplify calculations if you went that wa.
    Attached Files Attached Files
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  15. #15
    Registered User
    Join Date
    02-02-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Date + time overlap checking

    Hi NewDoverman,

    I would like to check if the date+time is overlap with the next Control Number with the same ID and also that check for skip date.

    8/18/2012 14:20 8/18/2012 18:17 FALSE FALSE
    8/18/2012 20:30 8/18/2012 3:17 FALSE FALSE
    8/18/2012 3:20 8/19/2012 7:35 FALSE FALSE - with this case, Date for 3:20 is must be 8/19/2012.
    8/19/2012 8:15 8/19/2012 13:30 FALSE FALSE

    Thanks,
    zRc55

  16. #16
    Registered User
    Join Date
    02-02-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Date + time overlap checking

    Hi Piet Bom,

    Row 23, Invalid date because in Row 22, date and time is overnight, so the date for row 23 must be August 23 because the date+time is ascending.
    Row 26, Invalid date because in Row 25, date and time is overnight, so the date for row 26 must be August 24 because the date+time is ascending.


    Thanks,
    zRc55

  17. #17
    Registered User
    Join Date
    02-02-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Date + time overlap checking

    Hi PietBom,


    Row 23 and 26 is invalid because the date previous to his current date is ascending but the date at row 23 is not ascending.

    Explanation :
    The date and time for row 2 to 39 must be in ascending order or no overlap of each row and his next row. For every row, the TIME ON and TIME OFF must not be overlap and the next Row must not be also overlap with the previous Rows.



    Thanks,
    zRc55

  18. #18
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Date + time overlap checking

    The dates and times for time on and time off have been corrected in the time off column to reflect going past midnight. Then, the data has been sorted according to the ID and the time on. All dates and times in the time on and time off have been reformatted to show Date and Time with AM/PM.
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    02-02-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Date + time overlap checking

    Hi PietBom,

    Any help please.


    Thanks,
    Zaldy

  20. #20
    Valued Forum Contributor
    Join Date
    10-14-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2019
    Posts
    353

    Re: Date + time overlap checking

    Hi Zaldy,
    I was a few days off.
    I now added a column for Check2
    I hope this helps.
    Attached Files Attached Files

  21. #21
    Registered User
    Join Date
    02-02-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Date + time overlap checking

    Hi newdoverman,

    No Checking for time on vs time off overlap?
    Attached file for the explanation.


    Thanks,
    Zaldy
    Attached Files Attached Files
    Last edited by zRc55; 09-27-2013 at 01:14 AM. Reason: No name for Hi.

  22. #22
    Registered User
    Join Date
    02-02-2011
    Location
    Philippines
    MS-Off Ver
    Excel 2003
    Posts
    14

    Re: Date + time overlap checking

    Hi PietBom,

    Sorry and Thank you so much.

    One more thing.
    Can we check also if there are missing date in between the START and END of each ID.
    See attached file fro the explanation.

    If start date is Sept 8 and end to 15. And we find out that there is missing date between Sept 8 to 15 then "error" will show.
    Is this possible?



    Regards,
    Zaldy
    Attached Files Attached Files

+ 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. Replies: 2
    Last Post: 08-16-2013, 10:18 AM
  2. Replies: 0
    Last Post: 08-14-2013, 11:21 AM
  3. [SOLVED] Cross-checking list to determine overlap of entries
    By rhodesp in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-15-2013, 03:52 PM
  4. [SOLVED] Check for date and time overlap on a simple invoice
    By DJadwin in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 02-19-2013, 10:11 PM
  5. Calculating date/time overlap for multiple equipment
    By rhojjati in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-03-2012, 11:33 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