R
Robert Hatcher
=LOOKUP(32,F16:F30)
Now I will complete the post. One of those days....
Im having a problem with lookup returning a value outside the range of
the array
In cells f1-f16 I have the values 16-30, one value in each cell in
accending order.
=LOOKUP(15,F16:F30) returns #NA as expected
=LOOKUP(25,F16:F30) returns 25 as expected
I expect =LOOKUP(35,F16:F30) to return #NA but it returns 30
So inputs less than the values in the array are NA and inputs within
the values in the array are returned. Inputs greater than the values
in the array should be NA but return the highest value in the array.
I get the same results with Vlookup.
Im at a loss why is this happening? More importanly what can I do
about it?
Thanks
Robert
The next thing for me to sort out is how to look through four arrays
for the one value and return the array name that has the value.
Thanks to you both. I ended up using the match function to get what I
wanted. Which was just indentifing if a value existed in an array and
then returning the name of the array. This was just one part that was
stumpping me so i had simplified it to work it out.
=IF(ISNA(MATCH(B2,INDIRECT(A2),0)),"",A2)
A2 contains the name of the array B2 is the value Im checking for. If
it is in the arry, the name of the array is returned. This work well
but I will look through your recomendatios for a better option.
The next thing for me to sort out is how to look through four arrays
for the one value and return the array name that has the value.
Thanks Again
Robert
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.