+ Reply to Thread
Results 1 to 5 of 5

How to return a blank with VLOOKUP

  1. #1
    Registered User
    Join Date
    01-16-2010
    Location
    vancouver, canada
    MS-Off Ver
    Excel for MAC 2018
    Posts
    59

    How to return a blank with VLOOKUP

    Hello - when doing a VLOOKUP to return values, I would like the blank cells to return as blank (ie. not have a 0 or N/A filled in, just leave a blank). Please help me fix this formula to return the numbers when there are numbers, and nothing if it is blank. Thank you!


    =VLOOKUP(C62,'Lookup'!$B$6:$F$2000,3,0)

  2. #2
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: How to return a blank with VLOOKUP

    try the formula

    =IF(VLOOKUP(C62,'Lookup'!$B$6:$F$2000,3,0)=0,"",IF(ISNA(VLOOKUP(C62,'Lookup'!$B$6:$F$2000,3,0)),"",=VLOOKUP(C62,'Lookup'!$B$6:$F$2000,3,0)))

  3. #3
    Registered User
    Join Date
    01-16-2010
    Location
    vancouver, canada
    MS-Off Ver
    Excel for MAC 2018
    Posts
    59

    Re: How to return a blank with VLOOKUP

    Thanks for the help - unfortunately I am getting an error message that the formula won't work. I found a space just before the last VLOOKUP and thought that was it, but it still won't work. Is there some ) missing? Thx again!

  4. #4
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2007, 2010
    Posts
    470

    Re: How to return a blank with VLOOKUP

    sorry
    replace
    =IF(VLOOKUP(C62,'Lookup'!$B$6:$F$2000,3,0)=0,"",IF(ISNA(VLOOKUP(C62,'Lookup'!$B$6:$F$2000,3,0)),"",= VLOOKUP(C62,'Lookup'!$B$6:$F$2000,3,0)))

    with
    delete "=" (red color), Being more exact, it is
    =IF(VLOOKUP(C62,'Lookup'!$B$6:$F$2000,3,0)=0,"",IF(ISNA(VLOOKUP(C62,'Lookup'!$B$6:$F$2000,3,0)),"", VLOOKUP(C62,'Lookup'!$B$6:$F$2000,3,0)))
    Last edited by tigertiger; 05-08-2011 at 01:24 AM.

  5. #5
    Registered User
    Join Date
    01-16-2010
    Location
    vancouver, canada
    MS-Off Ver
    Excel for MAC 2018
    Posts
    59

    Re: How to return a blank with VLOOKUP

    It worked! Thank you!!

+ 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