+ Reply to Thread
Results 1 to 3 of 3

Exporting fixed width columns

  1. #1
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075

    Exporting fixed width columns

    Our old legacy financial system requires fixed width columns, separated by commas, in the text files used for updating product prices. In Lotus there is a print to file option which pads out the columns with spaces and inserts a comma between the fields.

    I know all about the Save as .csv and .txt options in Excel and even found the "Formatted Text (space delimited) *.prn" option. This option sounds the same as the Lotus option and it adds the extra spaces required, but it does not insert the commas to delimit the fields.

    Am I missing something? Can anyone help, please?
    Trish in Oz
    -------------
    A problem well defined is a puzzle half solved


    If you attach a sample of your workbook it will be easier to find a solution. Remember to remove/replace sensitive data before uploading the file. Look here if you need help with attachments:
    http://www.excelforum.com/faq.php?fa...b3_attachments

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by tuph
    Our old legacy financial system requires fixed width columns, separated by commas, in the text files used for updating product prices. In Lotus there is a print to file option which pads out the columns with spaces and inserts a comma between the fields.

    I know all about the Save as .csv and .txt options in Excel and even found the "Formatted Text (space delimited) *.prn" option. This option sounds the same as the Lotus option and it adds the extra spaces required, but it does not insert the commas to delimit the fields.

    Am I missing something? Can anyone help, please?
    Hi,

    it's just not a csv format, so has no reason to put comma's in as separators.

    .prn is the old standard (dot matrix-type) fixed width character output.

    Not sure how you would output fixed width with comma, perhaps pull the whole sheet to a helper sheet with

    =A1&REPT(" ",MAX(LEN(A$1:A$100))-LEN(A1)+1)

    etc for each column, then output as .csv file.

    hth
    ---added that's CSE to enter
    Last edited by Bryan Hessey; 02-02-2007 at 01:00 AM.
    Si fractum non sit, noli id reficere.

  3. #3
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075
    Quote Originally Posted by Bryan Hessey
    .prn is the old standard (dot matrix-type) fixed width character output.
    I did say it was an old legacy system

    Thanks for the help, Bryan. I'll give it a go.

+ 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