+ Reply to Thread
Results 1 to 2 of 2

Vlookup, multiple row results

  1. #1
    Registered User
    Join Date
    09-07-2010
    Location
    bloomfield, nj
    MS-Off Ver
    Excel 2003
    Posts
    8

    Vlookup, multiple row results

    Hi all. I'm working on a spreadsheet for work and need to combine some data based on multiple rows for the same ID#. I've looked at a few examples here on the forum and from around the web and just can't seem to get the formulas right when the data repeats more then twice. I've got a pretty good background in Excel and have done some array formulas and VBA code in the past, but I'm having "Excel block" with this one I guess. Because of the users of the system, I need to be able to do this without using any VBA code. So on to the file:

    I've attached a small excerpt from the file I'm working on. The data gets exported from another system in which the lot #s are entered into a Grid format. When the data gets converted to Excel though, it creates a new row for a given ID# for each Lot # entered. I need to create one master sheet that links all the information together. I've used the concatenate feature on the other parts of the file(not included) when an ID is never repeated more then twice. In the case of Lot #s, there are occasions where 20 different lot #s are entered for 1 unique ID # and as designed Vlookup returns only the first value and I don't know how many concatenates I will need to do. In this example, I did an advanced filter to pull out the unique ID#s and then put in the standard vlookup to get the values for the ones that I knew had only 1 value.

    Any help would be appreciated. If there is any other inf I can provide, please let me know.

    Thanks
    Darv
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: Vlookup, multiple row results

    the only way I can think of doing this is by way of array.

    Look at the attached if that suits you.

    Oh, also look at your Unique ID's column I've placed an array formula there as well. It add to your columns automatically any NEW entry that you may had done on Column A. If the list is not extensive you can use that. Otherwise, i recommend that you drop it as arrays can take lots of memory.
    Attached Files Attached Files
    Ron
    Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad

    Kindly

    [1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
    [2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
    [3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated

+ 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