+ Reply to Thread
Results 1 to 3 of 3

Evaluating rows column-by-column to separate comma-separated data

  1. #1
    Registered User
    Join Date
    11-30-2014
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    2

    Evaluating rows column-by-column to separate comma-separated data

    Hi there -

    I have a code that will do this for a specified column that I’ve included below. It currently only works for one column which I specify column in the code (column 3). I need it to evaluate each column sequentially to separate all comma-separated data column-by-column. For example, the macro needs to look at column one, separate the list, and then take that output and separate it based on column two. It keeps going through the columns until there are no more columns.

    The attached workbook shows an example of what I want the output to look like for a given input.

    My suspicion is that I need to put a loop in a loop but honestly have no idea how to do it. Any help would be greatly appreciated!

    Thank you!

    Current code:
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by adventurepirate; 11-30-2014 at 03:06 PM.

  2. #2
    Forum Expert Debraj Roy's Avatar
    Join Date
    09-27-2012
    Location
    New Delhi,India
    MS-Off Ver
    Excel 2013
    Posts
    1,469

    Re: Evaluating rows column-by-column to separate comma-separated data

    Your post does not comply with Rule 3 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found here



    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)


    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Regards!
    =DEC2HEX(3563)

    If you like someone's answer, click the star to give them a reputation point for that answer...

  3. #3
    Registered User
    Join Date
    11-30-2014
    Location
    Toronto
    MS-Off Ver
    2010
    Posts
    2

    Re: Evaluating rows column-by-column to separate comma-separated data

    Thanks - I think I've changed it to match your standards. Let me know if there's anything else!

+ 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. Combine multiple rows into one comma separated column
    By NotAvg1 in forum Excel General
    Replies: 9
    Last Post: 03-04-2013, 07:06 PM
  2. [SOLVED] separate cell with comma separated data into one column
    By Tenos in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-12-2012, 02:45 PM
  3. Column/cells to single cell comma separated data?
    By egeorge4 in forum Excel General
    Replies: 1
    Last Post: 04-27-2007, 03:53 PM
  4. Replies: 1
    Last Post: 09-07-2006, 11:17 PM
  5. Replies: 1
    Last Post: 09-07-2006, 04:28 PM

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