+ Reply to Thread
Results 1 to 6 of 6

Splitting comma delimited numbers into new columns

Hybrid View

  1. #1
    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.

  2. #2
    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.

  3. #3
    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:

        Selection.TextToColumns Destination:=Range("E1"), DataType:=xlDelimited, _
            TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
            Semicolon:=False, Comma:=True, Space:=False, Other:=False, FieldInfo _
            :=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1), Array(5, 1), Array(6, 1)), _
            TrailingMinusNumbers:=True
    To always make it column B just change selection to Columns:

        Columns("B").TextToColumns Destination:=Range("E1"), DataType:=xlDelimited, _
            TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=False, Tab:=False, _
            Semicolon:=False, Comma:=True, Space:=False, Other:=False, FieldInfo _
            :=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1), Array(5, 1), Array(6, 1)), _
            TrailingMinusNumbers:=True

  4. #4
    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

  5. #5
    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