Okay, so I have scoured the Forum's and the web in general. There is a lot of info on how to calculate time but this is not addressed. I need to calculate hours worked between 9:00 PM - 12:00 AM when the employee works over midnight. Example: Start 9:00 AM Stop 2:30 AM should equal 3 because the employee worked between 9:00 PM and Midnight. Right now I have it is incorrectly working with
Start 6:30 AM Stop 2:30 AM works with = IF (End Time > 9:00 PM, End Time - 9:00 PM, 11:59:59 PM - 9:00 PM) * 24
Start 7:30 AM Stop 8:30 PM does not work with the same formula because the False triggers the 11:59:59 PM - 9:00 PM because the End time is not greater.
Using = IF (End Time > 9:00 PM, End Time - 9:00 PM, 0) * 24 of course does not work either because Excel treats time worked the next day as Less than the end time because it does not realize that it is the next day . Any help would be greatly appreciated!
V/R,
elrayo79
Start 6:30 AM Stop 2:30 AM works with = IF (End Time > 9:00 PM, End Time - 9:00 PM, 11:59:59 PM - 9:00 PM) * 24
Start 7:30 AM Stop 8:30 PM does not work with the same formula because the False triggers the 11:59:59 PM - 9:00 PM because the End time is not greater.
Using = IF (End Time > 9:00 PM, End Time - 9:00 PM, 0) * 24 of course does not work either because Excel treats time worked the next day as Less than the end time because it does not realize that it is the next day . Any help would be greatly appreciated!
V/R,
elrayo79