+ Reply to Thread
Results 1 to 6 of 6

Text to column: Fixed width

  1. #1
    Registered User
    Join Date
    02-21-2012
    Location
    Indiana
    MS-Off Ver
    Excel 2010
    Posts
    14

    Text to column: Fixed width

    Hello; the data I work with requires heavy use of the text-to-column function. For delimited characters, this works fine. However, whenever I select "Fixed width," Excel [usually] automatically adds at least one break line, usually towards the end of the line. Why is the program doing this? Is there any way to stop it from doing so?

  2. #2
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Text to column: Fixed width

    Can you upload your workbook (or part of it) so I can take a look at the code.
    If necessary dummiefy the data.
    Cheers!
    Tsjallie




    --------
    If your problem is solved, pls mark the thread SOLVED (see Thread Tools in the menu above). Thank you!

    If you think design is an expensive waste of time, try doing without ...

  3. #3
    Registered User
    Join Date
    02-21-2012
    Location
    Indiana
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Text to column: Fixed width

    Sure:

    dummy workbook.xlsx

    Thanks.
    Last edited by Cutter; 10-21-2012 at 04:49 PM. Reason: Removed whole post quote

  4. #4
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Text to column: Fixed width

    Well, looked at you sheet and it's pretty obvious what's happening.
    When you select fixed length, TextToColumns looks for spaces between "fields" which are common to all the rows.
    You can follow this process by selecting one row and then look where TextToColumn place the breaklines.
    Then select two rows and look where the breaklines are placed. You will see that all the breaklines where the two rows do not share a space will be gone.

    Given that the data rows in your sheet do not have a common structure the result may show pretty random indeed.

  5. #5
    Registered User
    Join Date
    02-21-2012
    Location
    Indiana
    MS-Off Ver
    Excel 2010
    Posts
    14

    Re: Text to column: Fixed width

    I guess there's no way to disable the automatic break lines, then...correct? Thanks for your help.

  6. #6
    Forum Expert Tsjallie's Avatar
    Join Date
    09-15-2012
    Location
    NL
    MS-Off Ver
    2010, 2013, 2016
    Posts
    2,077

    Re: Text to column: Fixed width

    No, I don't think there is.
    But if you feed the wizard structured data the breaklines will probably be in the right place and if not you can remove them by clicking on them or insert additional breaklines by clicking the position where you want to insert them.
    Last edited by Tsjallie; 10-22-2012 at 07:04 AM.

+ 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