Time help required

nick_bishop68

New Member
Joined
Jan 22, 2017
Messages
1
I have a “time taken” to work sheet set up but want to add an additional feature. Its set up to log in and log out and works out the time taken to process. I want to add a feature that once logged in, if not logged out in under 1 hour either a cell or the row turns red as a warning.

When anything (“text”) is entered into a cell D5 (logged in),then the current time is entered into E5.
=IF(D7<>"",IF(E7="",NOW(),E7),"")<o:p></o:p>

Then, when logged out, by entering “text” into F5, thecurrent time is entered into G5.<o:p></o:p>
=IF(F5<>"",IF(G5="",NOW(),G5),"")<o:p></o:p>
The time taken is calculated in Q5. <o:p></o:p>
=IF(G5="","",(G5-E5))<o:p></o:p>
How do I turn a cell or cell or row RED (or another alerting method)if cell E5 is +1hour and F5 (and G5) are blank (not logged out)?<o:p></o:p>
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Time is just a number, and is a fraction of 1 day. So 1 hour is 1/24.

Does that help?
 
Upvote 0

Forum statistics

Threads
1,215,025
Messages
6,122,731
Members
449,093
Latest member
Mnur

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