Intersection of two data ranges.

bamaboy

New Member
Joined
May 23, 2018
Messages
2
[TABLE="width: 100, align: left"]
<tbody>[TR]
[TD]Elevation A[/TD]
[TD]Elevation B[/TD]
[TD]Elevation C[/TD]
[TD]Elevation D[/TD]
[/TR]
[TR]
[TD]24[/TD]
[TD]32[/TD]
[TD]31[/TD]
[TD]35[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]20[/TD]
[TD]25[/TD]
[TD]30[/TD]
[/TR]
</tbody>[/TABLE]






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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
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,223,898
Messages
6,175,272
Members
452,628
Latest member
dd2

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