+ Reply to Thread
Results 1 to 8 of 8

VLOOKUP true or false by #na

  1. #1
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Hyderbad
    MS-Off Ver
    Excel 2003
    Posts
    122

    VLOOKUP true or false by #na

    Can any one Please...

    VLOOKUP with TRUE/FALSE by ignoring #NA AND index match too. for the below example

    1 8 true 1
    2 5 #N/A #N/A
    3 6 #N/A #N/A
    4 4 true 4
    5 5 true 5
    6 1 true 6

    3rd Column = =IF(VLOOKUP(A2,$B$1:$B$6,1,0),"true"). For this i want to replace #NA with "FALSE"
    4th column = =INDEX($B$1:$B$6,MATCH(A2,$B$1:$B$6,0)) . For this i want to replace #NA with "FALSE"

  2. #2
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: VLOOKUP true or false by #na

    =IF(ISERROR(VLOOKUP(A2,$B$1:$B$6,1,0)),"False","true")
    Please Login or Register  to view this content.
    =IF(ISERROR(INDEX($B$1:$B$6,MATCH(A2,$B$1:$B$6,0))),"False",INDEX($B$1:$B$6,MATCH(A2,$B$1:$B$6,0)))
    Please Login or Register  to view this content.
    If it is not working pls attached sample excel file
    Last edited by samba_ravi; 09-18-2015 at 03:24 AM.
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: VLOOKUP true or false by #na

    Deleted post.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  4. #4
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Hyderbad
    MS-Off Ver
    Excel 2003
    Posts
    122

    Re: VLOOKUP true or false by #na

    4TH COLUMN : as requested working fine (false)....can we replace the values with true statement.

    Eg :
    1 (as true)
    False
    False
    4 (as true)
    5 (as true)
    6 (as true)

  5. #5
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: VLOOKUP true or false by #na

    =IF(ISERROR(VLOOKUP(A2,$B$1:$B$6,1,0)),"False",VLOOKUP(A2,$B$1:$B$6,1,0))
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    08-29-2012
    Location
    Hyderbad
    MS-Off Ver
    Excel 2003
    Posts
    122

    Re: VLOOKUP true or false by #na

    Hi nflsales..

    can u Please look into Post #4

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: VLOOKUP true or false by #na

    =IF(COUNTIF($B$1:$B$6,A2),"True","False")
    Please Login or Register  to view this content.
    =IF(ISERROR(MATCH(A2,$B$1:$B$6,0)),"False","True")
    Please Login or Register  to view this content.

  8. #8
    Forum Contributor S O's Avatar
    Join Date
    06-25-2015
    Location
    England
    MS-Off Ver
    Office 2010 + 2013 + 2016
    Posts
    103

    Re: VLOOKUP true or false by #na

    Just a note:

    =ISERROR() will ignore any error that comes back. If you specifically want to check for #N/A you could use

    =IF(ISNA(),[true part],[false part])

    May not be completely significant in this question, but still worth mentioning imo.

+ 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. I want to learn use of Vlookup True false
    By Ankit_Kumar in forum Excel General
    Replies: 2
    Last Post: 05-15-2015, 12:34 AM
  2. Using VLookUp to return True or False
    By bishoposiris in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-21-2014, 01:17 PM
  3. What is best to use for helper cells 0 or 1, typed true or false or =true =false
    By Gingermuppet in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-20-2014, 10:41 PM
  4. [SOLVED] in this TRUE OR FALSE function, i want desired name instead of display true or false
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-15-2013, 06:44 PM
  5. [SOLVED] Vlookup with True/False
    By garyi in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-07-2013, 10:17 AM
  6. Vlookup to report True or false
    By Dendrinos2 in forum Excel General
    Replies: 1
    Last Post: 11-30-2011, 12:04 PM
  7. vlookup return True/False
    By okl in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-13-2009, 06:47 AM

Tags for this Thread

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