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...

AB
1Time InTime Out
203:50 PM12:10 AM
303:55 PM11:50 PM

<tbody>
</tbody>

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

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
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,213,568
Messages
6,114,348
Members
448,570
Latest member
rik81h

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