+ Reply to Thread
Results 1 to 3 of 3

Why is Excel breaking my one line text file data into multiple lines? Fix?

  1. #1
    Registered User
    Join Date
    08-10-2011
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    3

    Why is Excel breaking my one line text file data into multiple lines? Fix?

    My text file has 4 lines that I'd like to copy into Excel file. I want one line per cell in Excel, but somehow it breaks every text file line into multiple lines. It looks to me that Excel is breaking it every time it sees <p>. So instead of seeing just 4 Excel cells being filled up, I see over 50+

    I don't want it to do that It didn't happen with one of my other text file so I am not sure what I did wrong this time…

    I searched the forum and see most people want to split up the content, I don't want that in this case.

    How should I fix this?

    Please help. Thank you in advance.
    Attached Files Attached Files
    Last edited by Linlin; 10-23-2011 at 05:39 PM.

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,424

    Re: Why is Excel breaking my one line text file data into multiple lines? Fix?

    Works for me. Perhaps you used "<" or ">" or "/" in a previous Text to Columns and it has been retained by Excel and used when you open your text file.

    Best bet is, *before you open your text file*, to select a couple of blank cells and choose Text to Columns. Reset all the delimiters (untick them). Then try opening the file.

    Regards
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,610

    Re: Why is Excel breaking my one line text file data into multiple lines? Fix?

    When you import your text file, choose "fixed width". Click NEXT to see the data preview and double click (or drag away) the column break lines in the preview pane to remove them
    Ben Van Johnson

+ 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