View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default Cell value determined by the current time and date

Try,

=IF(TIME(HOUR(NOW()),MINUTE(NOW()),0)TIME(12,0,0) ,"1st Shift","3rd Shift")

Mike

"jschae" wrote:

I need a cells value to be displayed depending on the what the current time
of day it is. If the current time is between midnight and noon, then I want
the cell to equal "3rd Shift". If not, then the cell should be "1st Shift".
Any ideas on the best way to accomplish this?