In cell V3 I have a time validation cell that allows the user to enter end shift time between 18:00 (6:00 pm) all the way to 17:59 (5:59 pm). Beginning before midnight is necessary because my shift is overnight that starts at 18:00. The shift can end anytime there after. Sometime the shift ends before 23:00 the same day and other times the shift will last till 6:00 am. Choosing validation till 17:59 is arbitray (THIS WORKS)
In cell L2 I have a date AND time that is gathered from a different sheet called updated data. This cell shows when the report was last run.
L2 is formatted as( mm/dd/yy hh:mm )
Cell V7 takes the date only from cell L2 using integer and ADDS cell V3. Cell V7 displays END OF SHIFT.
V7 is formated as ( mm/dd/yy hh:mm )
Cell X7 shows hours till end of shift by taking cell V7 - L2. I format this cell to hh:mm.
Everything works fine IF user enters time AFTER midnight in V3.
The only part I am having problem is, is with V7
Here is the formula that WORKS AFTER MIDNIGHT
=IF(L2-INT(L2)>0.75,INT(L2)+1+V3,INT(L2)+V3)
This formula takes in consideration of when the report what last ran (L2) and what time the user enters for end time V3.
I need this to work if V3 is BEFORE midnight AND AFTER midnight.
screen shot is attached.
(screen shot shows Libre Office but at work I use Excell 2013)
There areas in black are blacked out on purpose.
Any help would be greatly appreciated
(sorry thought I could send screen shot from my computer, I'm a noob on this forum)
In cell L2 I have a date AND time that is gathered from a different sheet called updated data. This cell shows when the report was last run.
L2 is formatted as( mm/dd/yy hh:mm )
Cell V7 takes the date only from cell L2 using integer and ADDS cell V3. Cell V7 displays END OF SHIFT.
V7 is formated as ( mm/dd/yy hh:mm )
Cell X7 shows hours till end of shift by taking cell V7 - L2. I format this cell to hh:mm.
Everything works fine IF user enters time AFTER midnight in V3.
The only part I am having problem is, is with V7
Here is the formula that WORKS AFTER MIDNIGHT
=IF(L2-INT(L2)>0.75,INT(L2)+1+V3,INT(L2)+V3)
This formula takes in consideration of when the report what last ran (L2) and what time the user enters for end time V3.
I need this to work if V3 is BEFORE midnight AND AFTER midnight.
screen shot is attached.
(screen shot shows Libre Office but at work I use Excell 2013)
There areas in black are blacked out on purpose.
Any help would be greatly appreciated
(sorry thought I could send screen shot from my computer, I'm a noob on this forum)
Last edited: