Results 1 to 6 of 6

Lookup numbers and concatenate them in a different cell

Threaded View

Neyme Lookup numbers and... 07-23-2014, 05:26 PM
TMS Re: Lookup numbers and... 07-23-2014, 06:45 PM
TMS Re: Lookup numbers and... 07-24-2014, 10:27 AM
Neyme Re: Lookup numbers and... 07-24-2014, 10:49 AM
TMS Re: Lookup numbers and... 07-24-2014, 12:00 PM
Neyme Re: Lookup numbers and... 07-24-2014, 01:27 PM
  1. #1
    Forum Contributor
    Join Date
    11-21-2013
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    102

    Lookup numbers and concatenate them in a different cell

    Hi,

    Can one of VBA gurus please help me with the VBA code and Excel formula? The data is attached in the spreadsheet: "Product IDs".
    The data is a set of Master Product IDs (parent) and the Linked to them Products (children). I need to create a relationship between unique parents (Master Product IDs) and their children (Linked Products)

    From the Data Set table, need to vlookup the unique value in column A (Master Product ID) and return comma delimited (concatenated) corresponding values from column B (Linked Products). So, the result will be as shown in Table 2. Ideally, I would need the results as shown in the Table 3 as an output in the attached spreadsheet. There are only three unique families in Table 3. But if it is difficult to do, then Table 2 results will do.

    I would really appreciate your help. Thank you in advance!

    Table 1
    DATA SET
    Master Product ID Linked Products
    11 1
    11 2
    11 3
    11 4
    4 11
    4 3
    4 2
    4 1
    3 1
    3 2
    3 4
    3 11
    2 1
    2 3
    2 4
    2 11
    1 2
    1 11
    1 4
    1 3
    232 43
    232 85
    232 16
    16 232
    16 85
    16 43
    43 85
    43 16
    43 232
    85 16
    85 232
    85 85
    123 89
    89 123


    I need to


    WOULD RETURN comma delimited Linked Product IDs for each corresponding product like depicted in Linked Products column in Table 2 below.

    Table 2
    Master Product ID Linked Products
    11 1,2,3,4
    4 1,2,3,11
    3 1,2,4,11
    2 1,3,4,11
    1 2,3,4,11,
    232 16,43,85
    16 43,85,232
    43 16,85,232
    85 16,43,232
    123 89
    89 123
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 14
    Last Post: 07-24-2014, 02:20 PM
  2. [SOLVED] Require Function to Lookup and Concatenate Mulltiple Results To Single Cell
    By nuttyengineer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2012, 12:19 AM
  3. Excel 2007 : Lookup and Concatenate help
    By jonesdogg in forum Excel General
    Replies: 1
    Last Post: 06-10-2011, 01:52 AM
  4. How lookup numbers between range numbers in 1 cell ?
    By termal in forum Excel General
    Replies: 4
    Last Post: 02-06-2010, 06:57 AM
  5. Lookup numbers in sheet and assign it's cell reference
    By dgraham in forum Excel General
    Replies: 11
    Last Post: 12-18-2007, 09:48 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