+ Reply to Thread
Results 1 to 3 of 3

Return Blank Cell for VLookup if #N/A

  1. #1
    Registered User
    Join Date
    04-05-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    9

    Return Blank Cell for VLookup if #N/A

    Good Day Everyone,
    I am sure it likely has been discussed before, but I have searched for it but was unable to find a clear answer...

    I'm running a VLookup and I want it to return a 0 or blank of the VLookup normally returns an #N/A result.

    Can someone please help me out?

    Thanks very much for all your help.
    Last edited by tl1735; 05-07-2010 at 06:54 PM.

  2. #2
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Return Blank Cell for VLookup if #N/A

    You would have to nest the VLOOKUP in an IF function, which forces Excel to do the look up twice (inefficient).

    However:

    =IF(ISNA(VLOOKUP(A1,D1:E20,2,0)),"",VLOOKUP(A1,D1:E20,2,0))

    It is more efficient to allow VLOOKUP to return the #N/A and use a helper cell to return a valid result.

    Helper cell, say C1: =IF(ISNA(B1),"",B1)

    Set the results cell to look at the helper cell: =C1
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

  3. #3
    Registered User
    Join Date
    04-05-2010
    Location
    United States
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Return Blank Cell for VLookup if #N/A

    Tremendous!

    Thanks!!

+ 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