Thread: sumproduct
View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.misc
John997
 
Posts: n/a
Default sumproduct

JE, I really appreciated your quick response. All of the sample times I
entered worked very well, with the exception of 23:01. I received the
"#value" error. It worked fine for 23:00 and 23:02.

"JE McGimpsey" wrote:

One way:

=CHOOSE(MOD(A2+59/1440,1)*3+1,"C","A","B")

In article ,
John997 wrote:

I would like to create a formula that can take the time entered into rows
"a2:a5", and convert it into one of three shifts (A, B, or C) in column b.
The times for the three shifts a "A"= 0701-1500, "B"=1501-2300, and
"C"=2301-0700.
A B
1 Time Shift
2 07:35 A
3 16:45 B
4 03:30 C
5 10:30 A

I've tried sumprodu