Forum Discussion

alexisnamaneh's avatar
alexisnamaneh
Copper Contributor
Sep 15, 2022
Solved

Apply a specific cell color within a time range

So what I really wanted to do is there is a timeframe. The only data that i need to use in the given sample data is the time not the date. I wanted to color the specific cell to YELLOW if the time is...
  • Riny_van_Eekelen's avatar
    Sep 15, 2022

    alexisnamaneh You could use the following Conditional Formatting rules:

    For yellow:

    =MOD(B3,1)=MEDIAN(MOD(B3,1),TIME(7,0,0),TIME(14,59,59))

    For Orange:

    =MOD(B3,1)=MEDIAN(MOD(B3,1),TIME(15,0,0),TIME(23,59,59))

Resources