+ Reply to Thread
Results 1 to 10 of 10

Combine Rows Based On ID

  1. #1
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Combine Rows Based On ID

    I have a worksheet where in column J an employeeID is listed, and in column B the items sold for that day are. I want to take all the items for each employeeID and list on one line seperated with a comma.

    For example if data looks like this
    shirt e11
    pants e11
    socks e11
    hat r33
    blouse r33

    I want a new worksheet to show the data like this
    shirt, pants, socks e11
    hat, blouse r33


    This is for Excel 2013

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Combine Rows Based On ID

    Maybe:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Combine Rows Based On ID

    Very close -- it copies it to a new worksheet, but each ID gets a new row, not each item on one row

    And an extra comma at the end of the list (not a game changer on that)
    Last edited by jo15765; 03-07-2017 at 04:40 PM.

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Combine Rows Based On ID

    I'm confused. Can you provide sample sheets. One before, and one after.

  5. #5
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Combine Rows Based On ID

    worksheet showing how data is, and how data should be formatted.
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Combine Rows Based On ID

    Try the attached.
    Attached Files Attached Files

  7. #7
    Forum Contributor
    Join Date
    06-18-2010
    Location
    USA
    MS-Off Ver
    Excel 2016
    Posts
    546

    Re: Combine Rows Based On ID

    Perfect, thank you!

  8. #8
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Combine Rows Based On ID

    Give this a try

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  9. #9
    Valued Forum Contributor
    Join Date
    11-28-2015
    Location
    indo
    MS-Off Ver
    2016 64 bitt
    Posts
    1,272

    Re: Combine Rows Based On ID

    Mike 7952 : its good idea use dict

  10. #10
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Combine Rows Based On ID

    @daboho
    Why is that?

+ 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. [SOLVED] Looping to combine rows based on two elements
    By thesteve in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-16-2014, 02:04 PM
  2. [SOLVED] formula to combine rows based on empty rows
    By sam_mas in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-09-2013, 09:24 AM
  3. [SOLVED] Combine rows based on ID number
    By khystra42 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-10-2012, 01:38 PM
  4. [SOLVED] How to combine rows based on value in column A?
    By ClassicVAG in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 08-03-2012, 06:07 AM
  5. Combine rows based on unique column
    By excel_champ in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-27-2012, 03:34 AM
  6. Combine rows based on blank columns
    By motomoto1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-29-2010, 10:12 AM
  7. Combine Rows Based on Matching Cells in A
    By LeviThomason in forum Excel General
    Replies: 1
    Last Post: 06-28-2008, 04:27 PM
  8. Combine muliple rows into one based on criteria
    By smb2004 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-08-2007, 10:38 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