+ Reply to Thread
Results 1 to 3 of 3

Need VLOOKUP to return zero or blank if not match

  1. #1
    Registered User
    Join Date
    07-17-2012
    Location
    Minneapolis
    MS-Off Ver
    Excel 2003
    Posts
    6

    Question Need VLOOKUP to return zero or blank if not match

    I have the following VLOOKUP formula copied down through an inventory spreadsheet: =VLOOKUP(Sheet1!B2,Sheet2!$A$2:$B$600,2,FALSE)

    The issue is that sheet two, column A is a subset of sheet 1, column B that varies day to day. The #NA result if there is not a current match is causing problems for the end user.

    How do I modify this so that it returns the current values if a match exists, but returns a blank cell or a zero if there in no match?

    Thanks.

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,168

    Re: Need VLOOKUP to return zero or blank if not match

    Hi climbmda,

    If you upgrade to a newer version of Excel the function will be available. You can still do it in 2003 but it is just harder. See
    http://www.excelfunctions.net/Excel-Iferror.html
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

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

    Re: Need VLOOKUP to return zero or blank if not match

    perhaps..

    =IF(ISNA(VLOOKUP(Sheet1!B2,Sheet2!$A$2:$B$600,2,FALSE)),"",VLOOKUP(Sheet1!B2,Sheet2!$A$2:$B$600,2,FALSE))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

+ 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