Phil Hibbs wrote:
There is no IsDate() function in OOo Calc, is there any way I can work
around this? I want to write [=IF(IsDate(A1);A1;"")]
Phil Hibbs.
Phil:
This formula will detect if a cell is formated as a Date or a Time. The
nine 'D' entries are the Date formats recognized by the 'Cell'
function. You can remove any from the in-line array that do not apply.
A quirk I found is in using the 'Today()' or 'Now()' functions. Unless
you format the cell as a Date, it will act as a number, even though it
displays in a Date format. (A little behind the scene code maintains a
'General' number format, while displaying it as a Date.) I have yet to
find any way to detect this as a date. The 'Information' functions do
not seem to have a way check for a date in any combination.!
If a date is entered into a cell as text, that was formated as a date,
it will display the date, but as text (left justified).
=IF(OR(CELL("Format";B4)={"D1";"D2";"D3";"D4";"D5";"D6";"D7";"D8";"D9"});B4;"")
TomW
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]