View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
John[_22_] John[_22_] is offline
external usenet poster
 
Posts: 694
Default Using time functions to give a warning

Hi Colin
Not sure if that's what you want but try it.
=IF(AND(NOW()TIME(8,0,0),NOW()<TIME(16,30,0)),"Op en","Close")
Make sure your cells are formatted as time.
Regards
John
"Colin Hayes" wrote in message
...

Hi

In cell I14 I need to put a formula which says 'Open' when the PC clock is
between 8 am and 4.30 pm , and 'Closed' when the PC clock is later than 4.30
pm.

Can someone help with the code , please?

thanks.