+ Reply to Thread
Results 1 to 3 of 3

having trouble with ISNA and VLOOKUP

  1. #1
    Registered User
    Join Date
    04-20-2006
    Posts
    3

    having trouble with ISNA and VLOOKUP

    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

  2. #2
    Niek Otten
    Guest

    Re: having trouble with ISNA and VLOOKUP

    You need

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

    See HELP or the function wizard for the 4th argument of VLOOKUP
    --
    Kind regards,

    Niek Otten

    "webstju" <[email protected]> wrote in message
    news:[email protected]...
    |
    | 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=536446
    |



  3. #3
    Bob Phillips
    Guest

    Re: having trouble with ISNA and VLOOKUP

    see response in worksheet.functions

    --
    HTH

    Bob Phillips

    (remove nothere from email address if mailing direct)

    "webstju" <[email protected]> wrote in
    message news:[email protected]...
    >
    > 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=536446
    >




+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1