+ Reply to Thread
Results 1 to 4 of 4

VLOOKUP handling duplicates

  1. #1
    Registered User
    Join Date
    08-29-2012
    Location
    Knoxville, TN
    MS-Off Ver
    Excel 2007
    Posts
    2

    VLOOKUP handling duplicates

    Please help me solve this problem. I have a list of part numbers that have price information associated with them from one department on one worksheet and on the other worksheet there are different prices associated to the same part numbers. I am using vlookup currently to be able to return the prices from the other department’s worksheet. The problem that I’m currently running into is that the part numbers are recurring on both sheets with different price data associated with each occurrence. My current formula only returns the first value of each instance of the part number. That formula is the following:

    =IF(ISERROR(VLOOKUP(I416,Extract8.22!$K:$AK,25, FALSE)), "", VLOOKUP(I416,Extract8.22!$K:$AK,25, FALSE)).

    Currently I have it set up to return a blank if there is an error returned from the vlookup. Please advise on how to return the cost associated with each instance of each part number regardless of duplicates.

    Thanks!

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

    Re: VLOOKUP handling duplicates

    How would you like the 2 prices returned? In 2 different cells, the same cell or something else?

    BTW: You state that you are using Excel 2007, in which case your above formula can be reduced to:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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!"

  3. #3
    Registered User
    Join Date
    08-29-2012
    Location
    Knoxville, TN
    MS-Off Ver
    Excel 2007
    Posts
    2

    Re: VLOOKUP handling duplicates

    Thanks for the information on the shorter version of the formula.

    Prices in two different columns is what I'm shooting for.

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

    Re: VLOOKUP handling duplicates

    After reading your post again, I'm not sure I understand your setup. Do you have one sheet on which you want to return results from 2 different sheets, or do you have one a sheet from which you want to return multiple loookup results?

+ 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