Apply conditional formatting to a column if between range AND if between range in adjacent column

seycharlotte

New Member
Joined
Aug 28, 2015
Messages
2
Hi

I hope you can help. I'm trying to highlight a range of cells that fall between a range (>41) but only if the time in the adjacent column falls between two times. The sheet shows tidal ranges and I want it to highlight tide values above 41 (column B) but only between the hours of 09:00 and 17:00 (Column A). This would then be replicated across the sheet.
So in the example below B6 & B7 would be highlighted (in this case I don't include an example where the tide is above 41 but is outside of 09:00-17:00)
I have a small amount of ability in excel and have used conditional formatting before but I've reached my limit ha ha!
Many thanks in advance


AB
08:3526.50
09:0034.20
09:2538.17
09:5040.27
10:1641.90

<tbody>
</tbody>
 
Last edited:

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
try this formula for the CF

=AND(B1>41,A1>=TIME(9,0,0),A1<=TIME(17,0,0))

and apply for the whole column B
 
Upvote 0

Forum statistics

Threads
1,217,364
Messages
6,136,112
Members
449,993
Latest member
Sphere2215

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