Conditional format number

G

goss

Hi ng
Use mix of xl 2002 and 2003

I would like to format my numbers so if value in colF is blank or
then format my formula result in colK for accounting format, no symbol
2 decimal places.

Otherwise format with date format mm/dd/yyyy

Sample data Cell F5:
10/1/2004 8:35:39 AM

Sample formula Cell K5:
=IF(ISERROR(VALUE(LEFT(F5,10))),0,(VALUE(LEFT(F5,10))))

And I currently have custom format on ColK for mm/dd/yyyy

However, soemtimes this leaves me with:
01/00/1900

Which I do not wan
 
J

Juan Pablo González

Altough I don't like this very much, this should do it:

=IF(ISERROR(VALUE(LEFT(F5,10))),"0",(VALUE(LEFT(F5,10))))
 
Top