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!!!
Bob Phillips - 12 Oct 2006 22:15 GMT
=--(AND($B2<=C1,$B2+TIME(8,0,0)>C1))
and copy across

Signature
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
> Hello all,
>
[quoted text clipped - 14 lines]
>
> Thanks!!!
One-Leg - 13 Oct 2006 13:14 GMT
It ain't working!!!
Can I send you my document so you can see what I'm trying to do???
Thanks!!!
> =--(AND($B2<=C1,$B2+TIME(8,0,0)>C1))
>
[quoted text clipped - 24 lines]
> >
> > Thanks!!!
Bob Phillips - 13 Oct 2006 13:32 GMT
No, format the data in a message and post it here.

Signature
HTH
Bob Phillips
(replace somewhere in email address with gmail if mailing direct)
> It ain't working!!!
>
[quoted text clipped - 30 lines]
> > >
> > > Thanks!!!