+ Reply to Thread
Results 1 to 3 of 3

Vlookup

  1. #1
    Forum Contributor
    Join Date
    05-19-2009
    Location
    Santiago, Chile
    MS-Off Ver
    Excel 2019
    Posts
    212

    Vlookup

    When I do a VLOOKUP and it cannot find the info than I always get #N/A. Is there a way that I simply get an empty result or 0 value?
    Last edited by pansovic; 10-15-2011 at 06:08 PM.

  2. #2
    Registered User
    Join Date
    02-06-2010
    Location
    London
    MS-Off Ver
    MS Office 2010
    Posts
    1

    Re: Vlookup

    You can use the VLOOKUP and ISERROR formulas: =IF(ISERROR(VLOOKUP(A1,S20:U30,3,FALSE)),0,VLOOKUP(A1,S20:U30,3,FALSE))
    Change the vlookup for your own criteria. The 0 can be replaced with "" for a blank result.

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

    Re: Vlookup

    You can first test is there a value with MATCH function, and if is you can use VLOOKUP.

    That's slightly better then rambo1 approach because it don't need to use VLOOKUP function twice.
    In most cases above approach will work fine.

+ 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