+ Reply to Thread
Results 1 to 13 of 13

Combined data from multiple rows if column contains a duplicate value

  1. #1
    Registered User
    Join Date
    11-01-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    10

    Combined data from multiple rows if column contains a duplicate value

    Hello!
    I am trying to figure out how to combined data from multiple rows, for each ssn (Group1), into one row.
    Attached Files Attached Files

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

    Re: Combined data from multiple rows if column contains a duplicate value

    It is not clear which columns you want to merge if you have duplicate rows, but I assumed it is the reward column. Try the attached
    Attached Files Attached Files
    Last edited by AB33; 03-04-2013 at 02:51 PM.

  3. #3
    Registered User
    Join Date
    11-01-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Combined data from multiple rows if column contains a duplicate value

    Sorry. I want to consolidate all row data for every Group1 number.

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

    Re: Combined data from multiple rows if column contains a duplicate value

    Still no clear! I presume you are referring to column 2(B), so if there duplciates in column B what do you want to do with the rest of the columns? How do you want to consolidate?

  5. #5
    Registered User
    Join Date
    11-01-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Combined data from multiple rows if column contains a duplicate value

    Each student has multiple rows of information and only data in columns N:R need to be consolidated into one row. The goal is to be able to print a letter for each student showing them want their awards are. If all of the award information is combined into one row then I know how to export each row to an award letter to print out.

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

    Re: Combined data from multiple rows if column contains a duplicate value

    I have ameded the above code (Attached), but you have not specified how the texts to be merged in to one with out a separator.

  7. #7
    Registered User
    Join Date
    11-01-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Combined data from multiple rows if column contains a duplicate value

    Awesome! Thanks!

  8. #8
    Registered User
    Join Date
    11-01-2012
    Location
    usa
    MS-Off Ver
    Excel 2007
    Posts
    10

    Re: Combined data from multiple rows if column contains a duplicate value

    Actually, is there a way not to combined the values or can each additional row of information (Award Type), for each student, can be added to the blank columns to the right of the original row information? For example, is it possible to perform a pivot table function to get my result?

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

    Re: Combined data from multiple rows if column contains a duplicate value

    Yes, Pivot Table should do.

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

    Re: Combined data from multiple rows if column contains a duplicate value

    You mean like this

    Please Login or Register  to view this content.
    Last edited by mike7952; 03-04-2013 at 09:10 PM.
    Thanks,
    Mike

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

  11. #11
    Registered User
    Join Date
    09-17-2003
    Location
    Illinois
    Posts
    6

    Re: Combined data from multiple rows if column contains a duplicate value

    Ironically, I need help with something similar.

    I have a list of companies and employees, if a company has more than 1 employee listed, I need to combine all instances of the employees into 1 row per company separated by a comma. I've looked through some of the examples posted, but my macro and vb skills are terribly rusty.

    Can someone please help?Sample.xlsx

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

    Re: Combined data from multiple rows if column contains a duplicate value

    NotAvg1,
    I am afraid it is against forum's rule to post a thread on some one else's thread. You need to start your own thread as new one

  13. #13
    Registered User
    Join Date
    09-17-2003
    Location
    Illinois
    Posts
    6

    Re: Combined data from multiple rows if column contains a duplicate value

    Sorry.................................

+ 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