If date in 'Col E' falls between Date range in 'Col C' and 'Col D', Turn red

Kikaiki

New Member
Joined
Nov 26, 2024
Messages
6
Office Version
  1. 365
Platform
  1. Windows
How do I put the above into a working formula in 365?

1733139152252.png


'C' is Start of ETA
'D' is End of ETA
'E' is arrival time

I need anything that isn't within the date range in C & D to flag red

For example, Row 2 is 30 minutes out so is not compliant within given ETA
Row 4 is net day so also not compliant

I need to be able to flag these without having to go through the whole Doc to specifically dig them out
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
=NOT(AND( $C2 <= $E2, $C2 >= $D2))

for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
C2:C100 - Change, reduce or extend the rows to meet your data range of rows

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=NOT(AND( $C2 <= $E2, $C2 >= $D2))

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK

Book2
ABCDEF
1
21/1/24 0:002/1/24 0:003/1/24 0:00TRUE
31/11/24 0:002/2/24 0:003/2/24 0:00TRUE
411/29/24 8:0011/29/24 18:003/3/24 13:00TRUE
51/21/24 0:002/4/24 0:003/4/24 0:00TRUE
612/9/24 8:002/5/24 0:003/5/24 0:00TRUE
71/31/24 0:001/6/24 0:004/6/24 0:00FALSE
812/19/24 8:002/7/24 0:003/7/24 0:00TRUE
92/10/24 0:002/8/24 0:003/8/24 0:00FALSE
1012/29/24 8:002/9/24 0:003/9/24 0:00TRUE
112/20/24 0:002/10/24 0:003/10/24 0:00FALSE
121/8/25 8:002/11/24 0:003/11/24 0:00TRUE
13
14
Sheet1
Cell Formulas
RangeFormula
C3C3=C2+10
C5:C12C5=C3+10
F2:F12F2=NOT(AND( C2 <= E2, C2 >= D2))
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C2:C12Expression=NOT(AND( C2 <= E2, C2 >= D2))textNO
 
Upvote 0
Another option:
Book3
ABC
111/24/24 8:0011/24/24 12:0011/24/24 8:18
211/25/24 8:0011/25/24 12:0011/25/24 12:30
311/26/24 9:0011/26/24 17:0011/26/24 9:01
411/26/24 8:0011/26/24 18:0011/27/24 13:13
Sheet4
Cells with Conditional Formatting
CellConditionCell FormatStop If True
C1:C4Expression=MEDIAN(A1:C1)<>C1textNO
 
Upvote 0

Forum statistics

Threads
1,224,813
Messages
6,181,111
Members
453,021
Latest member
Justyna P

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