Apache OpenOffice (AOO) Bugzilla – Issue 3851
Text cells passed to DATE function are interpreted as 0
Last modified: 2005-10-27 11:30:11 UTC
If the DATE function is used with cells that are of type text, but have a text representation of a number, the function interprets it as a zero instead of attempting to convert the text to a number. The cells must be modified after they are set to be Text cells in order for the problem to show. For example, with the following cells: A1 3 (Number) A2 16 (Number) A3 2002 (Text) The formula: =DATE($A3;$A1;$A2) evaluates to: 3/16/00 The same spreadsheet in Excel gives: 3/16/02
Hi Chris, this is no bug at all because OOo handles these datatypes very strict. But I'll keep it as Feature/Remind because I see some issue related to this strict handling myself. Best regards, Peter
Just a reminder.
reopen
@Bettina: We had a lot of complaints about this behaviour in the time while I kept it as reminder. Meanwhile I'm also convinced that do it the same way excel does would have a lot of advantages. Peter
*** Issue 16519 has been marked as a duplicate of this issue. ***
*** Issue 19089 has been marked as a duplicate of this issue. ***
*** Issue 25977 has been marked as a duplicate of this issue. ***
This is nothing special to the DATE() function, it's the general text instead of number issue. *** This issue has been marked as a duplicate of 5658 ***
Closing dupe.