How can I know if one hour is within a range of other hours? I put the image
For example, E2 should return an Inside if B2 is in the range of C2: D2, C3: D3, E4: C4 etc. or an Outside if it does not meet the condition.
I tried this code =IF(AND(B2>=MIN(C2:C16),B2<=MAX(D2:D16)),"YES","NO")
But it brings me the error #¿NOMBRE?
How you could solve it, welcome suggestions