+ Reply to Thread
Results 1 to 2 of 2

Importing and Exporting TXT files

  1. #1
    Registered User
    Join Date
    11-17-2020
    Location
    TX
    MS-Off Ver
    365
    Posts
    2

    Importing and Exporting TXT files

    Hello,

    I have a file that is I need to pull in and reformat for export.

    It looks like this:
    622113011234567890 0000123456789 DOEJOHNR 0 0000001

    I need to import it and be able to kick it back out with set field widths and the end column needs to have a total of 16 zeros across.

    How can I set the width of the columns for export back to .txt?

    Thanks in advance for your help.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,765

    Re: Importing and Exporting TXT files

    If the column contains text, you can use the REPT function to add on leading spaces (maybe with the RIGHT function. If the column contains proper numbers, you can use the TEXT function with an appropriate format string.

    Hope this helps.

    Pete

+ 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. Importing-Exporting
    By Richard Mahan in forum Excel General
    Replies: 3
    Last Post: 02-15-2019, 12:58 AM
  2. importing exporting xml
    By jrtaylor in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-04-2011, 02:19 PM
  3. Importing an exporting data
    By renejo in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-25-2008, 11:00 PM
  4. Importing and Exporting Data
    By Adrian G in forum Excel General
    Replies: 0
    Last Post: 07-21-2006, 12:45 PM
  5. [SOLVED] Importing/exporting macros
    By Maarten in forum Excel General
    Replies: 1
    Last Post: 04-19-2006, 02:30 AM
  6. [SOLVED] Exporting/Importing Data
    By baconroll in forum Excel General
    Replies: 1
    Last Post: 04-07-2006, 06:27 AM
  7. Importing and Exporting Data to Web
    By Chad in forum Excel General
    Replies: 1
    Last Post: 02-19-2005, 02:06 AM
  8. Importing, Exporting and Linking
    By Jaymz in forum Excel General
    Replies: 0
    Last Post: 02-08-2005, 07:55 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