+ Reply to Thread
Results 1 to 6 of 6

Splitting comma delimited numbers into new columns

  1. #1
    Registered User
    Join Date
    05-30-2010
    Location
    london
    MS-Off Ver
    Excel 2003 excel 2007
    Posts
    3

    Smile Splitting comma delimited numbers into new columns

    Hi,
    I got a excel sheet with three columns and dynamic number of rows..

    column(A) column(B) column(C) column(D)
    123 "abc,1,2,3,4,b5" 23456 99999
    123 "cde,3,4,b5" 23456 00000
    123 "ghi,2,3,4,b5" 23456 00000

    i am struggling to split COLUMN(b) text and move into new columns next to column(D).

    Note: I got multiple excel files which are almost similar in nature but number of rows varies from file to file.

    Please can someone help with somekind of macro or function, which i can automate this process.

    Many thanks,
    Sohail

  2. #2
    Forum Contributor
    Join Date
    12-03-2009
    Location
    Providence RI
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    260

    Re: Splitting comma delimited numbers into new columns

    Use text to columns, use space as your delimiter. Works fine for me.

    Edit: Oh I misread what you said. Just use text to columns on B with , as the delimiter. Set the target as E1.
    Last edited by Dulanic; 05-30-2010 at 06:42 PM.

  3. #3
    Registered User
    Join Date
    05-30-2010
    Location
    london
    MS-Off Ver
    Excel 2003 excel 2007
    Posts
    3

    Re: Splitting comma delimited numbers into new columns

    Yes i knew this is possible, but how can we do using within a module or say somekind of script, than attach it to a macro.
    Last edited by salmansohail; 05-30-2010 at 06:46 PM.

  4. #4
    Forum Contributor
    Join Date
    12-03-2009
    Location
    Providence RI
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    260

    Re: Splitting comma delimited numbers into new columns

    Use macro recorder....

    It gives:

    Please Login or Register  to view this content.
    To always make it column B just change selection to Columns:

    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    05-30-2010
    Location
    london
    MS-Off Ver
    Excel 2003 excel 2007
    Posts
    3

    Re: Splitting comma delimited numbers into new columns

    sorry i didn't get it. i think this is quite possible if i got excel 2003 or excel 2007, but unfortunatley for tonight i got open office calc and there is option in calc to specify destination column.
    that is why i want some kind of split function and attach this to a macro/button.

    but Many thanks

  6. #6
    Forum Contributor
    Join Date
    12-03-2009
    Location
    Providence RI
    MS-Off Ver
    Excel 2007, Excel 2010
    Posts
    260

    Re: Splitting comma delimited numbers into new columns

    Sorry, don't use calc so couldnt help ya there.

+ 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