+ Reply to Thread
Results 1 to 10 of 10

Concatenate Data

  1. #1
    Registered User
    Join Date
    10-30-2012
    Location
    Chicago
    MS-Off Ver
    Excel 365
    Posts
    93

    Red face Concatenate Data

    Using Excel 2007

    I have a sheet tab (sheet1) that has a list of product IDs in column A and relative codes in column B. There can be duplicate Product IDs in sheet1.

    10.JPG

    How can I set up some formulas and break out the table above to look like the table below?

    12.JPG

    If this cannot be done, can someone show me how to break out the data like the table below?

    13.JPG

    Your help is greatly appreciated.
    Karen
    Attached Files Attached Files
    Last edited by Karen615; 05-08-2013 at 05:00 PM. Reason: Change post title

  2. #2
    Forum Expert
    Join Date
    09-01-2012
    Location
    Norway
    MS-Off Ver
    Office 365
    Posts
    2,844

    Re: Is this automation possible?

    If you post those sample data in a workbook instead it will be a quick fix.
    <----- If you were helped by my posts you can say "Thank you" by clicking the star symbol down to the left

    If the problem is solved, finish of the thread by clicking SOLVED under Thread Tools
    I don't wish to leave you with no answer, yet I sometimes miss posts. If you feel I forgot you, remind me with a PM or just bump the thread.

  3. #3
    Registered User
    Join Date
    10-30-2012
    Location
    Chicago
    MS-Off Ver
    Excel 365
    Posts
    93

    Re: Is this automation possible?

    Quote Originally Posted by Jacc View Post
    If you post those sample data in a workbook instead it will be a quick fix.
    I'm sorry, I do not see where to upload the workbook.
    HELP!

  4. #4
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Concatenate Data

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  5. #5
    Registered User
    Join Date
    10-30-2012
    Location
    Chicago
    MS-Off Ver
    Excel 365
    Posts
    93

    Re: Concatenate Data

    I just uploaded it!
    Thank you!

  6. #6
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Concatenate Data

    I don't see your sheet.
    Anyway first select your product ID's and move them and, from data ribbon tab, remove duplicates.

    then with this new list, let's say it's in col A of sheet2 with data in sheet1

    Must be entered as an array using CNTRL SHFT ENTER instead of ENTER (if done correctly, you'll see {} around your formula) in B2 of sheet 2
    =IFERROR(INDEX(Sheet1!$B$2:$B$10,SMALL(IF(Sheet1!$A$2:$A$10=$A2,ROW($A$2:$A$10)-ROW($A$2)+1,1E+100),COLUMN(A1))),"")
    copied down and to the right
    Does that work for you?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  7. #7
    Registered User
    Join Date
    10-30-2012
    Location
    Chicago
    MS-Off Ver
    Excel 365
    Posts
    93

    Re: Concatenate Data

    I'm sorry, now it's attached!

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Concatenate Data

    Here it is with the formula (and method) I described above. Questions?
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    10-30-2012
    Location
    Chicago
    MS-Off Ver
    Excel 365
    Posts
    93

    Re: Concatenate Data

    You said:
    Anyway first select your product ID's and move them and, from data ribbon tab, remove duplicates.

    I must not be understanding this. If I remove the duplicate product IDs in sheet1, it removes the associated code.
    What am I missing?

    Thanks for your help!
    Karen

  10. #10
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Concatenate Data

    Sorry, wrong choice of words, I meant copy them. Then you can remove duplicates from the copied set.

+ 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