+ Reply to Thread
Results 1 to 3 of 3

Formula concatenate data in multiple rows based on match data in a different row.

  1. #1
    Registered User
    Join Date
    04-24-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    5

    Formula concatenate data in multiple rows based on match data in a different row.

    I am trying to create a formula that will identify all matching data in column A, where there is a match the data in column D should be returned in column E with each result seperated by " / ".

    I have uploaded a spreadsheet with a sample of the ideal outcome. Where the ID in column A matches, the data in column D should be returned for all matches in column E with " / " as the seperator.

    I have tried the formula =INDEX($D$2:$D$17,MATCH(A2,$A$2:$A$17,0)) but this only provides one match.
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Formula concatenate data in multiple rows based on match data in a different row.

    It can be done with a concatenation UDF. I think I borrowed this one from Mike Rickson.

    ConcatIfs in Scotland.xlsm

    The function and parameters: ConcatIf(criteria range,criteria,output range,delimiter in quotes)

    So I used:

    =CONCATIF($A$2:$A$17,A2,$D$2:$D$17," / ")

    To get this, copy the code below, then in Excel hit Alt+F11, Insert Module, and paste the code, and close that window.

    Call the User Defined Function as described above

    Please Login or Register  to view this content.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  3. #3
    Registered User
    Join Date
    04-24-2012
    Location
    Scotland
    MS-Off Ver
    Excel 2007
    Posts
    5

    Re: Formula concatenate data in multiple rows based on match data in a different row.

    This is exactly what i was looking for. Much appreciated.

+ 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. Replies: 9
    Last Post: 12-13-2013, 07:40 PM
  2. [SOLVED] Is a there a lookup formula I can use to match data from multiple columns of data?
    By missydanni in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 10-29-2013, 08:27 AM
  3. [SOLVED] Need assistance to sum data based on multiple match criteria
    By consulttk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-01-2012, 12:11 PM
  4. Concatenate multiple rows based on column value
    By sbartlett1123 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-20-2012, 05:58 PM
  5. vlookup formula to return multiple rows of data based on the same value.
    By Point5 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-14-2011, 06:03 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