+ Reply to Thread
Results 1 to 4 of 4

Excel 2008 : Split cell with 4 comma separated values into 4 separate cells

  1. #1
    Registered User
    Join Date
    01-11-2012
    Location
    Connecticut
    MS-Off Ver
    Excel 2010
    Posts
    1

    Split cell with 4 comma separated values into 4 separate cells

    Hello,

    Not enough room in the title to explain. I have numerous cells with an entry listed in a numerical array, for example: (7,3,9,8) and I would like to quickly convert them to four separate cells within one column. So, using the example above, the output would be four separate cells like this:
    7
    3
    9
    8

    I have hundreds of cells to convert this way and it would be handy to have an automated way to do this. If there is no Excel function to do this, is there either a way to write the script or a place to find someone who can write the script for me (for a few coins)?

    Thank you and I apologize in advance for any forum rules I may have violated (even after reading them).

    Thank you!
    anthrorob

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Is there a way to have a cell w/ 4 comma seperated numbers moved to 4 cells ?

    So if that "array" is in cell A1, try in A2:

    =MID(A$1,2*(ROWS(A$1:A1)-1)+1,1)+0

    copied down 4 cells.

    You can copy across to extract from B1 and so on....
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Is there a way to have a cell w/ 4 comma seperated numbers moved to 4 cells ?

    Hi anthrorob,

    Welcome to the forum.
    Though not clear how your data is arranged but it can be simply done using Text to Column feature of MS Excel where you can separate data basis comma (,) and after this you just need to replace brackets i.e., ( and ) with blank. If you get the output in horizontal form, you can convert that later to vertical form using copy - paste special - transpose option. Would like to give a try if you could upload a sample file for this. Thanks.

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), dilipandey@gmail.com

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Split cell with 4 comma separated values into 4 separate cells

    if you want all in one column then try this
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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