Searching for data within ranges and columns

pbslater

New Member
Joined
May 24, 2002
Messages
11
There are 2 sets of data:
1st set comprises columns A B C
2nd set comprises column D
Columns A&B are min and max values in a range. Each range per row is specific in that it can not appear in another row.
Column C is a name associated with that range(A&B).
Column D is a set of data that needs to search against all the columns in all the rows and if it appears within any range then the Column C content will appear (IF..THEN statement)in column E

colA,colB,colC,colD
1,4,white,3
5,7,pink,4
9,11,blue,8
12,15,orange,11

Many thanks in anticipation.
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
On the assumption that

a) you only posted test data
b) there are cases where a colD value would "overlap" with 3 or more of the min / xam ranges,

then you'll need vba to stop this getting very messy.

If the most overlaps you'll get is 2 you could do this managably with formulas.

...more info please.

paddy
 
Upvote 0
Hi,

If I correctly guess what you want
ColA ColB ColC ColD ColE
Min Max Colour Value Derived
1 4 white 3 white
5 7 pink 4 white
8 8 none 8 none
9 11 blue 11 blue
12 15 orange 12 orange

Derived is a lookup formula like
=VLOOKUP(D2,$A$2:$C$6,3,TRUE)

Ed
 
Upvote 0

Forum statistics

Threads
1,215,045
Messages
6,122,830
Members
449,096
Latest member
Erald

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