Apply custom formula if time falls between between two times

AR_2222

New Member
Joined
Feb 4, 2022
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi,

I want to highlight the entire row if a time in column B falls between 00:00:00 and 06:30:00 (as an example). I can highlight the single cells but not the row. I've read about 'Custom formula is' but I can't seem to find what the custom formula code is for 'in between' two times. I've tried a few variations from ideas I've found on here, but I can't seem to get it right.

Could someone help me out please?

Thank you.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
MrExcelPlayground6.xlsx
ABCDEFG
1NameTimeThing1Thing2Thing312:00:00 AM
2Fred7:30AAA6:30:00 AM
3Harry6:00BBB
4John20:00CCC
5Mary1:30DDD
6Sally12:00EEE
Sheet25
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:E6Expression=AND($B2>=$G$1,$B2<=$G$2)textNO


Another guy on here used this ingenious way of doing it:
MrExcelPlayground6.xlsx
ABCDEFG
1NameTimeThing1Thing2Thing312:00:00 AM
2Fred7:30AAA6:30:00 AM
3Harry6:00BBB
4John20:00CCC
5Mary1:30DDD
6Sally12:00EEE
Sheet25
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:E6Expression=$B2=MEDIAN($G$1:$G$2,$B2)textNO
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,552
Members
449,088
Latest member
davidcom

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