Hello! I feel like I am sooo close to figuring out this formula or conditional formatting but just can't quite get there. Its simple... per a collective agreement, any of employees that take their breaks "late" or don't take them at all are entitled to pay at 1.5x for that break. I get an excel sheet everyday that shows me their start time, when they took first break, second break and third break. Breaks should be taken as follows:
Break 1 - start break between 2 and 4 hours from their start time (so if they start at 1100 break one must start between 1300 an 1500hrs
Break 2 - start betwee hour 4 and 6 from start time
Break 3- start between hour and 8 from start time
**all calculated on shift start time - so even if break 1 was late, breaks 2 3might be OK
surely there must be way to highlight the cell if break start is not within these ranges?? I managed to figure out if break starts more than 2,4 or 6 hours but not in a range.
help?!?!?
[TABLE="width: 419"]
<colgroup><col width="148" style="width: 111pt; mso-width-source: userset; mso-width-alt: 5412;"> <col width="102" style="width: 77pt; mso-width-source: userset; mso-width-alt: 3730;" span="4"> <tbody>[TR]
[TD="width: 148, bgcolor: transparent"]Name[/TD]
[TD="width: 102, bgcolor: transparent"]Start[/TD]
[TD="width: 102, bgcolor: transparent"]break1[/TD]
[TD="width: 102, bgcolor: transparent"]break 2[/TD]
[TD="width: 102, bgcolor: transparent"]break 3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Doe, John[/TD]
[TD="bgcolor: transparent"]11:30[/TD]
[TD="bgcolor: transparent"]14:40[/TD]
[TD="bgcolor: transparent"]17:45[/TD]
[TD="bgcolor: transparent"]19:00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Doe, John[/TD]
[TD="bgcolor: transparent"]06:30[/TD]
[TD="bgcolor: transparent"]08:55[/TD]
[TD="bgcolor: transparent"]11:30[/TD]
[TD="bgcolor: transparent"]13:15[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Doe, John[/TD]
[TD="bgcolor: transparent"]13:15[/TD]
[TD="bgcolor: transparent"]16:00[/TD]
[TD="bgcolor: transparent"]18:45[/TD]
[TD="bgcolor: transparent"]22:40[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Doe, John[/TD]
[TD="bgcolor: transparent"]13:15[/TD]
[TD="bgcolor: transparent"]16:00[/TD]
[TD="bgcolor: transparent"]18:45[/TD]
[TD="bgcolor: transparent"]22:40[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Doe, John[/TD]
[TD="bgcolor: transparent"]06:00[/TD]
[TD="bgcolor: transparent"]10:15[/TD]
[TD="bgcolor: transparent"]11:40[/TD]
[TD="bgcolor: transparent"]15:30[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Doe, John[/TD]
[TD="bgcolor: transparent"]12:30[/TD]
[TD="bgcolor: transparent"]15:20[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Doe, John[/TD]
[TD="bgcolor: transparent"]06:00[/TD]
[TD="bgcolor: transparent"]08:00[/TD]
[TD="bgcolor: transparent"]10:20[/TD]
[TD="bgcolor: transparent"]12:40
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Doe, John[/TD]
[TD="bgcolor: transparent"]14:30[/TD]
[TD="bgcolor: transparent"]17:00[/TD]
[TD="bgcolor: transparent"]19:20[/TD]
[TD="bgcolor: transparent"]22:05[/TD]
[/TR]
</tbody>[/TABLE]
Break 1 - start break between 2 and 4 hours from their start time (so if they start at 1100 break one must start between 1300 an 1500hrs
Break 2 - start betwee hour 4 and 6 from start time
Break 3- start between hour and 8 from start time
**all calculated on shift start time - so even if break 1 was late, breaks 2 3might be OK
surely there must be way to highlight the cell if break start is not within these ranges?? I managed to figure out if break starts more than 2,4 or 6 hours but not in a range.
help?!?!?
[TABLE="width: 419"]
<colgroup><col width="148" style="width: 111pt; mso-width-source: userset; mso-width-alt: 5412;"> <col width="102" style="width: 77pt; mso-width-source: userset; mso-width-alt: 3730;" span="4"> <tbody>[TR]
[TD="width: 148, bgcolor: transparent"]Name[/TD]
[TD="width: 102, bgcolor: transparent"]Start[/TD]
[TD="width: 102, bgcolor: transparent"]break1[/TD]
[TD="width: 102, bgcolor: transparent"]break 2[/TD]
[TD="width: 102, bgcolor: transparent"]break 3[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Doe, John[/TD]
[TD="bgcolor: transparent"]11:30[/TD]
[TD="bgcolor: transparent"]14:40[/TD]
[TD="bgcolor: transparent"]17:45[/TD]
[TD="bgcolor: transparent"]19:00[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Doe, John[/TD]
[TD="bgcolor: transparent"]06:30[/TD]
[TD="bgcolor: transparent"]08:55[/TD]
[TD="bgcolor: transparent"]11:30[/TD]
[TD="bgcolor: transparent"]13:15[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Doe, John[/TD]
[TD="bgcolor: transparent"]13:15[/TD]
[TD="bgcolor: transparent"]16:00[/TD]
[TD="bgcolor: transparent"]18:45[/TD]
[TD="bgcolor: transparent"]22:40[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Doe, John[/TD]
[TD="bgcolor: transparent"]13:15[/TD]
[TD="bgcolor: transparent"]16:00[/TD]
[TD="bgcolor: transparent"]18:45[/TD]
[TD="bgcolor: transparent"]22:40[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Doe, John[/TD]
[TD="bgcolor: transparent"]06:00[/TD]
[TD="bgcolor: transparent"]10:15[/TD]
[TD="bgcolor: transparent"]11:40[/TD]
[TD="bgcolor: transparent"]15:30[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Doe, John[/TD]
[TD="bgcolor: transparent"]12:30[/TD]
[TD="bgcolor: transparent"]15:20[/TD]
[TD="bgcolor: transparent"][/TD]
[TD="bgcolor: transparent"][/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Doe, John[/TD]
[TD="bgcolor: transparent"]06:00[/TD]
[TD="bgcolor: transparent"]08:00[/TD]
[TD="bgcolor: transparent"]10:20[/TD]
[TD="bgcolor: transparent"]12:40
[/TD]
[/TR]
[TR]
[TD="bgcolor: transparent"]Doe, John[/TD]
[TD="bgcolor: transparent"]14:30[/TD]
[TD="bgcolor: transparent"]17:00[/TD]
[TD="bgcolor: transparent"]19:20[/TD]
[TD="bgcolor: transparent"]22:05[/TD]
[/TR]
</tbody>[/TABLE]