+ Reply to Thread
Results 1 to 9 of 9

How to replace #N/A with no entry for a VLOOKUP result

  1. #1
    Forum Contributor
    Join Date
    09-17-2009
    Location
    Torquay, England
    MS-Off Ver
    Excel 2013
    Posts
    253

    How to replace #N/A with no entry for a VLOOKUP result

    Hi,

    I have put a VLOOKUP in place for a range of cells. Where the referenced cell has no entry it puts #N/A in the sheet. This is causing me further problems, is there a way to get all entries which equal this to leave the cell blank?

    Thanks in advance for any help
    Last edited by Gooford; 09-24-2009 at 08:08 AM.

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    15,601

    Re: How to replace #N/A with no entry for a VLOOKUP result

    You can solve it as any other NA problem:

    =IF( ISNA(formula), "", formula)

    This will look is your formula returnin NA. If youes -> put emty cell "", if not (that means there is some value) -return value

  3. #3
    Forum Contributor
    Join Date
    09-17-2009
    Location
    Torquay, England
    MS-Off Ver
    Excel 2013
    Posts
    253

    Re: How to replace #N/A with no entry for a VLOOKUP result

    Quote Originally Posted by zbor View Post
    You can solve it as any other NA problem:

    =IF( ISNA(formula), "", formula)

    This will look is your formula returnin NA. If youes -> put emty cell "", if not (that means there is some value) -return value
    The formula is =VLOOKUP(A12,LAIMPS!$H$4:$J$252,3,0)

    Do I therefore put:

    =IF(ISNA(VLOOKUP(A12,LAIMPS!$H$4:$J$252,3,0),"",VLOOKUP(A12,LAIMPS!$H$4:$J$252,3,0)

    The error message is caused by the criteria that is being searched for not being present in the array

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: How to replace #N/A with no entry for a VLOOKUP result

    thats correct!
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  5. #5
    Forum Contributor
    Join Date
    09-17-2009
    Location
    Torquay, England
    MS-Off Ver
    Excel 2013
    Posts
    253

    Re: How to replace #N/A with no entry for a VLOOKUP result

    Apologies, for some reason this isn't working.....

    =if(isna(VLOOKUP(A12,LAIMPS!$H$4:$J$252,3,0),"",VLOOKUP(A12,LAIMPS!$H$4:$J$252,3,0))

    Have I missed something?

  6. #6
    Forum Expert
    Join Date
    12-23-2006
    Location
    germany
    MS-Off Ver
    XL2003 / 2007 / 2010
    Posts
    6,326

    Re: How to replace #N/A with no entry for a VLOOKUP result

    Which error do you get ?
    Maybe attach a sample of your workbook
    (PS this question has been asked many times and we have a very nice search function on the forum...)

  7. #7
    Forum Contributor
    Join Date
    09-17-2009
    Location
    Torquay, England
    MS-Off Ver
    Excel 2013
    Posts
    253

    Re: How to replace #N/A with no entry for a VLOOKUP result

    Sorry - I will use the search function to find a way around this. It wont let me type the formula in, it highlights the "" as the issue.

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

    Re: How to replace #N/A with no entry for a VLOOKUP result

    Missing parenthesis

    Please Login or Register  to view this content.
    technically you need only conduct the MATCH rather the VLOOKUP

    Please Login or Register  to view this content.

  9. #9
    Forum Contributor
    Join Date
    09-17-2009
    Location
    Torquay, England
    MS-Off Ver
    Excel 2013
    Posts
    253

    Re: How to replace #N/A with no entry for a VLOOKUP result

    Brilliant thanks to all. I hadnt spotted the search function, I will double check on that before future posts

+ 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