I want to return "1" for each hour worked in a shift. I can get this to work before midnight:
Shift Start Time A2
Shift Finish Time B2
Times 6:00 - 5:00 C1:Z1
=if(AND(C$1>=$A2,C$1<$B2),1," ") returns "1" in Row 2 for each hour worked.
I am stumped as to the formula required to return "1" for a shift that spans midnight
Any help appreciated.
Bookmarks