+ Reply to Thread
Results 1 to 5 of 5

Text to columns is cutting out data

  1. #1
    Registered User
    Join Date
    05-28-2014
    Posts
    2

    Text to columns is cutting out data

    How do you propose to separate data with the delimiter of []? I am trying text to columns but the way it is formatted will only bring the first part of the data over, and nothing else. Example of data in one column:

    "Abdominal abscess [244817]
    MRSA infection [339874]
    Quadriplegia following spinal cord injury [519546]"


    That is all in one cell. I am wanting to separate into multiple columns, the above into 3 columns for instance. Thoughts?

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Text to columns is cutting out data

    • Select your single-column range of source data
    • Data.Text-to-columns
    ...Check: Delimite...Click: Next
    ...Check: Other
    ...Select the character box...Hold down CTRL and press j <-That is "secret code" for a line-feed
    ...Click: Finish

    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Registered User
    Join Date
    05-28-2014
    Posts
    2

    Re: Text to columns is cutting out data

    OMG that worked thank you so much! How would I ever have figured that out, lol!

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Text to columns is cutting out data

    Glad you got something you can use!

    Be sure to mark this thread as SOLVED (from the Thread Tools menu)

  5. #5
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Text to columns is cutting out data

    Maybe do this in two steps.

    First replace bracketed terms with a single character. Here's a link which has a function for using regular expressions.

    http://excel.tips.net/T003303_Wildca...With_Text.html

    I've modified this slightly to cope with multiple occurences

    Please Login or Register  to view this content.

    =SearchNReplace1("\[.*\]","\[.*\]","|",A1)


    Then do a text to columns with the | character as a delimiter.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 7
    Last Post: 09-03-2013, 04:43 PM
  2. Replies: 1
    Last Post: 09-02-2013, 06:54 PM
  3. Text cutting
    By faisal.ta in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-04-2013, 04:31 AM
  4. Excel 2007 : an excel row cutting off the bottom of text?
    By robbyvegas in forum Excel General
    Replies: 2
    Last Post: 07-16-2010, 11:34 AM
  5. cutting text
    By Aaron in forum Excel General
    Replies: 1
    Last Post: 12-15-2005, 12:15 PM

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