Color Change depending on time without refresh. Excel 2010, Windows XP Professional

NAZQAR

New Member
Joined
May 11, 2014
Messages
25
OK, so my company uses excel as it's employee clock / in-out software. While not an ideal solution it works fairly well. However we have had a recent spate of missed work because a few dispatchers have failed to notice that an employee has not checked in. The following table shows how I have the columns set up. As an employee checks in we type their check in time in the "actual" column. What I would like is for the blank space in the "Actual" column to change color if the time that the employee was supposed to check in has passed. So in cell G4 if it is past 7:35 and G4 is empty I would like it to turn red. I also would like that feature to be automatic, meaning that the dispatcher should not have to refresh the sheet or hit the save button for it to work. Is this possible with either formulas or VBA?
EFG
1
EmployeeCheck InActual
2Bob Smith7:30
7:30
3John Jones
7:327:32
4Greg Abode7:35
5Helen Jennings7:45

<tbody>
</tbody>
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
You could use a conditional formatting with this formula
Code:
=AND($F$3="", (NOW()-INT(NOW()))>(91/288))

That should not require a refresh.
(Famous last words).

/AJ
 
Upvote 0
Hi Nazqar,

Maybe a conditional format could achieve what you want.

select cells from g2:g5 for example create a new rule for conditional format and place this formula

=isblank($g2)

Hope this help.


Vândalo
 
Upvote 0
Column F is never empty, it lists the time that the employee is supposed to report. Column G is empty until the employee reports for duty, at which time we type their report time in column G. Usually the two times match but occasionally if an employee is late or clocking in early for an approved reason. What I want is, if for instance G4 is empty and the time is greater than the time in G3 then G4 will turn red. Thank you greatly for the replies so far.
 
Upvote 0
Column F is never empty, it lists the time that the employee is supposed to report. Column G is empty until the employee reports for duty, at which time we type their report time in column G. Usually the two times match but occasionally if an employee is late or clocking in early for an approved reason. What I want is, if for instance G4 is empty and the time is greater than the time in G3 then G4 will turn red. Thank you greatly for the replies so far.

Sorry. Mine should still work, just change the F for a G.

/AJ
 
Upvote 0

Forum statistics

Threads
1,214,904
Messages
6,122,169
Members
449,070
Latest member
webster33

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