Date will not format or sort when imported into calc (ods)

I looked into it and decided against it because what I am doing requires an
intermediate spreadsheet in most cases. Since I now have many different ways
to import the data so that it is correctly formatted, the extension would
probably never be used. Detect special numbers and paste special unformatted
work towards that end making any extension superfluous. I also have a few
other tips and tricks to try that may save me a step or two.

Your suggested extension would be useful if there were a need to convert
formats, but my problem was importing data correctly. Thank you for your
suggestion and if the need ever arises I may reconsider.

As I said before, getting the date into a spreadsheet as a date was the
problem. Once there, I am able to format the data as required.

CSV was just an example. I get the data in just about any format (raw
(unformatted), comma delimited, tab delimited, xls, xlsx, doc, docx, txt,
pdf, etc. Even with the xls I sometimes get dates and numbers in text
format.

If all the sources would be willing to enter their data into a database,
then a database would be useful as the data would then be of a fixed layout
with a fixed structure.

Name one feature that makes a database better than a spreadsheet when
flexibility of input is required.

The problem is that I see no advantage in a database. I do see many
disadvantages. For what I am doing, a database is not an option.

Once I have the data imported into the spreadsheet, there are no problems
with dates. It was the importation of the dates that caused the problem. As
for date formats, I prefer ISO8601 as I was using that format in the sixties
and I never stopped. I can accommodate any *unambiguous* date and time
format. It is when the dates and time format becomes ambiguous that I have
problems.
I found a definition for 'AFAIK'; "All Fans Are Inane Koalas". The other
definition I found is not fit to print.

Hi :) 
Sometimes on this list we bully, cajole or otherwise try to push people into using tools they are not familiar with.  Even if it's a better tool for the task, that doesn't always make it better for the person's work-flow.

There is only one right way of doing things and that's your own.  Just as mine is for me (although i often think my neighbour's way is better - until i try it and then realise both were wrong and then regret changing and wish everything was back the way it was before i messed it up trying to copy someone else's style, but hopefully that's just me). 
Regards from
Tom :slight_smile:

My only queries of the data are handled adequately by the calculations done
in adjacent columns. Nothing special, complex, or complicated will easily
replace it nor be more useful.

I can see how a database between libraries would benefit all the libraries
that subscribe to the common database, but my requirements are so simple
that a simple spreadsheet does everything I need.

You mentioned MSO so I looked it up. The following are the results of that
search:

macro saccadic oscillation
Mail Stream Optimization
Main Street Office
Maintenance Spare Optimization
Maintenance Stores Office
Maintenance Support Office
Major Sales Opportunities
Major Service Outage
Major Sponsoring Organization
Managed Services Organization
Management Services Officer
Manager of Search Operations
Manufacturers Statement of Origin
Manufacturing Shop Order
map support office (US DoD)
Maplewood/South Orange (New Jersey)
marine safety office(r) (US DoD)
Marine Survey Office
Mariposa Symphony Orchestra (Mariposa, CA)
Maritime Security Operations (US)
Marketing & Sales Office
Marketplace Services Organization (Canada)
Martha Stewart Living Omnimedia Inc (NYSE)‎
Master Security Officer
Material Status Officer
McKeesport Symphony Orchestra (McKeesport, PA)
Medical Second Opinion
Medical Service Organization
Medical Stores Organization
Medical Support Order (health care)
Mees Solar Observatory (Maui, Hawaii)
Melbourne Symphony Orchestra
Methadone Support Organization
Methionine Sulfone (code for modified amino acid)
Methylated Seed Oil
Mexican Spotted Owl
Microsoft Office
Microsoft Outlook
Mid-Atlantic Symphony Orchestra (Ocean City, MD)
Middlesex Sheriff's Office (Medford, MA)
Midland Symphony Orchestra (Midland, Michigan)
Migrant Student Organization (various organizations)
Military Systems Organization (US DoD)
Military Satellite Officer
Military Service Obligation
Military Supply Officer
MILSATCOM Systems Office
Milwaukee Symphony Orchestra (Milwaukee, WI)
Mind Sports Olympiad
Mind Sports Organization (est. 1997; Canada)
Minesweeper, Ocean (Non-Magnetic)
Minor Service Order
Mission Safety Officer
Mission Space Objects
Mission Staging Operation(s)
Mission Support Officer
Missoula, MT, USA - Missoula International (MSO Airport Code)
Mixed Signal Option (Teradyne testers)
Mixed Signal Oscilloscope
Mobile Switch Office
Mobilization Staff Officer (US DoD)
Molecular Spin Orbital
Molten Salt Oxidation
Monadic Second-Order Logic
Montessori School of Ojai (Ojai, CA)
Montreal Symphony Orchestra
Morale Support Officer
Most Serious Offense (criminal justice)
Most/Main/More Significant Other (Polyamory)
Moving Swiftly On
MSE Systems Overhaul
Multi-System Operator(s)
Multi-Service Operation
Multi-cultural Student Organization
Multimedia Service Operator
Multiple Service Operator
Multiple Subscriber Organization
multiple system operation(s)
Multiple System Operator
Multi-system Operator (as in satellite/cable TV networks)
Murray Symphony Orchestra (Murray, UT)
Muslims Speak Out
Must Start On (project management)
Mustard Seed Oil
Mutual Service Office (insurance)
My Simple Office (Simple Office Solutions, Inc software)
My Sweet One (Phish song)

So far nobody has come up with a reason for me to switch to a database where
I risk loosing data if I attempt to make a change to the layout.

Am 13.09.2012 00:49, JAMES MAJESKI wrote:

Name one feature that makes a database better than a spreadsheet when
flexibility of input is required.

--
View this message in context: http://nabble.documentfoundation.org/Date-will-not-format-or-sort-when-imported-into-calc-ods-tp4004907p4007128.html
Sent from the Users mailing list archive at Nabble.com.

*Because* spreadsheets are so flexible you can not edit databases with them.

Am 13.09.2012 05:18, JAMES MAJESKI wrote:

So far nobody has come up with a reason for me to switch to a database where
I risk loosing data if I attempt to make a change to the layout.

--
View this message in context: http://nabble.documentfoundation.org/Date-will-not-format-or-sort-when-imported-into-calc-ods-tp4004907p4007154.html
Sent from the Users mailing list archive at Nabble.com.

Simply because all you have is a database excerpt in plain text.
You never asked for flexibility. You asked for data integrity (keep the exact same date encoding when saving back to a database file).
You do not want to use *flexibility*. What you ask for is automatic formatting on import.
Yes, the Base component helps to import database data into preformatted spreadsheets and Writer documents. Base is *not* a database program. First and foremost it is a bridge to import various types of tabular data into preformatted documents.

Am 13.09.2012 05:03, JAMES MAJESKI wrote:

My only queries of the data are handled adequately by the calculations done
in adjacent columns. Nothing special, complex, or complicated will easily
replace it nor be more useful.

Calc can do all this without very easily with the help of the Base component which you strictly reject.

What you asked for in the first posting was about importing the correct values rather than text and then you want the application to derive the correct number format code for each cell. This does not happen. Not in Calc nor Excel nor any other spreadsheet.

Am 10.09.2012 22:30, Andreas Säger wrote:

Am 10.09.2012 19:40, Andreas Säger wrote:

Base is our database component. It is very, very underdeveloped,
nevertheless underestimated. Even the worst database tool does a better
database job than the best spreadsheet can do.

Since nobody ever uses Base for plain text databases, here is another
approach without Base and without macro programming:
1) Prepare a sheet template and format entire columns to your liking,
according to the incoming fields.
2) Open the text file in a text editor.
3) Copy all.
4) Open a new spreadsheet from the prepared template, paste and fill out
the text import dialog (US English, special numbers, delimiter).

That was solution #1a (copy plain text into preformatted template).
Solution #1b: Import correct values, copy, paste-special numbers, dates and text into a preformatted template.

Solution #2: Import everything as plain text, calculate, filter and sort with function VALUE. Requires spreadsheet skills which seem to be rare these days.

Solution #3: Hit F4 and drag&drop your text file into a preformatted sheet. Solution #3 is what I use to do if the source data allow this. It is by far the easiest and most convenient method to deal with tabular text data in office documents. All it takes is a little bit of setup work.

Any solution that requires text-to-number conversion will not format the resulting numbers to your liking. So you are at the point where solution #1b applies.

Hi :slight_smile:
Ahhh, we shorten MS Office to MSO.  It might be only LibreOffice lists and a few other such places that use it that way.
Regards from
Tom :slight_smile:

Andreas Säger wrote:

*Because* spreadsheets are so flexible you can not edit databases with them.

Simply because all you have is a database excerpt in plain text. You never
asked for flexibility. You asked for data integrity (keep the exact same
date encoding when saving back to a database file). You do not want to use
*flexibility*. What you ask for is automatic formatting on import. Yes, the
Base component helps to import database data into preformatted spreadsheets
and Writer documents. Base is *not* a database program. First and foremost
it is a bridge to import various types of tabular data into preformatted
documents.

Calc can do all this without very easily with the help of the Base component
which you strictly reject.

What you asked for in the first posting was about importing the correct
values rather than text and then you want the application to derive the
correct number format code for each cell. This does not happen. Not in Calc
nor Excel nor any other spreadsheet.

Then you mentioned some co-editors. If they do not have have spreadsheet
software at hand, what is the software they use? If you exchange data via
csv, I would assume that they use some kind of database. Otherwise you could
exchange spreadsheets in plain old xls format.

Reply:

I apologize that I was not clear in the fact that I needed a method of
importing date and time data into a spreadsheet so that the date and time
would be a date and time, not text, so I could present the date and time
data according to the appropriate time zone by applying the appropriate
formula to the input date and time data. The early replies supplied the
information that cured my ignorance. I now have many different ways to
convert text formatted date and time data into something I can work with in
a spreadsheet. I also have several other options available that I have yet
to try. The wealth of information presented is impressive.

Once that problem was solved, I was presented with the idea of using a
database or base component (I am still unclear as to the distinction). I
explored the options and warnings for Libre Base and found no advantage and
many disadvantages to using another method to enter, modify, calculate the
results, and display the data. The reason is that once the date and time
data is properly imported, the only process used is to apply the time zone's
UTC offset. For this I add a column if the time zone is not already in use.
In this way I may conveniently present any date and time data correctly for
any time zone in use. I can then use split or freeze to keep the appropriate
time zone column in place while scrolling through the rest of the data.

Much of what I do is ephemeral, so I keep it as simple as possible. For
example, a travel itinerary that spans time zones. A column for each time
zone, a few columns for travel data, and a couple of columns for calculated
incremental duration and total duration. The key feature is that the date
and time data are available in each of the time zones. This also is a
benefit when the traveler wishes to share the itinerary with others. The
time zones of the others can also be incorporated at any time. If I were to
do this type of setup in a database, would I be requried to set up a
separate input field for each time zone with all the other time zones
calculated? In order to make database, would I need to include all of the
one hundred and five possible time zones (Z-12 to Z+14 in quarter hour
increments)?

This feature would have benefited the traveler in Jules Verne's story 'Le
tour du monde en quatre-vingts jours' (1873). If the trip log had kept to
the origin's time zone as well as the current local time, there would have
been no problem as the traveler would have known the origin's date and time
at all times during the trip.

I do use programs that utilize a database. Firefox uses a database for the
information it collects. Calibre puts the input data into a database.

I do not "strictly reject" using a database when appropriate. I do have one
set of data that may be amenable to a database. The input data has five
columns; date and time, observed measurement, data discriminator, historical
applicator used count/future data point, and historical dose applied with
notes/future test units available with notes. I am considering spliting off
the notes that have been inserted in the fifth input column and creating a
sixth input column for notes, but have not arrived at a decision. Currently
I slightly favor leaving it as is as the additional notes are few. The first
four columns do have a fixed format, but the last two or three columns have
a variable format that may change.

The calculation columns are much more complex as I have not integrated all
the calculations required into a single formula, but have additional
calculations done with derived results to achieve the desired result. I
currently have twenty-seven calculation columns that display interim results
for each of the six data discriminator types and for the unfiltered data.

I found lots of information about Libre Base and when I have assimilated it,
I may try to set up a database for the test results. Currently there are
1554 rows of historical data, but as time progresses, the data count will
increase. The rows of future data are projections based upon the historical
data and are replaced with historical data when the observed measurement is
entered. Please note that the data is only current from the time it is
collected to the time the spreadsheet finishes its calculation update after
the data is entered.

A final point is that there are no co-editors. Exploring the option of a
database, I visualized the primary reason I would use a database. I
concluded that a database might be preferable if there were other people
inputting data as that would standardize the data input into the database.

I have several solutions to the original problem.

I have explored the database option.

I wish to thank everyone for their contributions. I am very happy with the
results.