Conditional formating between 2 hours

Vod0

New Member
Joined
Mar 28, 2022
Messages
12
Office Version
  1. 365
Platform
  1. Windows
Trying to remove the color from a cell if its between the two working hours and its okey if the shift is between 00:01 and 23:59.
Am not able to figure out how to fix this after googling allot.. Does anyone have the formula?

This is the formula am using and works great until the shift goes over 00:00
"=IF(E$9>=$B11;E$9<=$C11)" (English) / "=HVIS(E$9>=$B11;E$9<=$C11)" (Norwegian)

Time goes like this in the end.
00:0000:1500:3000:4501:0003:1503:3003:45

1648993037173.png
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Sorry, I only know the English words:

Excel Formula:
=IF($C11<$B11,OR(E$9>=$B11;E$9<=$C11),AND(E$9>=$B11;E$9<=$C11))

If this does not work, please paste some data (not a picture) into a post for testing.
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,433
Members
448,897
Latest member
ksjohnson1970

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