Midpoint of times in shifts
On Nov 5, 2:58*pm, Steve wrote:
If I have the following table/definitiion
A * * * * * * * * * *B * * * *note: the B column times could go into
different columns
Days * * * * *0800-1600 * * * * * *
Swing * * * *1600-2400 * * * * * * *
Graveyard * 2400-0800
If I have an employee working 2100-0530 (9 PM - 5:30 AM). I want a formula
to show the midpoint of this schedule (= 1:15 am).
Then I want another formula( result) based on the 1:15 AM ( being between
2400-0800) to produce "Graveyard".
I could enter the times any way, e.g 5:30 am = 05.50 if necessary.
Basically, whatever their schedule is, I need a result of Days, Swing or
Graveyard depending on where their midpoint falls in the time ranges.
Thanks,
Steve
Oh, and on the shift names, you can probably just do an IF since it is
only 3 and the names aren't likely to change.
=IF(A1-INT(A1)<0.33333333,"Graveyard",IF(A1-
INT(A1)<0.666666666,"Day","Swing"))
..33 and .66 are the actual numbers Excel uses for 8am and 4pm.
|