View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
Bernard Liengme[_3_] Bernard Liengme[_3_] is offline
external usenet poster
 
Posts: 1,104
Default finding is a value is betwen a range of values

T Valko's formula is clever but it is an array formula
This one is a 'simple' formula - just commit it with ENTER
=SUMPRODUCT((A2:A5=E2)*(B2:B5<=F2)*(C2:C5=F2))0
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme
remove caps from email


"Alberto Ast" wrote in message
...
I have several Colors in ColumA, on column B I have the lowest value and
on
column C I have the highest.. I can have same color several times with
different range values.... how do I find if a given value meets one of
those
criterias?

Col A Col B Col C
Blue 1 100
Blue 150 400
Yellow 200 300
Blue 500 750

I want to seach (Blue 200) and get a true value (is on range blue 150-400)
I search for (Blue 800) and get a false value (is not on any valid range)

Thanks