Determine if Value is found within range of two other values

kparadise

Board Regular
Joined
Aug 13, 2015
Messages
186
Hello,

[Sheet 1]
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Type
[/TD]
[TD]Number
[/TD]
[TD]Item
[/TD]
[TD]Is this number within Range?
[/TD]
[/TR]
[TR]
[TD]Red
[/TD]
[TD]12354
[/TD]
[TD]Apple
[/TD]
[TD]N
[/TD]
[/TR]
[TR]
[TD]Red
[/TD]
[TD]6549866
[/TD]
[TD]Orange
[/TD]
[TD]N
[/TD]
[/TR]
[TR]
[TD]Green
[/TD]
[TD]13216
[/TD]
[TD]Apple
[/TD]
[TD]Y
[/TD]
[/TR]
[TR]
[TD]Blue
[/TD]
[TD]894
[/TD]
[TD]Banana
[/TD]
[TD]Y
[/TD]
[/TR]
</tbody>[/TABLE]

[Sheet 2]
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]Start
[/TD]
[TD]End
[/TD]
[/TR]
[TR]
[TD]123
[/TD]
[TD]129
[/TD]
[/TR]
[TR]
[TD]880
[/TD]
[TD]990
[/TD]
[/TR]
[TR]
[TD]13200
[/TD]
[TD]13300
[/TD]
[/TR]
[TR]
[TD]8979
[/TD]
[TD]8980
[/TD]
[/TR]
</tbody>[/TABLE]


What I am trying to do is fill out the last column on [Sheet 1]. I need to look at every row in [Sheet 1] at the [Number] field and determine whether or not that number falls between any of the ranges in [Sheet 2]. So, as you can see number 894 is found between 880 - 990, that is why we have a 'Y'; however number 12354 is not found between any of the ranges on [Sheet 2]; so the answer is 'N'. What formula do I put in D2?
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.

Forum statistics

Threads
1,223,164
Messages
6,170,444
Members
452,326
Latest member
johnshaji

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