• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Conditional Formatting Question

Kevinzzz

New Member
Hi all, I'm trying to find the right custom formula to achieve the following goal:

Presets:
Employee Name: Column B
Break 1 Start Time: Column F
Break 1 Back Time: Column G
Lunch Start Time: Column H
Lunch Back Time: Column I
Break 2 Start Time: Column J
Break 2 Back Time: Column K

Goal: Break Start time and Back time will be manually entered by me, the goal is to highlight(or change color) the employee name while they are on break (the time betweem start and back). And return the cell format to normal when back time ends. There are also posibilities that an employee only gets 1 break and no lunch or second break, so if lunch start time or break 2 start time = XXX (not needed), the formula should only highlight employee name during the first break.

I have tried multiple formulas such as MOD, TIME, NOW and nothing seems to click, any help would be appreciated!!!
 
=AND(MOD(NOW(),1)>=$F3,MOD(NOW(),1)<=$G3)
Use in Conditional formatting after selecting cells starting in C3 downwards.
See attached where conditional formatting has been applied (I have changed values in F3 and G3 for testing). Not needed, but the formula is also in cell Q3.
This should get you started.

Have a go with the likes of:
Code:
=OR(AND(MOD(NOW(),1)>=$F3,MOD(NOW(),1)<=$G3),AND(MOD(NOW(),1)>=$H3,MOD(NOW(),1)<=$I3),AND(MOD(NOW(),1)>=$J3,MOD(NOW(),1)<=$K3))
to include more breaks/lunches.
 

Attachments

  • Chandoo34907Sample Break sheet.xlsx
    9.9 KB · Views: 3
Back
Top