View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Pete_UK Pete_UK is offline
external usenet poster
 
Posts: 8,856
Default Using time functions to give a warning

Try this:

=IF(AND(mod(NOW(),1)=TIME(8,0,0),MOD(NOW(),1)<=TI ME
(16,30,0)),"Open","Closed")

Hope this helps.

Pete

On Jan 11, 10:29*pm, Colin Hayes wrote:
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.