I am working on a spreadsheet to track machine downtime. The user enters the start time and end time of any machine downtime. The time entered must occur on or after the lot start time or shift start time (whichever occurs first) and on or before the lot end time or shift end time, (whichever occurs first):
1st shift starts at 07:00
2nd shift starts at 15:00
3rd shift starts at 23:00</SPAN>
A1 = lot start</SPAN>
A2 = lot end</SPAN>
B1 = downtime start</SPAN>
C1 = downtime end</SPAN>
Validating the downtime (Time between A1 and A2) works fine as long as that time does not span midnight. </SPAN>
Likewise,
validates as a TRUE statement as long as the time does not span midnight.</SPAN>
I don’t have any issue with calculating the length of the downtime; I just need to write a custom validation formula that will only accept values within the range. Is there any way to do it without involving dates? </SPAN>
Thanks</SPAN>
1st shift starts at 07:00
2nd shift starts at 15:00
3rd shift starts at 23:00</SPAN>
A1 = lot start</SPAN>
A2 = lot end</SPAN>
B1 = downtime start</SPAN>
C1 = downtime end</SPAN>
Validating the downtime (Time between A1 and A2) works fine as long as that time does not span midnight. </SPAN>
Likewise,
Code:
=IF(B1>=A1, B1<=A2)
I don’t have any issue with calculating the length of the downtime; I just need to write a custom validation formula that will only accept values within the range. Is there any way to do it without involving dates? </SPAN>
Thanks</SPAN>