+ Reply to Thread
Results 1 to 6 of 6

I need VLOOKUP to return Blank cell instead of N/A

  1. #1
    Registered User
    Join Date
    09-12-2012
    Location
    Colorado
    MS-Off Ver
    Excel 2003
    Posts
    11

    I need VLOOKUP to return Blank cell instead of N/A

    I have the following formula:

    =(VLOOKUP(A18,Sheet2!$A15:B26,2,FALSE))

    I need it so that if i dont have anything selceted from a dropdown in that row, it will return Blank instead of N/A.

    Thanks in advance.
    Last edited by elkhntr4; 09-13-2012 at 12:28 PM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: I need VLOOKUP to return Blank cell instead of N/A

    As i see that you use Excel 2003, try with ISNA function in front of your formula.
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: I need VLOOKUP to return Blank cell instead of N/A

    =IF(A18="","",(VLOOKUP(A18,Sheet2!$A15:B26,2,FALSE))
    or
    =if(isna(VLOOKUP(A18,Sheet2!$A15:B26,2,FALSE)),"",(VLOOKUP(A18,Sheet2!$A15:B26,2,FALSE))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  4. #4
    Registered User
    Join Date
    09-12-2012
    Location
    Colorado
    MS-Off Ver
    Excel 2003
    Posts
    11

    Re: I need VLOOKUP to return Blank cell instead of N/A

    Problem Solved! Thanks guys!

  5. #5
    Registered User
    Join Date
    09-10-2012
    Location
    Guildford, UK
    MS-Off Ver
    Excel 2003
    Posts
    23

    Re: I need VLOOKUP to return Blank cell instead of N/A

    Its not the most elegant solution but perhaps:

    =IF(ISERROR(your vlookup formula), "", (your vlookup formula)

  6. #6
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,426

    Re: I need VLOOKUP to return Blank cell instead of N/A

    Another one:

    =IF(COUNTIF(Sheet2!A15:A26,A18)=0,"",VLOOKUP(A18,Sheet2!$A15:B26,2,FALSE))

    I would suggest that you use absolute addressing for your table references, as well.

    Hope this helps.

    Pete

+ 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