To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=108385
User er changed the following:
What |Old value |New value
================================================================================
OS/Version|Windows XP |All
--------------------------------------------------------------------------------
Platform|Unknown |All
--------------------------------------------------------------------------------
Summary|function text does not wor|TEXT should accept textual
|k correctly | argument
--------------------------------------------------------------------------------
Subcomponent|editing |programming
--------------------------------------------------------------------------------
Target milestone|--- |OOo 3.3
--------------------------------------------------------------------------------
------- Additional comments from [email protected] Tue Jan 19 12:12:56 +0000
2010 -------
This not working anymore is a side effect of the new "calculate with strings"
behavior, see http://sc.openoffice.org/servlets/ReadMsg?list=features&msgNo=307
A localized date text is not automatically converted to number anymore.
To get the desired behavior in this case use VALUE() to convert the text to
number, e.g.
=TEXT(VALUE(MID(A1;FIND(":";A1)+1;8));"GGGG")
Note that this is still locale dependent, with the date argument to VALUE()
being a DD/MM/YYYY string and the Italian number format argument GGGG.
A safer way would be to generate an ISO 8601 string in the form YYYY-MM-DD, e.g.
"2009-12-29", and pass that to VALUE(), maybe let a number format GGGG display
the year instead of using TEXT().
However, a textual argument passed to TEXT() should not result in an error, but
the text be returned instead, unless the number format is a text format, the
same as if a text was displayed using any number format except Text. The
localized date would not be interpreted in any case.
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]