+ Reply to Thread
Results 1 to 8 of 8

Text file with multiple rows

  1. #1
    Registered User
    Join Date
    04-17-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    28

    Text file with multiple rows

    I have a .txt file that I am trying to open in Excel but some of the columns are being combined creating multiple rows where there should be only one. I have attached examples for clarification.

    Thanks!
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Text file with multiple rows

    try not open but Data - Get data from text with | delimiter

  3. #3
    Registered User
    Join Date
    04-17-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Text file with multiple rows

    I was hopeful, but it returns the same result

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Text file with multiple rows

    You have only two CR/LF there so it will be divided like you see after import

    fromtxtfile.jpg

  5. #5
    Registered User
    Join Date
    04-17-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Text file with multiple rows

    But is there a fix to get rid of the CR/LF line breaks? The actual text file has about 20,000 rows

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Text file with multiple rows

    AFAIK manually only (or in any txt editor you can try find and replace if this editor support manipulation with CR/LF but you need define which character you want to find and replace with CR/LF)
    You can't do that with | or space

  7. #7
    Registered User
    Join Date
    04-17-2012
    Location
    Texas
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Text file with multiple rows

    Not the answer I was hoping for, but thanks for trying!

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Text file with multiple rows

    You are welcome

    I'm not a miracle worker, sorry

+ 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. Creating a text file with a header row and multiple detail rows
    By Davok64 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-01-2015, 10:46 AM
  2. Import multiple text files delete rows between lines with File Name
    By coronakyk in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-10-2014, 09:53 PM
  3. Replies: 3
    Last Post: 12-12-2012, 04:01 PM
  4. Export multiple rows of text to a text file and save with an RDP extension.
    By stephen.wardell in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-27-2012, 06:27 AM
  5. Import Text File Ddata Into Excel Spreadsheet - Multiple Columns & Rows
    By DOgburn in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-30-2012, 04:45 PM
  6. Create text file named A1 with B1 and C1 for multiple rows
    By raystafarian in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-31-2012, 11:13 AM
  7. Finding a line in a text file, offset x rows, and copy everything else in the file
    By new.vbacoder in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 10-27-2010, 12:53 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