View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bobt Bobt is offline
external usenet poster
 
Posts: 84
Default help with time formula

Your best bet would be something like:

=IF(B7-B8=0,"Hello",TEXT(B7-B8,"h:mm"))

Of course, replace Hello with any text or value you want.

"cjbarron5" wrote:

I have this formula =TEXT(D2-C2,"h:mm") but when d2 and c2 are empty it
displays 0:00 I think I can use =if(isna.........but I cant get the format
right
any ideas?
thanks