Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I am using the LOOKUP funtion for an array. Of my 300+ values I know that
about 20 'lookup_value'(s) don't exists in the array, but I don't want it to find the next closest value. How can I test my array to see if the 'lookup_value' exists? Thanks, Ken |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
One way:
A1 = lookup value B1:B10 is lookup array =IF(COUNTIF(B1:B10,A1),LOOKUP(......),"what do you want to happen if the LU value doesn't exist") -- Biff Microsoft Excel MVP "Ken King" wrote in message ... I am using the LOOKUP funtion for an array. Of my 300+ values I know that about 20 'lookup_value'(s) don't exists in the array, but I don't want it to find the next closest value. How can I test my array to see if the 'lookup_value' exists? Thanks, Ken |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Consider using VLOOKUP...
if your values are in COL A and value to lookup is in B1 then use =VLOOKUP(B1,A:A,1,False) it will give you #N/A if the value is not found... you can test with ISNA() which will give you TRUE when value is not found. Values in Col A need not be sorted... VLOOKUP with last parameter as TRUE gives you the closes match (and values have to be sorted) "Ken King" wrote: I am using the LOOKUP funtion for an array. Of my 300+ values I know that about 20 'lookup_value'(s) don't exists in the array, but I don't want it to find the next closest value. How can I test my array to see if the 'lookup_value' exists? Thanks, Ken |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VLOOK up returning #N/A even though value exists in lookup array | Excel Worksheet Functions | |||
Lookup value - see if exists in another array | Excel Worksheet Functions | |||
How to make LOOKUP give zero if it can't find the lookup_value? | Links and Linking in Excel | |||
How to make LOOKUP give zero if it can't find the lookup_value? | Excel Worksheet Functions | |||
Need help with a function I'm not sure exists | Excel Worksheet Functions |