ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   problem with ISNA and VLOOKUP (https://www.excelbanter.com/excel-worksheet-functions/85395-problem-isna-vlookup.html)

webstju

problem with ISNA and VLOOKUP
 

accidentally posted this in General

Need help with a formula..

Let's say I have "12/31/2000" in Sheet 1, Cell A1 and I need to see if
this date is in a table in Sheet 2 and if it is it will return a value
of "1" and if not it returns a value of "2"

The formula I have is

=IF(ISNA(VLOOKUP(A1,Sheet2!A1:B4,2)),0,1)


12/31/2000 is NOT located in Sheet 2 yet I still get a return value of
1.. help would be appreciated


--
webstju
------------------------------------------------------------------------
webstju's Profile: http://www.excelforum.com/member.php...o&userid=33703
View this thread: http://www.excelforum.com/showthread...hreadid=536447


Bob Phillips

problem with ISNA and VLOOKUP
 
It is doing an approximate match. Use

=IF(ISNA(VLOOKUP(A1,Sheet2!A1:B4,2,FALSE)),0,1)

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"webstju" wrote in
message ...

accidentally posted this in General

Need help with a formula..

Let's say I have "12/31/2000" in Sheet 1, Cell A1 and I need to see if
this date is in a table in Sheet 2 and if it is it will return a value
of "1" and if not it returns a value of "2"

The formula I have is

=IF(ISNA(VLOOKUP(A1,Sheet2!A1:B4,2)),0,1)


12/31/2000 is NOT located in Sheet 2 yet I still get a return value of
1.. help would be appreciated


--
webstju
------------------------------------------------------------------------
webstju's Profile:

http://www.excelforum.com/member.php...o&userid=33703
View this thread: http://www.excelforum.com/showthread...hreadid=536447





All times are GMT +1. The time now is 07:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com