View Single Post
  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
xlmate xlmate is offline
external usenet poster
 
Posts: 144
Default Conditional formatting comparing times

One suggestion,
Instead of having your formula in the Conditional Formatting,
why not have your formula
(D5-B5)*1440 in in E5
conditional formatting the column for value if it is <29 or 29

Highlight Column E
Go to Conditional Formatting
Under Condition 1 :
Choose Cell Value Is then
select greater than or equal to in the next box
type 29 in the last box. Click the Add button for the next condition which
is <=-29

Repeat the same for Condition 2

HTH

--
Pls provide your feedback by clicking the Yes button below if this post have
help you. This will help others to search the archives for result better.


Thank You

cheers, francis









"Mike" wrote:

Thanks for responding. Still is not working so here is a further explanation.

Current Time is 6:20 AM and Previous Time is 5:44 AM. In this scenario, the
current time is <=-29 minutes after the previous time, so I want to shad the
previous time blue. Another scenario, current time 6:20 AM, previous time
6:51 AM. In this case the current time is =29 minutes before the previous
time and shad will be red.

I have tried to convert the times into minutes (D5-B5)*1440=29. This works
inconsistently. I can manually look at the times and shad them but I am
trying to automate as much as possible.

Thanks again and appreciate any help.
--
Mike


"xlmate" wrote:

Hi

I am not sure how you can arrive ot < 29 if you formatted into h:mm
the maximum for a day is 24hrs.

Would you provide a sample data table and your expected result

HTH
--
Pls provide your feedback by clicking the Yes button below if this post have
help you. This will help others to search the archives for result better.


Thank You

cheers, francis









"Mike" wrote:

I need to compare a current production release time (that will vary between
regions) to previous months release times by region.
If the difference is 29 or greater shad the cell blue.
If the difference is -29 or greater shad the cell red.

I have tried these approaches in the but get inconsisted results.
Condition 1 Formula is where D5 is the previous release time and B5 is the
current.
=(D5-B5)*144029
Condition 2 Formula is where D5 is the previous release time and B5 is the
current.
=(D5-B5)*1440<-29

The cells are formatted h:mm AM/PM and I need to keep this format for
reporting purposes.

Appreciate any help.

Thanks,

--
Mike