+ Reply to Thread
Results 1 to 7 of 7

formatting/converting to .txt

Hybrid View

  1. #1
    Registered User
    Join Date
    04-24-2007
    Posts
    14

    formatting/converting to .txt

    hello all,

    I can sure use some help. I have Excell files that I need in .txt format, the format is quite particular.

    Leading zeroes - I know I can add apostrophe and use concatanate to come extent, but there are a LOT of values in these files and I'm really stumped on how I can do this en masse.

    Another issue is that decimal values are to be assumed in one of the text files (534.33 = 00000053433) and I'm not sure of the best way to do this.

    Also, I'm not sure of a smart way to ensure the files are spaced properly on the created .txt file.

    I've attached sample files. The sample .txt files are what I need to create from the values in my excel files.

    Thanks in advance!
    Attached Files Attached Files
    Last edited by pavemar; 11-02-2007 at 09:15 PM.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,887
    Hello pavemar,

    To post an Excel file you must zip it first and then upload the zip file. If you have Windows XP you can right-click on your .xls file and choose Send To -> Compressed Folder, which will create a .zip file in the same folder as your .xls file.

    Otherwise, you can use any number of .zip utilities available on the web (WinZip, PKZip, etc.).

  3. #3
    Registered User
    Join Date
    04-24-2007
    Posts
    14
    Pjoaquin,

    Thanks for your help in uploading the files.

    There are a lot of values in these files, and some of the manual apostrophe adding and concatenating seems cumbersome and like there must be a better way.

    If someone could help me with the leading zeroes issue, I'm sure I can just text to columns to eliminate the decimal point for the assumed decimal point file.

    having a nice neat .txt come from the excel is also an issue.

    Thanks,

    Marko

  4. #4
    Registered User
    Join Date
    04-24-2007
    Posts
    14
    Update - Hopefully someone can help me resolve this.

    I can handle the decimal point with a text to columns, but only once all leading zeroes are in place. Simply Concatanating is a problem and what's hanging me up. When I Concatanate zeroes to a negative value, that minus sign remains in the middle and the file gets very messy very quick.

    I can handle all spacing issues by just pushing the .xls file to a tab deliminated .txt and then doing find and replace to create spaces from the tabs.

    Formatting these columns in Excel really has me hung up! Please help!

  5. #5
    Forum Contributor
    Join Date
    10-30-2007
    Location
    Norway
    MS-Off Ver
    MS Office 2007
    Posts
    345
    Maybe this is what you are looking for to put in the missing zeros:

    =TEXT(E1,"000000.00")

  6. #6
    Forum Contributor
    Join Date
    10-30-2007
    Location
    Norway
    MS-Off Ver
    MS Office 2007
    Posts
    345
    And if you want to remove the desimal point:

    =TEXT(E1*100;"00000000")

+ 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