I found this post on another web site.
=This formula works on the basis that the start time is in the format dd/mm/yyyy hh:mm in A1 and that the hours to be added are formatted as hour and the entries to this cell made as e.g. =4/24 in B1
IF(AND(WEEKDAY(A1,2)=5,A1+B1>(INT(A1)+0.70834)),INT(A1)+3.33334+((A1+B1)-(INT(A1)+0.70834)),IF((A1+B1)>(INT(A1)+0.70834),INT(A1)+1.3334+((A1+B1)-(INT(A1)+0.70834)),A1+B1))
It was posted by Robert B, I’ve tried contacting him to get a syntax explanation, but as of now no response.
I’ve been working with the formula and it does work. The one problem is that it no longer cuts off at 5pm after adding 19 hours. Or, whenever you double the shift. So a 9hr work day stops working at 19 hours or a 10hr work day stops working at 20 hrs. I can’t figure out why. Anyone have any ideas on this one. I am looking for something that wont have any cut off. If that isn’t possible at least in the range of 150-200 hours. The decimals are the start time and end time for the day. What really throws me off is the “3.3334” & “1.3334”. I don’t understand why he would be adding 3 days to the date and than 1 at the end.
Bookmarks