+ Reply to Thread
Results 1 to 10 of 10

Combine multi-value rows into a single row based on a Primary Key

  1. #1
    Registered User
    Join Date
    01-15-2013
    Location
    Hobo
    MS-Off Ver
    Excel 2007
    Posts
    9

    Combine multi-value rows into a single row based on a Primary Key

    Hello,

    I am hoping to get some help with an issue. I've extracted a rather large file with 16,000 service desk tickets with all related fields. Some fields are many to one meaning this file of 16,000 tickets turns out to be about 160,000 rows. I need to be able to semi-colon separate the fields with multiple values to create 1 row per ticket while not losing any information. I have attached a file with a tab for the current file and desired outcome (please notice that the fields with "Multi" in row 1 are the ones which need to be combined):

    Test File.xlsx

    I am hoping to make this process repeatable so any help would be greatly appreciated.

    Thank you in advance!

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

    Re: Combine multi-value rows into a single row based on a Primary Key

    Please see attached
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    01-15-2013
    Location
    Hobo
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Combine multi-value rows into a single row based on a Primary Key

    Thank you AB33! Are you using the column numbers to identify which columns needed to have their values semi-colon separated?

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

    Re: Combine multi-value rows into a single row based on a Primary Key

    I am using column A. My result is the same as yours one as per the attached.

  5. #5
    Registered User
    Join Date
    01-15-2013
    Location
    Hobo
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Combine multi-value rows into a single row based on a Primary Key

    Right, I really appreciate the solution. I was just curious how it knows not to semi-colon separate the values in Column D?

  6. #6
    Forum Expert
    Join Date
    11-28-2012
    Location
    Guatemala
    MS-Off Ver
    Excel 2010
    Posts
    2,394

    Re: Combine multi-value rows into a single row based on a Primary Key

    check sheet1 tab
    Attached Files Attached Files

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

    Re: Combine multi-value rows into a single row based on a Primary Key

    Because you have not asked as per the attached. If you want I can add to the code.

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

    Re: Combine multi-value rows into a single row based on a Primary Key

    Added column D
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    01-15-2013
    Location
    Hobo
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Combine multi-value rows into a single row based on a Primary Key

    Thank you so much for the clarification and the solution!

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

    Re: Combine multi-value rows into a single row based on a Primary Key

    You are welcome!
    Could you please now close this thread as solved? Go in to the top right-hand side of this page, choose, "Thread Tools", select, solved from the drop down menu.

+ 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