+ Reply to Thread
Results 1 to 4 of 4

VLookup Function

  1. #1
    Registered User
    Join Date
    04-27-2010
    Location
    Liverpool, UK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Question VLookup Function

    Hi,

    Quick question I have a column of data say from A2:A100 with various unique identifiers in it. I want to search through that list match it with a specific unique ID say in B2 and if the value in B2 is in that column of data return the text "Positive" or else "Negative".

    I have tried Vlookup but it wants to return a row number

    Anyone got any ideas.


    Help as always greatly appreciated.

    Thanks

  2. #2
    Forum Contributor
    Join Date
    08-30-2007
    Location
    Vancouver, B.C.
    Posts
    149

    Re: VLookup Function

    Please Login or Register  to view this content.

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: VLookup Function

    I think lazyme got the columns reversed

    Should be, per your description:

    =if(iserror(match(A2,$B$2:$B$100,0)),"Negative","Positive")

    or, using LOOKUP as you started with:

    =IF(ISNA(VLOOKUP(A2,$B$2:$B$100,2,FALSE)),"Negative","Positive")
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  4. #4
    Registered User
    Join Date
    04-27-2010
    Location
    Liverpool, UK
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: VLookup Function

    Quote Originally Posted by Palmetto View Post
    I think lazyme got the columns reversed

    Should be, per your description:

    =if(iserror(match(A2,$B$2:$B$100,0)),"Negative","Positive")

    or, using LOOKUP as you started with:

    =IF(ISNA(VLOOKUP(A2,$B$2:$B$100,2,FALSE)),"Negative","Positive")
    A billion thank you's!

    I was in the middle of trying =IF(AND(MATCH(B540,U2:U100,0)=44),"Positive","Negative")

    Since the value given was 44 if it existed but it would give an #N/A for the negatives. But the above solution is a god send. Thank you again.

+ 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