Date: prev next · Thread: first prev next last
2012 Archives by date, by thread · List index


As already stated, spreadsheet programs are horrible text editors.
This is my fixed length output of a spreadsheet copied from a text editor:
     000123      2012-05-13    0.57715one_char
     000124      2012-05-14    0.58904two_char
     000125      2012-05-17    0.86385three_char
     000126      2012-05-19    0.76092four_char

[I'll never understand why nobody is able to post some trivial example data]
Each line has 51 characters.

Getting rid of all the spaces is easy if *and only if* you know how a spreadsheet works and if you know exactly how you want to handle any varying field lenght. Add a blank sheet and add one column where you concatenate all numbers as fixed lenght numeric strings with all text converted to fixed lenght text.


This gives the following set of lines:

Each line has 33 characters:
6 for integers in field #1
8 for the dates in field #2
7 for the floats in field #3
10 for the varying characters in field #4, truncating more than 10 characters, padding less characters with underscores.

Hope this helps,

For unsubscribe instructions e-mail to:
Posting guidelines + more:
List archive:
All messages sent to this list will be publicly archived and cannot be deleted


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.