View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
edwardpestian
 
Posts: n/a
Default Greeting Function


I have the following function. I'm trying to say that if it is before
12:00 pm, say "Good Morning," if after 12:00 pm but before 6:00 pm say
"Good Afternoon," and otherwise say "Good Evening". The function
however, is not working properly. Any ideas?

=IF(NOW()<TODAY()+HOUR(0.5),"Good Morning"&" "&"Today is"&"
"&TEXT(TODAY(),"mmmm dd, yyyy"),IF(NOW()<TODAY()+HOUR(0.75),"Good
Afternoon"&" "&"Today is"&" "&TEXT(TODAY(),"mmmm dd, yyyy"),"Good
Evening"&" "&"Today is"&" "&TEXT(TODAY(),"mmmm dd, yyyy")))

Any ideas?

Thanks.

ep


--
edwardpestian
------------------------------------------------------------------------
edwardpestian's Profile: http://www.excelforum.com/member.php...o&userid=33809
View this thread: http://www.excelforum.com/showthread...hreadid=555043