+ Reply to Thread
Results 1 to 5 of 5

VLookup if lookup_value is not found

  1. #1
    Registered User
    Join Date
    07-09-2012
    Location
    IL
    MS-Off Ver
    Excel 2019
    Posts
    42

    VLookup if lookup_value is not found

    Hello all. I think this should be fairly easy but I'm not having any luck. I've attached an example file to help show what I'm trying to do. I need to look thru a list of brands and if it finds the brand give the results I need. I can make this work. The problem is when the brand is not listed I get #N/A. I need it result in a blank cell or 0.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Contributor BenMiller's Avatar
    Join Date
    12-06-2011
    Location
    New Jersey
    MS-Off Ver
    Excel 2010
    Posts
    254

    Re: VLookup if lookup_value is not found

    For Excel 2003 and lower, =IF(ISNA(VLOOKUP(F6,A6:C13,2,0)),"",VLOOKUP(F6,A6:C13,2,0))
    For Excel 2007 and higher, =IFERROR(VLOOKUP(F6,A6:C13,2,0),"")

    In both cases, you can change the "" to a 0.

  3. #3
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: VLookup if lookup_value is not found

    In your case you would do like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    But I would suggest doing this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    And put it in G3 and copy down and across; in that case you only need one formula instead of two.
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  4. #4
    Forum Contributor
    Join Date
    01-24-2011
    Location
    Sheppey
    MS-Off Ver
    Excel 2010
    Posts
    239

    Re: VLookup if lookup_value is not found

    Try
    Please Login or Register  to view this content.
    and copy down.

  5. #5
    Registered User
    Join Date
    07-09-2012
    Location
    IL
    MS-Off Ver
    Excel 2019
    Posts
    42

    Re: VLookup if lookup_value is not found

    Thanks all. You make this look so easy.

+ 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