+ Reply to Thread
Results 1 to 5 of 5

How to bring comma separated values present in a column into cells in next row?

  1. #1
    Registered User
    Join Date
    04-23-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    27

    How to bring comma separated values present in a column into cells in next row?

    Hi,

    Can you please help on how to bring comma separated values present in a column into cells in next row.
    Comma separated columns are present in Column B. Column A is not comma separated. Please look into the sample input and expected output.
    I have around 10,000 records like this. Please suggest on the solution.

    E.g. (Sample Input)
    -------------------
    Column A Column B
    John 1999,2002,2003
    James 2003,2002,2001,2004,2005
    Joe 1999,2001

    Expected output
    -----------------
    Column A Column B
    John 1999
    2002
    2003
    James 2003
    2002
    2001
    2004
    2005
    Joe 1999
    2001


    Regards,
    Pal.

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: How to bring comma separated values present in a column into cells in next row?

    Try this

    Please Login or Register  to view this content.
    Output appears in columns E & F

    Open up the VBA editor by hitting ALT F11

    Insert a new module by hitting Insert - Module

    Paste the macro into the empty sheet

    Hit ALT F11 to get back to the worksheet.

    Run the macro by going to tools-macro in Excel 2003 or the view ribbon in Excel 2007/2010.
    Martin

  3. #3
    Forum Contributor gsnidow's Avatar
    Join Date
    07-22-2010
    Location
    Richmond, VA
    MS-Off Ver
    Excel 2007
    Posts
    150

    Re: How to bring comma separated values present in a column into cells in next row?

    Without putting too much into it, something like this might work. There are maybe better ways to get the last row, but I don't do it enough to know them off the top of my head. This assumes you have column headers, and I am putting the results in column "C" and "D".

    Please Login or Register  to view this content.
    Greg
    Last edited by gsnidow; 08-27-2014 at 04:22 PM.
    Just a guy trying to make work stuff easier.

  4. #4
    Registered User
    Join Date
    04-23-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: How to bring comma separated values present in a column into cells in next row?

    Hi,

    Thanks for your help.

    Regards,
    Palraj

  5. #5
    Registered User
    Join Date
    04-23-2014
    Location
    Chennai
    MS-Off Ver
    Excel 2007
    Posts
    27

    Re: How to bring comma separated values present in a column into cells in next row?

    Hi Greg,

    This exactly resolved my requirements. Kudos!. My sincere thanks to you.

    Regards,
    Pal.

+ 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. Replies: 7
    Last Post: 07-04-2014, 11:52 AM
  2. Replies: 1
    Last Post: 05-29-2014, 12:27 PM
  3. Error in a existing Macro used for compare the Comma Separated Values present in 2 columns
    By Manish_Gupta in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-28-2014, 05:44 AM
  4. How to Separately put comma separated values in adjacent cells
    By en19ma in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-06-2012, 01:30 AM
  5. Excel 2007 : One column to txt comma separated values
    By Runnit4 in forum Excel General
    Replies: 1
    Last Post: 02-15-2011, 05:44 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