Excel Conditional Formating On Cells having Time value in HH:MM:SS

Hi
I am trying to put a conditional formating on the excel cells having the data in - HH:MM:SS and + HH:MM:SS format. If the time present in the cell is not in between +- 5 min then highlight that cell.
I have uploaded the excel file and looking to implement that sort of formating in Start and Stop column.

Thanks
Test.xlsx
surah79Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Ryan ChongBusiness Systems Analyst , ex-Senior Application EngineerCommented:
in col D, try apply conditional formating:

=RIGHT(INDIRECT("D"&ROW()), LEN(INDIRECT("D"&ROW()))-3) > "0:05:00"

Open in new window


in col E, try apply conditional formating:

=RIGHT(INDIRECT("E"&ROW()), LEN(INDIRECT("E"&ROW()))-3) > "0:05:00"

Open in new window

Test-b.xlsx

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Subodh Tiwari (Neeraj)Excel & VBA ExpertCommented:
Not sure exactly if this is what you are trying to achieve.
But try this....

For column D, make a new rule for conditional formatting using the formula below and set the formatting as per your choice.
=TIMEVALUE(RIGHT(D2,7))>TIMEVALUE("00:05:00")

Open in new window



For column E, make a new rule for conditional formatting using the formula below and set the formatting as per your choice.
=TIMEVALUE(RIGHT(E2,7))>TIMEVALUE("00:05:00")

Open in new window


Foe details refer to the attached workbook.
Test-Conditional-Formatting.xlsx
[ fanpages ]IT Services ConsultantCommented:
A slightly different approach to sktneer...

I have added this Conditional Formatting rule criteria at column [D1] to apply all the way down column [D]:

=VALUE(SUBSTITUTE(MID(D1,FIND(":",D1)+1,5),":","."))>5

Similarly, this applied to [E1], & applicable to all of the same column:

=VALUE(SUBSTITUTE(MID(E1,FIND(":",E1)+1,5),":","."))>5

The formatting I have applied is a 'red' fill with 'yellow' text forecolo(u)r.

Please see the attached workbook.
Q-28708711.xlsx
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Excel

From novice to tech pro — start learning today.