Question

In Excel I have:

A1                         B1                             C1                  D1
10/april/2013 01:22:00    13/april/2013 05:24:00    08/april/2013 01:00:00    14/april/2013 08:44:00

A1 - B1 is the first date range. C1 - D1 is the second date range.

So a function could return true in this case.

If range 2 dates were 02/april/2013 and 07/april/2013, would return false.
If range 2 dates were 05/april/2013 and 11/april/2013, true.

How could I check whether ANY DATE FROM A range of dates ALSO EXISTS IN another range of dates?

Was it helpful?

Solution

This formula assumes that the earlier date/time comes first. If that is not the case, use MIN and MAX to ensure the correct comparisons.

=AND(D1>=A1,C1<=B1)
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top