+ Reply to Thread
Results 1 to 2 of 2

Excel 2007 : Vlookup to ingnore missing values

  1. #1
    Registered User
    Join Date
    08-24-2009
    Location
    Sydney
    MS-Off Ver
    Excel 2007
    Posts
    9

    Question Vlookup to ingnore missing values

    Hi,
    I want to look up a list using a vlookup. I have about 200 cars to do and each car has about 4000 items.

    I need to vlookup and sum up a short list of car parts. My issue is of the 10 parts I am looking up, most cars dont contain all 10, rather 9 or 8.

    How do I get a vlookup to ignore the value if one of the vlookup values is missing, rather than give me a blank.
    Say for example, if my car doesnt have item number 1891 but has all the other 9, i still want a total?

    =SUM
    ((VLOOKUP(1891,$C$2:$G$244,5,FALSE)+
    (VLOOKUP(2470,$C$2:$G$244,5,FALSE)+
    (VLOOKUP(2600,$C$2:$G$244,5,FALSE)+
    (VLOOKUP(2620,$C$2:$G$244,5,FALSE)+
    (VLOOKUP(2640,$C$2:$G$244,5,FALSE)+
    (VLOOKUP(2670,$C$2:$G$244,5,FALSE)+
    (VLOOKUP(3080,$C$2:$G$244,5,FALSE)+
    (VLOOKUP(3083,$C$2:$G$244,5,FALSE)+
    (VLOOKUP(3110,$C$2:$G$244,5,FALSE)+
    (VLOOKUP(3171,$C$2:$G$244,5,FALSE))))))))))))))))+0.94

    The answer I get is #N/A?
    Last edited by NBVC; 09-02-2009 at 07:42 AM. Reason: Solved per Rep comments

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Vlookup to ingnore missing values

    Try listing those item numbers in say B1:B10 and then apply formula like this:

    =SUMPRODUCT(--ISNUMBER(MATCH($C$2:$C$244,$B$1:$B$10,0)),$G$2:$G$244)+0.94
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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