+ Reply to Thread
Results 1 to 8 of 8

Vlookup/index/match + concatenation

  1. #1
    Registered User
    Join Date
    09-26-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    MS Office 2010
    Posts
    64

    Vlookup/index/match + concatenation

    Hello all,

    I'm having trouble figuring out a specific formula. I want to do a VLOOKUP (or something similar) that matches a value in a table in a separate sheet, and returns a specific value, but the kicker is that it will concatenate the values if there are two or more different values matching the initial lookup value.

    Please see the attached spreadsheet example. I would run the formula in B2 of the first tab, and it would reference the table in the second tab. This is much smaller scale example than what I intend on applying to. There could potentially be more than 2 matches for a specific family number.

    Thanks in advance.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    02-28-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    272

    Re: Vlookup/index/match + concatenation

    In C2 use:

    Please Login or Register  to view this content.
    With CTRL+SHIFT+ENTER
    Please consider adding a * if I helped

  3. #3
    Registered User
    Join Date
    09-26-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    MS Office 2010
    Posts
    64

    Re: Vlookup/index/match + concatenation

    When I ran that, it gave me the Product #'s from the second tab. What I have in Column B in the first tab is an example of how I want it to look after the formula is ran. As you can see, it concatenated the instances where two different contacts matched the same family. That's what I'm looking for.

  4. #4
    Forum Contributor
    Join Date
    02-28-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    272

    Re: Vlookup/index/match + concatenation

    Can you please give some more information about your query

  5. #5
    Registered User
    Join Date
    09-26-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    MS Office 2010
    Posts
    64

    Re: Vlookup/index/match + concatenation

    Okay. Basically, I want a function that isn't confined to the limitations of a simple VLOOKUP. If I were to VLOOKUP on just the family column, it will return only the value of the first occurrence of a match. So if I ran it in B2 of the first tab and dragged it down, for Family P555, it would list "Smith" as the match and display that in the cell. I want something that will account for all of the matches for a specific family number, so for P555, it will list "Smith, Johnson" when the formula runs in B11, since in the reference table in the second tab, both Smith and Johnson contain the Family value of P555. Does that make more sense? I want it to list all unique matches in a concatenation type form, without generating duplicates.

  6. #6
    Forum Contributor
    Join Date
    02-28-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    272

    Re: Vlookup/index/match + concatenation

    I have added one helper column in sheet 2
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    09-26-2012
    Location
    Pittsburgh, PA
    MS-Off Ver
    MS Office 2010
    Posts
    64

    Re: Vlookup/index/match + concatenation

    Is there anyway to modify that so that it won't list the same name twice? In rows 4 and 11, the same name is duplicated. For the purposes of this, we can assume that there is only one person named Black and one person named Smith.

  8. #8
    Forum Contributor
    Join Date
    02-28-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    272

    Re: Vlookup/index/match + concatenation

    Use following function in D2 under "Extra" & drag down:

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  2. Replies: 13
    Last Post: 12-13-2012, 11:44 AM
  3. Replies: 2
    Last Post: 03-16-2012, 12:03 PM
  4. Index & Match with Concatenation
    By rickyilas in forum Excel General
    Replies: 2
    Last Post: 08-15-2011, 03:28 PM
  5. match value in one column to adjacent value: use vlookup or index/match?
    By conorsgaffney in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-28-2010, 04:59 PM

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