+ Reply to Thread
Results 1 to 4 of 4

Vlookup only returns 1st match!

  1. #1
    Registered User
    Join Date
    08-15-2007
    Posts
    2

    Vlookup only returns 1st match!

    Hi, I would really appreciate if someone helped me with vlookup limitation. I work with part numbers and more than often the same part # appears several times in the column with several different corresponding values in the column to the right of it. It seems to be a common problem that vlookup only returns the corresponding value for the 1st match only, while ignoring other matches of that same part number down the column. Is there a solution that would return all of the matches at once?

  2. #2
    Forum Contributor
    Join Date
    08-28-2006
    Posts
    280

    You might try SUMPRODUCT

    Take a look here.

    http://www.xldynamic.com/source/xld.SUMPRODUCT.html

    It may do what you want. Or post a zip of your project showing what you have and what you need.

    Dean
    Last edited by Dean England; 08-15-2007 at 04:34 PM.

  3. #3
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Do you want to list the values separately or sum them?

    If you want to sum them use SUMIF, otherwise can you post the vLOOKUP formula?

  4. #4
    Registered User
    Join Date
    08-15-2007
    Posts
    2

    Vlookup returns only 1st value

    Quote Originally Posted by daddylonglegs
    Do you want to list the values separately or sum them?

    If you want to sum them use SUMIF, otherwise can you post the vLOOKUP formula?
    I am not sure if any of the sumif formulas will work because I wante the values returned separately, not summed. Please see below my example.

    Part # Price
    P551670 5.00
    P154600 3.00
    P125400 4.00
    P551670 5.00

    As you will see, part number P551670 appears twice in this sample pricelist. So when I use Vlookup it only returns corresponding price for P551670 in the 1st row and instead of the price it shows, I think, N/A or value, for P551670 in the 4th row. I dont want them appear summed but instead shown separately.

    Another example would when the same part number, oil filter in this case, can be used on by different manufacturers on various equipment and each manufacturer uses different part number for their equipment, while the all cross to P551670. When I do vlookup, it only gives me only the first cross reference.

    Can you help?
    Thank you!

+ 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