+ Reply to Thread
Results 1 to 8 of 8

Getting rid of the #N/A in a vlookup

  1. #1
    Forum Contributor
    Join Date
    05-07-2009
    Location
    cedar grove
    MS-Off Ver
    Excel 2003
    Posts
    133

    Getting rid of the #N/A in a vlookup

    hello.
    I am working on learning vlookups..
    I have enclosed a snapshot of what i am trying to get rid of..
    The vlookups work fine, but when I auto-filled to have the rest fill in (like a list of products and their costs), where there is no value yet, you get that #N/A symbol. And, because of that symbol, I cannot get a running tally for the total cost..that also comes up #N/A.

    Is there a way to not have this(#N/A) show, when there is no value yet in that row to fill in the lookups, and also have a total work with that column that now does have that showing??

    I hope that makes sense, but I think the snapshot shows it best.

    thanks
    babs
    Picture 6.jpg

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Getting rid of the #N/A in a vlookup

    =if(isna(your lookup), 0, your lookup)
    Entia non sunt multiplicanda sine necessitate

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

    Re: Getting rid of the #N/A in a vlookup

    Try

    =IF(ISNA(VLOOKUP(.....)),"",VLOOKUP(....))

    where you would insert your Vlookup arguments as appropriate..

    This will return blank (null) if no match found
    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.

  4. #4
    Forum Contributor
    Join Date
    05-07-2009
    Location
    cedar grove
    MS-Off Ver
    Excel 2003
    Posts
    133

    Re: Getting rid of the #N/A in a vlookup

    hi,

    I am not sure I understand what that means?

    HEre is a snapshot of the entire thing...



    I have a defined named area called "products"

    For the lookup area, I am using the product number, to bring in the part name, description and price. I am manually putting in the quantity so that it can multiply the quantity times the price. Here is what one lookup looks like:

    =VLOOKUP(F19,products,2)

    I tried to put your info in my lookups, but they keep giving me errors, so I am not doing it right.

    thanks!
    babs
    Attached Images Attached Images

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

    Re: Getting rid of the #N/A in a vlookup

    Try

    =IF(ISNA(VLOOKUP(F19,products,2)),"",VLOOKUP(F19,products,2))

    FYI... it is always better to post an actual sample workbook so we can see the formula at work.. maybe there are other issues that don't make it work....

  6. #6
    Forum Contributor
    Join Date
    05-07-2009
    Location
    cedar grove
    MS-Off Ver
    Excel 2003
    Posts
    133

    Re: Getting rid of the #N/A in a vlookup

    hello...
    OK...almost there ;-)
    Here is the file....as per your suggestion..

    Your code worked fine for the lookup....now, where I have the amount times the quantity, I get the #Value error, so again, I cannot get a total....

    any thoughts on that one ;-)
    thanks!
    babs
    Attached Files Attached Files

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

    Re: Getting rid of the #N/A in a vlookup

    Replace the formula in K19 with:

    =IF(J19="","",I19*J19)

    copieed down

  8. #8
    Forum Contributor
    Join Date
    05-07-2009
    Location
    cedar grove
    MS-Off Ver
    Excel 2003
    Posts
    133

    Re: Getting rid of the #N/A in a vlookup

    Perfect...
    I see, I need some sort of if statement that is blank, unless there really is a value..
    Got it!!
    Thanks so much..makes perfect sense ;-)
    babs

+ 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