+ Reply to Thread
Results 1 to 5 of 5

Macro to Separate Data

  1. #1
    Registered User
    Join Date
    01-19-2012
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2003
    Posts
    3

    Macro to Separate Data

    I have a column in a spreadsheet, in which several types of data are combined in the following format:

    #### - ttttttttttt/llllll, ffff

    I need to separate the ####, tttttttttt, llllll, and fffff into different columns, corresponding to the same row as the column from which the data is extracted.

    Is there a way to accomplish this with a macro? While the length of the different data varies, the separators (i.e. " - ", "/" and ",") are consistent throughout.

    Many thanks for any suggestions.

    Tom

  2. #2
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Macro to Separate Data

    Have you tried text to columns?

  3. #3
    Registered User
    Join Date
    01-19-2012
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Macro to Separate Data

    I'm sorry, I'm not familiar with that... is it a function or a macro, or a plugin, maybe?

    Thanks for your help!

  4. #4
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Macro to Separate Data

    Nope, select the full column, Data > Text To columns > Make sure Delimited is selected > Next > untick tab, in other put the delimiter press finish

    You can then just repeat for the other delimiters

  5. #5
    Registered User
    Join Date
    01-19-2012
    Location
    Orlando, Florida
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Macro to Separate Data

    Brilliant! Many thanks! Guess this was something MANY XL users had encountered, so MS just created their own function. Again, MANY thanks!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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