+ Reply to Thread
Results 1 to 6 of 6

Best way to parse colums and rows w/ multiple values separated by comma?

  1. #1
    Registered User
    Join Date
    12-14-2009
    Location
    Japan
    MS-Off Ver
    Excel 2003
    Posts
    4

    Question Best way to parse colums and rows w/ multiple values separated by comma?

    I routinely have do download massive data sets of reporting that is saved as an excel spreadsheet. The three columns of sample data attached are Report Numbers, Report Evaluation Serial Numbers, and Report Evaluator ID.
    As seen in the attached spreadsheet, there can be multiple Report Numbers (in same field separated by comma) which have been evaluated by different Evaluators. It is my responsibility to account for the number of Reports that have been evaluated, and many other metrics from like data. The issue I have is when more than one report number is listed in the same field I need to parse the data into its own field for ease of counting (and also maintain the adjacent data). It is not a problem to merely copy the fields and delete the excess numbers, however when dealing with thousands of Reports, and Evaluators this can be very time consuming. In the attached file I have separated .xls into three workbooks to help explain my problem: Initial state of Data; What I need To Parse Out; and The final endstate I require. I hope that I have explained this issue with enough detail. I am sure that the attached file will explain better.

    Any help in this matter will be greatly appreciated!
    Attached Files Attached Files
    Last edited by Sutukh19; 12-14-2009 at 09:35 AM.

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Best way to parse colums and rows w/ multiple values separated by comma?

    See if the below is of interest - designed to run against your "Initial State of Information" sheet - ie alters original data (run on a test first!)

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-14-2009
    Location
    Japan
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Best way to parse colums and rows w/ multiple values separated by comma?

    I greatly appreciate the fast answer, however I am not familiar at all with VBA (looks like I have finally found a reason to learn more about, as my job deals pure metrics, charts graphs and spreadsheets). I will read up on how to apply the following code, so I do not inundate you with my lack of VBA Knowledge. If there are any place that you could point me to with beginning VBA ( I will scour this forum also0, It will be appreciated also!

    Thanks in advance!

  4. #4
    Registered User
    Join Date
    12-14-2009
    Location
    Japan
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Best way to parse colums and rows w/ multiple values separated by comma?

    Well, It works like a champ. Now it is my duty to figure out how you got it to work, If I learn some basic VBA I may be able to cut some hours out of my work day. I have worked on that data set from 8.am til 5:30 pm parsing out all of the data, sorting it and making charts and graphs from the data.

  5. #5
    Registered User
    Join Date
    12-14-2009
    Location
    Japan
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Best way to parse colums and rows w/ multiple values separated by comma?

    In regards to the bit of code that was sent in response of this post,
    It works, however I have noticed it only works within columns a,b, and c. If any data is in adjacent cells to the right of C, they do not get copied (SPLIT) down. The maximum number of columns that need to be carried down when the macro is ran is roughly 10 columns. Is there any other possible solution to get the data copied down in adjacent rows? Until now I have been copying the rows manually and pasting them down the worksheet.

  6. #6
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Best way to parse colums and rows w/ multiple values separated by comma?

    Not entirely sure I follow but perhaps try altering:

    Please Login or Register  to view this content.
    to

    Please Login or Register  to view this content.
    so instead of simply copying down B:C you're now copying down B:L

+ 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