Forum Discussion

Cambosity100's avatar
Cambosity100
Brass Contributor
Sep 28, 2021

Calculating time conflicts

Hi all !

     I am so close but no cigar. Please view attached file. I am trying to count shifts that conflict with a specified time frame. All data is imaginary but moving through all potential counting/not counting scenarios. I have highlighted errors. It is these last 2 scenarios that is eluding me... 

     With thanks in advance to the Excel community 🙂

3 Replies

  • Cambosity100 

    The basic formula is

    = COUNTIFS(
       ShiftStart, "<"&CriterionEnd,
       ShiftEnd, ">"&CriterionStart)

    It is still possible to hit problems with rounding error so you could build in an allowance of 1sec overlap which would be ignored.

     

     

Resources