Conditional formatting

BBV123

New Member
Joined
May 12, 2024
Messages
1
Office Version
  1. 2021
Platform
  1. Windows
Hi Community, I'm trying to prepare a schedule table for 24 hours for different days

I used this formula for my table=DATE(2024,5,10) + SEQUENCE(1,96,0,1)/(24*4) and I'm using conditional formatting to highlight the cells in the table. The formula for my conditional formatting is =AND($C5<=$F$14,$D5>=F$14,$E5="Drive"). When my start time is 0:00 and end time is 00:15, it works perfectly fine. However, when my start time is 0:15 and end time is 0:30, it doesn't highlight my table as expected. How will resolve this issue. Appreciate your support on this.

Also, is there any way I can have two inputs on a single row? For instance, if my start time is 00:00 and end time is 00:45, and my status is 'drive,' it will highlight my table with the color corresponding to the status. Now, if during another time, from 01:15 to 02:15, my start time is 01:15 and end time is 02:15, and my status is 'rest,' then it should highlight both 'drive' and 'rest' based on the corresponding time inputs on a single row.



1715539790446.png
 

Attachments

  • 1715539672231.png
    1715539672231.png
    6.1 KB · Views: 10

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
try this:
Book1
ABCDEFGHIJK
1
2
3
4S TimeE TimeSt
500:15:0000:30:00Drive
6
7
8
900:00:0000:15:0000:30:0000:45:0001:00:0001:15:00
10Day1
11Day2
12Day3
13
14building cfFALSETRUETRUEFALSE
15
Sheet4
Cell Formulas
RangeFormula
F9:CW9F9=SEQUENCE(1,96,0)*(15/(60*24))
F14:I14F14=AND(F$9>=$C$5,F$9<=$D$5,$E$5="Drive")
Dynamic array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
F10:CW12Expression=AND(F$9>=$C$5,F$9<=$D$5,$E$5="Drive")textNO
 
Upvote 0

Forum statistics

Threads
1,223,782
Messages
6,174,512
Members
452,568
Latest member
CVW

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