+ Reply to Thread
Results 1 to 4 of 4

Sorting data based on product number

  1. #1
    Registered User
    Join Date
    01-17-2012
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    5

    Exclamation Sorting data based on product number

    Hey everyone, I'm having a really big problem combining data from several cells based on a product number. Basically I have products that have multiple images and there listed out like this:

    1|Image 1|
    1|Image 2|
    1|Image 3|
    1|Image 4|
    2|Image 1|
    2|Image 2|
    2|Image 3|
    2|Image 4|

    What I need is a way of combining the information from the image address cells with just a comma and a space in between the data. It must be based on the number in the cell in front of them which is the product number.

    So that it looks like this:

    1|image 1, image 2, image 3, image 4|

    I think a macro can do it but I lack the knowledge on how to construct one of that complexity.

    My description is confusing but if you look at the file uploaded you understand.


    Any assistance would be very much appreciated!


    Data Sorting Problem.xls

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sorting data based on product number

    "MERGE ROWS
    Here's a macro for merging rows of data using the ID in column A and putting the column B values together in a delimited manner of your choosing. There's a sample file as well for testing.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    01-17-2012
    Location
    Canada
    MS-Off Ver
    Office 2010
    Posts
    5

    Re: Sorting data based on product number

    Quote Originally Posted by JBeaucaire View Post
    "MERGE ROWS
    Here's a macro for merging rows of data using the ID in column A and putting the column B values together in a delimited manner of your choosing. There's a sample file as well for testing.
    Thanks so much I appreciate this! It worked perfectly!!

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Sorting data based on product number

    If that takes care of your need, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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