Lawrence Dodge
Member
Hi all--
We are on a 24/7 schedule where I work with 4 teams A-1st, A-2nd, B-1st, B-2nd. We have a spreadsheet with a timestamp (mm/dd/yy hh:mm:ss). Currently I use this:
=IF(MOD($A6,1)<VALUE("5:00"),2,IF(MOD($A6,1)<VALUE("17:00"),1,IF(MOD($A6,1)<VALUE("24:00"),2,"")))
which figures out first or second shift. What I need to do is figure out A team or B team. A team works 2 days, off 2 days, on 3 days, off 2, on 2, off 3. B team's schedule is the mirror of this.
I converted the date to a number and starting on 24 Oct '11, I got the number "40840", I thought to put in an if cell A6 (where the time stamp is) = 40840 + 14k with "k" being an interger value then "A", if false then "B" -- if I do this for the seven days team A works from 10-24 to 11-6 it should work. My delemna is I do not know how to format the mathematical equation "=40840 + 2k"-- how do I enter an integer multiple into an "if" statement
We are on a 24/7 schedule where I work with 4 teams A-1st, A-2nd, B-1st, B-2nd. We have a spreadsheet with a timestamp (mm/dd/yy hh:mm:ss). Currently I use this:
=IF(MOD($A6,1)<VALUE("5:00"),2,IF(MOD($A6,1)<VALUE("17:00"),1,IF(MOD($A6,1)<VALUE("24:00"),2,"")))
which figures out first or second shift. What I need to do is figure out A team or B team. A team works 2 days, off 2 days, on 3 days, off 2, on 2, off 3. B team's schedule is the mirror of this.
I converted the date to a number and starting on 24 Oct '11, I got the number "40840", I thought to put in an if cell A6 (where the time stamp is) = 40840 + 14k with "k" being an interger value then "A", if false then "B" -- if I do this for the seven days team A works from 10-24 to 11-6 it should work. My delemna is I do not know how to format the mathematical equation "=40840 + 2k"-- how do I enter an integer multiple into an "if" statement