Work hours

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello all,

I have a document where I have the name of 10 people in cells "A2" to "A11".
In cells "B2" to "B11", I have everyone start time. In cells "C1" to "S1",
I have the different start hours during the day (8:00, 9:00, 10:00, etc...)

In cells "C2" to "S11", I would like every cells to look for the start time
in the "B" cell and add a 1 in the cells for the 8 hours of the shift...

As an example:
- if the employee in cell "A2" start time (cell "B2") is 9:00. I would like
to have a 1 in cells "D2" to "K2".
- if the employee in cell "A3" start time (cell "B3") is 13:00. I would like
to have a 1 in cells "H3" to "O3".

Hope I'm being clear enough... If not, please let me know!!!

Thanks!!!
 
=--(AND($B2<=C1,$B2+TIME(8,0,0)>C1))

and copy across

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
It ain't working!!!

Can I send you my document so you can see what I'm trying to do???

Thanks!!!
 
No, format the data in a message and post it here.

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)
 
Back
Top