+ Reply to Thread
Results 1 to 5 of 5

Data Repeating Characters into Muliple Columns

  1. #1
    Registered User
    Join Date
    11-30-2012
    Location
    AUstin, Texas
    MS-Off Ver
    Excel 07
    Posts
    5

    Data Repeating Characters into Muliple Columns

    I have tens of thousands of rows of data that come in like the following:
    This+is+a+test
    The problem is I have to break this down and put it all together in multiple ways. Everything before the first Plus needs to remain intact and keep the +, but all remaining pluses need to be changed to "-". Then I need to have everything in between the "-" broken into columns of which those individual elements need to be edited using another list using vlookup, edited and then concentated back into one column with the delimiters.

    Its a little more complicated because some have multiple +'s, some have just one and some have +'s and -'s. I have attached a sample. I've made some progress but need everything from column E and on sorted so I can do the vlookup on them.

    Oh and everything using vlookup needs to be changed to something else. Some are already correct and output to the same thing.

    Sample.xlsx
    Last edited by stva1006; 11-30-2012 at 05:30 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Data Repeating Characters into Muliple Columns

    Hi stva1006,

    Have you tried Text to Columns?

    Higlight your cells that you want separated, pres Text to Columns, Delimited, Next, Delimiters, check only Others: + (plus sign), Next, Finish

    Then go back and add the + sign back to the first column (use a helper column and use the formula = A1&"+")

    Let me know if this didn't work.

    Dennis

  3. #3
    Registered User
    Join Date
    11-30-2012
    Location
    AUstin, Texas
    MS-Off Ver
    Excel 07
    Posts
    5

    Re: Data Repeating Characters into Muliple Columns

    Yeah, the problem with that is after those columns then need to be referenced by another sheet or cell to be edited to a different description. And I am dealing with 11,000 rows with 5,500 different combinations of data in ever way possible. I have to do this on a regular basis and its extremely time consuming. I am trying to create a template that these can be imported into with the least amount of tweaking possible then exported to a .csv

    Shawn

  4. #4
    Valued Forum Contributor
    Join Date
    09-10-2012
    Location
    Los Angeles, CA
    MS-Off Ver
    Excel 2010
    Posts
    929

    Re: Data Repeating Characters into Muliple Columns

    Hi Shawn,

    You can record it into a macro and simply create a button to do all the work.

    I suggest you look up in the VBA/macro section for parsing data. I'm sure there are plenty of code that people have come up with.

    Good luck!

  5. #5
    Registered User
    Join Date
    11-30-2012
    Location
    AUstin, Texas
    MS-Off Ver
    Excel 07
    Posts
    5

    Re: Data Repeating Characters into Muliple Columns

    Thanks for the help!

+ 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