At a daycare 8:00 AM cell V208 is the start time and 6:00 PM cell W208 is the end time. First shift starts at 8 am (AV2) and ends at 6 pm (AW2). I need a 1 if this providers hours are within first shift or a 0 if not. here is my current formula. It is giving me a 0 when I should have a yes. =IF(AND(V208<=$AV$2,W208>=$AW$2),1,0)+IF(W208<V208,1,0). Some time frames will cross midnight.