Hi,
I have a problem that I've battled with but haven't been able to overcome and I was hoping that someone could point me in the right direction. I have a list of ranges defined in two columns that I would like to be able to compare to a second list of ranges that are also defined in two columns. For example this is how the list of ranges that I want to query against looks like (I call the first column A and the second column B):
A_______________B
17217812_______17253252
116044149______116112949
159550790______159601159
199594765______199613428
235272325______236063911
I then have some ranges generated that I want to be able to easily check with formula to see if any of them overlap with any of the ranges in the example above. For eaxample I might generate a list that looks like this:
C____________D
235267472____235272980
232926692____233021820
201678345____201740432
181912089____182124367
235267472____235272980
At first I did a lot of searching and eventually found the great example in another thread http://chandoo.org/wp/2010/06/01/date-overlap-formulas/ So I adapted the formula to read the following:
=IF(OR($A$2:$A$6<C2,D2<$B$2:$B$6),"Do not overlap","Overlap")
And then filled it down. Here is the problem - it only works if the overlapping ranges are adjacent to each other - I think this may have something to do with the way that I've defined the list of ranges. For example above you can see that the range in C2D2 and C6D6 are actually the same and overlap with the range in A6B6, but using my formula only the range in C6D6 is marked as "Overlap" because it directly adjacent to the range with which it overlaps, and here I am stuck despite hours of fiddling around and searching for an answer I always end up back at the same problem.
Am I on the right track or should I be using a completely different approach?
Any help would be much appreciated,
Anthony
I have a problem that I've battled with but haven't been able to overcome and I was hoping that someone could point me in the right direction. I have a list of ranges defined in two columns that I would like to be able to compare to a second list of ranges that are also defined in two columns. For example this is how the list of ranges that I want to query against looks like (I call the first column A and the second column B):
A_______________B
17217812_______17253252
116044149______116112949
159550790______159601159
199594765______199613428
235272325______236063911
I then have some ranges generated that I want to be able to easily check with formula to see if any of them overlap with any of the ranges in the example above. For eaxample I might generate a list that looks like this:
C____________D
235267472____235272980
232926692____233021820
201678345____201740432
181912089____182124367
235267472____235272980
At first I did a lot of searching and eventually found the great example in another thread http://chandoo.org/wp/2010/06/01/date-overlap-formulas/ So I adapted the formula to read the following:
=IF(OR($A$2:$A$6<C2,D2<$B$2:$B$6),"Do not overlap","Overlap")
And then filled it down. Here is the problem - it only works if the overlapping ranges are adjacent to each other - I think this may have something to do with the way that I've defined the list of ranges. For example above you can see that the range in C2D2 and C6D6 are actually the same and overlap with the range in A6B6, but using my formula only the range in C6D6 is marked as "Overlap" because it directly adjacent to the range with which it overlaps, and here I am stuck despite hours of fiddling around and searching for an answer I always end up back at the same problem.
Am I on the right track or should I be using a completely different approach?
Any help would be much appreciated,
Anthony