My data is stored as follows:
Col A rows 1-3 are minimum values and Col B rows 1-3 are maximum values and Col C rows 1-3 are values to be returned depending on which range an input value falls in.
_____A ____B______C
1____ 5____10______red
2____11____15_____white
3____16____20_____blue
I want a stmt that says if a1<= 'valueX' <=b1, then c1 or if a2<='valueX' <=b2 then c2, or if a3<='valueX'<=b3, then c3.
My actual list of ranges a:b are quite long, there must be an array formula or some elegant if statement?
Thanks very much.
Col A rows 1-3 are minimum values and Col B rows 1-3 are maximum values and Col C rows 1-3 are values to be returned depending on which range an input value falls in.
_____A ____B______C
1____ 5____10______red
2____11____15_____white
3____16____20_____blue
I want a stmt that says if a1<= 'valueX' <=b1, then c1 or if a2<='valueX' <=b2 then c2, or if a3<='valueX'<=b3, then c3.
My actual list of ranges a:b are quite long, there must be an array formula or some elegant if statement?
Thanks very much.