Intersection of two data ranges.

bamaboy

New Member
Joined
May 23, 2018
Messages
2
Elevation AElevation BElevation CElevation D
24323135
15202530

<tbody>
</tbody>






I have two ranges of elevations (Elevation A and B and Elevation C and D) and I need a formula to determine if the two sets overlap. For example, Elevation A starts at 24 and ends at 32 and Elevation C starts at 31 and ends at 25. For this example, there is an overlap (31 and 32). In the third row of the above table, Elevation A starts at 15 and ends at 20, while Elevation C starts at 25 and ends at 30, so there is no overlap.

I am hoping that someone can help me with a formula to simply return a "yes" or "no" answer depending on whether the data ranges intersect.

Thanks in advance!!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
Welcome to the MrExcel board!

See if this does what you want. If not, post back with more details/examples.

You didn't clarify what to do in the case of my row 7. If you want this to say "Yes" change < and > to <= and >=

Excel Workbook
ABCDE
1Elevation AElevation BElevation CElevation DOverlap
224323135Yes
315202530No
41520510No
520402628Yes
624321825Yes
720303040No
Overlap
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,399
Latest member
alchavar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top