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



On 05/02/2013 09:52 PM, vsharris wrote:
I have a spreadsheet with three columns: year, month, day.  In the 4th column
I use the DATE() function to create a date from these columns. It works fine
if there are valid data, but if the month and day column are empty, the
results are surprising.

For example:
   DATE(1995,<blank>,<blank>)
is the same as:
    DATE(1995,0,0)
which turns out to be:
     30 Nov, 1994

I would rather the system generate an error warning (e.g., "data out of
range") than silently produce a counter-intuitive result.

Am I missing something obvious here?

(config:
Xubuntu 12.04
LibreOffice 3.5.7.2
Build ID: 350m1(Build:2)
)
I suppose then, that you will be horrified to know that you can also use negative values..... so you can use this as an easy way to do date math

--
Andrew Pitonyak
My Macro Document: http://www.pitonyak.org/AndrewMacro.odt
Info:  http://www.pitonyak.org/oo.php


--
For unsubscribe instructions e-mail to: users+help@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
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

Context


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.