+ Reply to Thread
Results 1 to 7 of 7

VLOOKUp to return a 1 if match and a 0 if not found

  1. #1
    Registered User
    Join Date
    07-03-2014
    Location
    jackson,ga
    MS-Off Ver
    2010
    Posts
    13

    VLOOKUp to return a 1 if match and a 0 if not found

    on a VLOOKUP I need a formula to return a value of 1 if FALSE, and a 0 instead of NA

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,808

    Re: VLOOKUp to return a 1 if match and a 0 if not found

    you could use a countif() rather than a vlookup
    however

    IF( ISERROR ( VLOOKUP(..... what ever your formula is ......... ) , 1 , 0 )

    if that does not match a lookup - ie returns and error - then you have TRUE and so returns a 1

    OR

    =IF( countif( column you are trying to match , value to match )=0 , 1 , 0 )
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: VLOOKUp to return a 1 if match and a 0 if not found

    can you provide an example of the formula you are using? i'm not sure what you mean by "1 if FALSE".
    You should hit F5, because chances are I've edited this post at least 5 times.
    Example of Array Formulas
    Quote Originally Posted by Jacc View Post
    Sorry, your description makes no sense. I just made some formula that looks interesting cause I had nothing else to do.
    Click the * below on any post that helped you.

  4. #4
    Registered User
    Join Date
    07-03-2014
    Location
    jackson,ga
    MS-Off Ver
    2010
    Posts
    13

    Re: VLOOKUp to return a 1 if match and a 0 if not found

    I don't have a formula. I want to return the number one if there is a match and a number zero if there is no match on a vlookup

  5. #5
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.84 (24041420))
    Posts
    8,808

    Re: VLOOKUp to return a 1 if match and a 0 if not found

    I don't have a formula.
    what do you have for
    vlookup
    which is your formula ?

  6. #6
    Valued Forum Contributor
    Join Date
    01-19-2012
    Location
    Barrington, IL
    MS-Off Ver
    Excel 2007/2010
    Posts
    1,211

    Re: VLOOKUp to return a 1 if match and a 0 if not found

    I would use a MATCH formula for this instead of a VLOOKUP

    =IF(ISNA(MATCH(A1,B1:B100,0)),0,1)


    Where A1 is the value you are looking for, and B1:B100 is the range you are looking for it in.

  7. #7
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,324

    Re: VLOOKUp to return a 1 if match and a 0 if not found

    Please Login or Register  to view this content.
    Or maybe something like this?
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Return Value from string if it Match is Found in Range
    By Jonathan78 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-17-2015, 10:05 AM
  2. Fix SUMIF to return value of zero if match isn't found
    By chouston in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-04-2013, 11:04 AM
  3. Replies: 4
    Last Post: 07-16-2012, 04:38 PM
  4. Replies: 5
    Last Post: 10-11-2008, 04:01 PM
  5. Vlookup, return zero if not found
    By molsansk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-22-2006, 01:45 PM
  6. [SOLVED] can lookup return err if no match found
    By Kim Greenlaw in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-11-2006, 01:45 PM

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