I am trying to return a value (Yes, or No) if the shift was worked through midnight on a time card.
=IF($P$10=MEDIAN(B3,C3,$P$10),"Yes","No")
This seemed the most promising of anything I was able to find or try, but I am having no luck what so ever.
Furthermore, I would like to add a column of Hours worked since midnight. I am also having no luck with that.
Is there any way I can achieve this in Sheets?
An example. If I got this column to say YES worked past 12AM then I would use that YES in an IF function to calculate how many hours since 12AM was the OUT time.
Another Example. If time in is 4PM and time out is 2AM then this column would say Yes 12AM is between those times
If time in was 7AM and time out was 3PM it would say No 12AM is not between those times.
Look at the TIME CARD sheet MY FULLY EDITABLE SHEET
Formulas I have attempted
=MEDIAN("12:00:00 AM",TIMEVALUE(B4), TIMEVALUE(C4))="12:00:00 AM"
Have Also Used a Cell with 12 AM, and without the seconds.
=AND($P$10>B3,$P$10<C3)
=IF(MEDIAN($P$10,B3,C3)=$P$10, "Yes", "No")