Thread: Formula
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
David Biddulph[_2_] David Biddulph[_2_] is offline
external usenet poster
 
Posts: 8,651
Default Formula

=IF(A2<TIME(9,30,),"morning",IF(A2<TIME(17,,),"Aft ernoon",IF(A2<TIME(23,30,),"Evening",IF(A2="","Ign ore","After
evening"))))
I am assuming that your cells contain just a time, not a date and time. If
the latter, replace each instance of A2 in the formula by MOD(A2,1).
--
David Biddulph

"dazoloko via OfficeKB.com" <u43760@uwe wrote in message
news:8b9ba69d3ea41@uwe...
Dear All

I have a worksheet which has a start time and an end time for visits
throughout the week, Some lines however are blank

I want a formula which tells me if the end of the visit is before 9.30 am
to
return "morning", if its before 17:00 then return "Afternoon", if its
before
23:30 return "Evening" and if its blank return "Ignore"

Could anyone help me please ?

D

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...excel/200810/1