Attendance After Midnight

fiberboysa

Board Regular
Joined
Apr 25, 2012
Messages
106
Office Version
  1. 365
Platform
  1. Windows
Hi All,
I am trying to make a Conditional Formation rule to highlight employees who left early then the schedule time out. But due to Midnight, I am stuck.
The scheduled timing is from 04:00 PM to 12:00 AM (Midnight). Following is attendance of an employee...

[TABLE="class: grid, width: 200, align: left"]
<tbody>[TR]
[TD][/TD]
[TD]A[/TD]
[TD]B[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]Time In[/TD]
[TD]Time Out[/TD]
[/TR]
[TR]
[TD]2[/TD]
[TD]03:50 PM[/TD]
[TD]12:10 AM[/TD]
[/TR]
[TR]
[TD]3[/TD]
[TD]03:55 PM[/TD]
[TD]11:50 PM[/TD]
[/TR]
</tbody>[/TABLE]

Here time out in cell B2 should not be highlighted because employee left after scheduled time. But time out in cell B3 should be highlighted because he left 10 mins earlier. I can not figure it out because of change of date after midnight. Kindly Help!!! Thanks in advance...!
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Use this conditional formatting rule for the 4:00 to midnight shift:
Code:
=MOD($B2-2/3,1)*24>=8
 
Last edited:
Upvote 0
Use this conditional formatting rule for the 4:00 to midnight shift:
Code:
=MOD($B2-2/3,1)*24>=8
Its giving me "FALSE" if i apply it to cell B3. Means 11:50 PM should be highlighted because employee left 10 mins earlier. With FALSE it wont be highlighted.
 
Last edited:
Upvote 0
Its giving me "FALSE" if i apply it to cell B3. Means 11:50 PM should be highlighted because employee left 10 mins earlier. With FALSE it wont be highlighted.
Sorry, there's an obvious typo in there. Should be:
Rich (BB code):
=MOD($B2-2/3,1)*24<=8
 
Upvote 0
Solution

Forum statistics

Threads
1,223,214
Messages
6,170,771
Members
452,353
Latest member
strainu

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top