At 00:03 09/08/2013 +0200, Gordom Noname wrote:
I have a series of data. Here you have a small sample (this data is
placed into a column A):
Each cell must be formatted into a proper date & time format. I'm
achieving this using the following formula in column B (the
following example corresponds to cell No A1):
As the result I get this in cell B1:
My question: Is there a way to simplify the formula? However it
works, it doesn't seem to be very elegant right now.
I'd probably do something like
instead. Only you can decide whether this is more elegant.
But notice that your formula does not create what I would call a
"proper date and time format", but instead a text string that looks
like a date and time value. (So does my version, of course.) To see
the difference, try adding 1 to the date and time value. In your
case you will get the result 1, since the text string is treated as
zero, but adding one to a genuine date and time value produces a time
exactly one day later. You can convert the result of either formula
to a real date and time using
and then formatting the result cell appropriately (as YYYY-MM-DD HH:MM:SS).
You can build this idea into my version by using
But that leads to what is perhaps a simpler version:
Again, you need to format the result cell to display the date and
time as you wish to see them.
I trust this helps.
To unsubscribe e-mail to: email@example.com
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted
Impressum (Legal Info)
: 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