andrewb90
Well-known Member
- Joined
- Dec 16, 2009
- Messages
- 1,077
Hello all,
I'm a bit lost on how to go about this:
Both F10 & D10 are time values (start and end times for a work shift) Now, occasionally the F10 time will not display a time but rather say "CLOSE", is there a way for my formula to look at this as not a word but as whatever value is actually in J5?
In this example J5 would represent 23:00 so if D10 were 17:00 then the cell would return a value of "30"
I'm a bit lost on how to go about this:
Both F10 & D10 are time values (start and end times for a work shift) Now, occasionally the F10 time will not display a time but rather say "CLOSE", is there a way for my formula to look at this as not a word but as whatever value is actually in J5?
In this example J5 would represent 23:00 so if D10 were 17:00 then the cell would return a value of "30"
Code:
=SWITCH(C10,"FOH - Day Shift","","FOH - Night Shift","","BOH - Day Shift","","BOH - Night Shift","","Prep & Maintenance","","Managers","",IF(C10="","",IF((MOD([COLOR=#ff0000]F10[/COLOR]-D10,1)*24)<Initial!$F$53,"N",IF((MOD(F10-D10,1)*24)>=Initial!$F$52,"30","15"))))