+ Reply to Thread
Results 1 to 10 of 10

Is Error and Vlookup

  1. #1
    Forum Contributor
    Join Date
    02-10-2007
    MS-Off Ver
    Excel 2010
    Posts
    293

    Is Error and Vlookup

    How do I re write this formula to incorporate iserror function to show "" when a value of false or N/A is found.

    =IF(K8<>"",VLOOKUP(F8,'My Sheet'!$F$2:$I$489,4,FALSE))


    Thanks
    Last edited by NBVC; 09-17-2009 at 08:05 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Is Error and Vlookup

    Try

    =IF(K8<>"",IF(Isna(VLOOKUP(F8,'My Sheet'!$F$2:$I$489,4,FALSE)),"",VLOOKUP(F8,'My Sheet'!$F$2:$I$489,4,FALSE))
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Is Error and Vlookup

    Does this work for you?
    Please Login or Register  to view this content.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  4. #4
    Forum Contributor
    Join Date
    02-10-2007
    MS-Off Ver
    Excel 2010
    Posts
    293

    Re: Is Error and Vlookup

    the first code worked except it returned false also, the 2nd got an error message.

    first code will get the job done.

    thanks to both of you - appreciate you're help

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Is Error and Vlookup

    Try:


    =IF(K8<>"",IF(Isna(VLOOKUP(F8,'My Sheet'!$F$2:$I$489,4,FALSE)),"",VLOOKUP(F8,'My Sheet'!$F$2:$I$489,4,FALSE),"")

  6. #6
    Forum Contributor
    Join Date
    02-10-2007
    MS-Off Ver
    Excel 2010
    Posts
    293

    Re: Is Error and Vlookup

    Hi NBVC,

    Getting...you've entered too many arguments for this funciton.

    okay, it seems like
    =IF(K8<>"",IF(Isna(VLOOKUP(F8,'My Sheet'!$F$2:$I$489,4,FALSE)),"",VLOOKUP(F8,'My Sheet'!$F$2:$I$489,4,FALSE),""))) works but still returning false. Basically i want a blank cell when error or false found.
    Last edited by VegasL; 09-16-2009 at 04:44 PM.

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Is Error and Vlookup

    Forgot a closing parenthesis:

    =IF(K8<>"",IF(ISNA(VLOOKUP(F8,'My Sheet'!$F$2:$I$489,4,FALSE)),"",VLOOKUP(F8,'My Sheet'!$F$2:$I$489,4,FALSE)),"")

  8. #8
    Forum Contributor
    Join Date
    02-10-2007
    MS-Off Ver
    Excel 2010
    Posts
    293

    Re: Is Error and Vlookup

    Wow, You Da Man!. Thanks Bud!

  9. #9
    Registered User
    Join Date
    11-09-2009
    Location
    Singapore
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Is Error and Vlookup

    Hi
    Sorry to add to this thread.

    What is the VBA equivalent for a macro?

    I've got below but not able to get it to work.

    Sub Replace()
    Sheet2.Activate
    Range("E2:E8") = "=VLOOKUP(A2,$A$2:$B$5,2,FALSE)"
    IF(ISERROR(VLOOKUP(A2,$A$2:$B$5,2,FALSE)),"",VLOOKUP(A2,$A$2:$B$5,2,FALSE))
    End Sub


    basically, what im trying to do is, populate a column from a table for a particular range. If the range has missing data, 'NA' will show and therefore needs to be coverted to blank cells.

    How do i convert 'N/A' it to a blank cell?

    thanks
    Phil

  10. #10
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Is Error and Vlookup

    philster1, welcome to the board, however, please note:

    Your post does not comply with Rule 2 of our Forum RULES. Don't post a question in the thread of another member -- start your own thread. If you feel it's particularly relevant, provide a link to the other thread.

+ 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