How can i check date+time overlap?
See attached excel file.
Checking : ID vs NUMBER vs CONTROL NUMBER vsDate vs Time OVERLAP
Thanks,
zRc55
How can i check date+time overlap?
See attached excel file.
Checking : ID vs NUMBER vs CONTROL NUMBER vsDate vs Time OVERLAP
Thanks,
zRc55
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
DATE TIME OVERLAPS.xlsx
Revised sample with explantion..
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.
I put a sumproduct formula in column L and then Autofilter on results > 1
Kind regards,
Piet Bom
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
Hi,
Need help:
Another scenario for overlap and date skip.
Please help.
Thanks,
Zaldy
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]
Sorry.
Thanks for the advice Admin.
Another attempt.........
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.
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
@zRc55,
I do not understand why the dates in row 23 and 26 are invalid.
Can you explain why ?
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.
<---------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
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
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
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
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.
Hi PietBom,
Any help please.
Thanks,
Zaldy
Hi newdoverman,
No Checking for time on vs time off overlap?
Attached file for the explanation.
Thanks,
Zaldy
Last edited by zRc55; 09-27-2013 at 01:14 AM. Reason: No name for Hi.
Hi Zaldy,
I was a few days off.
I now added a column for Check2
I hope this helps.
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
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks