Help with Conditional Formatting

FaitherDave

New Member
Joined
Apr 23, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hey guys.

I've attached a portion of a spreadsheet I'm hoping to get help on.

In cell E6 I would enter the time a particular incident was created. I'm looking to use conditional formatting to turn that cell red if the incident runs longer than 9 hours.
Cell A3 has the =NOW() formula in it to get the current time. Next to that in cells B3, C3 and D3 I have the time +15 mins, +30 mins & +60 mins.

I have tried absolutely everything I can think of and have spent the last few hours scouring the web trying to find a solution but it just doesn't seem to work.

I was going along the lines of =IF($E6<(NOW()-TIME(9,0,0)),1,0) but this didn't work. I also tried adding a formula into cell E3 showing the time minus 9 hours, and if cell E6 was less than E3 it would turn red, but strangely this didn't work either.

Any help would be appreciated.

Thanks.
Dave
 

Attachments

  • Capture.PNG
    Capture.PNG
    10.5 KB · Views: 24

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Welcome to the Board!
In cell E6 I would enter the time a particular incident was created. I'm looking to use conditional formatting to turn that cell red if the incident runs longer than 9 hours.
This 9 hour measurement, is there another cell to determine the "end time" which you want to compare cell E6, or will it always be from the current time?
If always from the current time, you can use this Conditional Formatting Formula:
Excel Formula:
=NOW()-E6 > (9/24)
 
Upvote 0
Hello FaitherDave,

Try this:

FaitherDave.xlsx
ABCDE
34:35 PM
4
5Incident Creation
623-Apr-21 7:34
Sheet1
Cell Formulas
RangeFormula
A3A3=NOW()
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E6Expression=$E6-$A$3+TIME(9,0,0)<0textNO
 
Upvote 0
Neither of those are working :(

It's just turning the cell the formatted colour, regardless whether I put the a time 2 hours old or a time 10 hours old, if that makes sense?
 
Upvote 0
Neither of those are working :(

It's just turning the cell the formatted colour, regardless whether I put the a time 2 hours old or a time 10 hours old, if that makes sense?
Can you answer the question I asked in my previous post?
And provide an actual example where you show/tell us exactly what you are entering in to what cells?
 
Upvote 0
Neither of those are working :(

It's just turning the cell the formatted colour, regardless whether I put the a time 2 hours old or a time 10 hours old, if that makes sense?
I don't know what to recommend. It works fine for me as I watch it tick over to 9 hours.

1619215490651.png
 
Upvote 0

Forum statistics

Threads
1,223,768
Messages
6,174,408
Members
452,562
Latest member
Himeshwari

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