+ Reply to Thread
Results 1 to 6 of 6

Exporting MS Excel file to text file (like sample shown)

  1. #1
    Registered User
    Join Date
    10-15-2014
    Location
    Lower Middle of the Mitten
    MS-Off Ver
    2013
    Posts
    4

    Exporting MS Excel file to text file (like sample shown)

    I need to take an Excel spreadsheet like the one on the left (supplied by my customer) and export/save it to a text (or MS Word) file like the one shown on the right. Any blank cells in Excel will need to show up as blank lines on the text file.

    Constraints: Our order template for our customer is set up like the Excel file shown and we do not want to change it if at all possible. We can not manually edit data since some customer files contain literally thousands of lines of text (we'd also run the risk of accidently changing some lines while manually editing).

    I've tried just about everything I know, and I have no knowledge of macros.

    Can anybody give me direction?

    Thanks,

    JBeez
    Attached Files Attached Files
    Last edited by JBeez; 10-15-2014 at 08:09 PM.

  2. #2
    Registered User
    Join Date
    10-15-2014
    Location
    Lower Middle of the Mitten
    MS-Off Ver
    2013
    Posts
    4

    Re: Exporting MS Excel file to text file (like sample shown)

    Changed attachment from a jpeg to a .pdf
    Last edited by JBeez; 10-15-2014 at 08:10 PM.

  3. #3
    Registered User
    Join Date
    10-15-2014
    Location
    Lower Middle of the Mitten
    MS-Off Ver
    2013
    Posts
    4

    Re: Exporting MS Excel file to text file (like sample shown)

    Any help would be appreciated.

    Thanks,

    JBeez
    Last edited by JBeez; 10-15-2014 at 08:10 PM.

  4. #4
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Exporting MS Excel file to text file (like sample shown)

    Save the Excel file as TEXT Tab Delimited. This can be opened in Word.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  5. #5
    Registered User
    Join Date
    10-15-2014
    Location
    Lower Middle of the Mitten
    MS-Off Ver
    2013
    Posts
    4

    Re: Exporting MS Excel file to text file (like sample shown)

    I've tried opening it as a tab delimited in Word, but it still retains the old formatting (similar to the Excel sheet). I need the contents of each subsequent cell to be placed on its own line (like the example on the right).

    Thanks,

    Jim

  6. #6
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Exporting MS Excel file to text file (like sample shown)

    When in Word, replace the tabs with paragraph marks.

    Turn on Wildcards

    In Find and Replace, enter in the Find what: ^t{2,200}

    In the Replace with field enter ^p

    Replace All
    Turn off Wildcards

    Find What: ^t
    Replace With: ^p

    Replace All

    Find What: ^p^P

    Replace With: ^p
    Replace All....repeat until the result is 0 replacements.

+ 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. Exporting Excel into CSV text file
    By pinoydarv in forum Excel General
    Replies: 2
    Last Post: 03-30-2010, 10:45 AM
  2. Exporting excel to text file
    By Exceluser in forum Excel General
    Replies: 1
    Last Post: 06-30-2005, 11:05 PM
  3. [SOLVED] Exporting excel to text file
    By Exceluser in forum Excel General
    Replies: 1
    Last Post: 06-29-2005, 01:05 AM
  4. Exporting excel to text file
    By Exceluser in forum Excel General
    Replies: 1
    Last Post: 06-22-2005, 07:05 PM
  5. Exporting excel to text file
    By Exceluser in forum Excel General
    Replies: 1
    Last Post: 06-22-2005, 01:05 AM

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