can i set cf to apply if it comes within a ten minute timeframe, i.e. shade a cell red if it comes within ten minues of a time in another cell?
can i set cf to apply if it comes within a ten minute timeframe, i.e. shade a cell red if it comes within ten minues of a time in another cell?
If the time to be compared to is in column A and the new times are entered in column B all formatted as h:mm and column C formatted as General has =B1-A1. This will produce a decimal time as the difference.
Enter this in CF formula =AND($C1<>0,$C1<0.006945) choose the format that you want.
In the applies to enter the formula to cover the range of data that you want formatted. I used =$A$1:$B$10 This will format the row where the time in column B is less than or equal to 10 minutes larger than the time in column A.
0.006945 was used because 10 minutes is actually 0.0069444444444 etc. of a day so to get 10 minutes I used 0.006945 This is accurate to within a few seconds.
<---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.Ron W
If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
?None of us is as good as all of us? - Ray Kroc
?Actually, I *am* a rocket scientist.? - JB (little ones count!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks