Stuck on Conditional Format.

Geek Girl 007

Board Regular
Joined
Mar 12, 2022
Messages
197
Office Version
  1. 2021
Platform
  1. Windows
I've been at this for hours, I managed to get all the other conditional formatting working but I am stuck on this last one.
Selecting Columns E-M and O on row 5, I want these cells to go to a certain colour when I select a reason from K5, I have managed to do this.
Separately I want the cells to go another colour if there is ANY character in cell L5 - I will never use both formats at the same time i.e. if I have selected from the REASON box I wont select from the ALhrs box and vice versa.......

Please help!!!

1743356894928.png



TIMESHEET- TEST.xlsx
ABCDEFGHIJKLMNOP
1
2MorningAfternoonNet Time WorkedCreditsCOMMENTS
3Start TimeFinish TimeStart TimeFinish Time
4Hrs : MinsHrs : MinsHrs : MinsHrs : MinsHrs : MinsHrs : MinsReason*AL HrsAL Days
5  0
6
7
8
1
Cell Formulas
RangeFormula
I5I5=IF((F5-E5)+(H5-G5)=0,"",IF(H5-G5<0,"",(F5-E5)+(H5-G5)))
J5J5=IF(OR(K5={"PH","Sick","Covid"}),TIME(7,24,0),"")
M5M5=CEILING(L5*24/10,0.5)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E5:M5,O5Expression=$K5="RD"textNO
E5:M5,O5Expression=$K5="Toil"textNO
E5:M5,O5Expression=$K5="Sick"textNO
E5:M5,O5Expression=$K5="PH"textNO
M5Cell Value=0textNO
Cells with Data Validation
CellAllowCriteria
K5List=DATA!$A$2:$A$9
L5List=DATA!$B$2:$B$3
 
Hello! If correctly understood, then this should help. Create another rule for a conditional format
Excel Formula:
=$L5<>""
Book1
ABCDEFGHIJKLMNOP
1
2MorningAfternoonNet Time WorkedCreditsCOMMENTS
3Start TimeFinish TimeStart TimeFinish Time
4Hrs : MinsHrs : MinsHrs : MinsHrs : MinsHrs : MinsHrs : MinsReason*AL HrsAL Days
5  410
Sheet1
Cell Formulas
RangeFormula
I5I5=IF((F5-E5)+(H5-G5)=0,"",IF(H5-G5<0,"",(F5-E5)+(H5-G5)))
J5J5=IF(OR(K5={"PH";"Sick";"Covid"}),TIME(7,24,0),"")
M5M5=CEILING(L5*24/10,0.5)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E5:M5,O5Expression=$L5<>""textNO
 
Upvote 0
Solution
Hello! If correctly understood, then this should help. Create another rule for a conditional format
Excel Formula:
=$L5<>""
Book1
ABCDEFGHIJKLMNOP
1
2MorningAfternoonNet Time WorkedCreditsCOMMENTS
3Start TimeFinish TimeStart TimeFinish Time
4Hrs : MinsHrs : MinsHrs : MinsHrs : MinsHrs : MinsHrs : MinsReason*AL HrsAL Days
5  410
Sheet1
Cell Formulas
RangeFormula
I5I5=IF((F5-E5)+(H5-G5)=0,"",IF(H5-G5<0,"",(F5-E5)+(H5-G5)))
J5J5=IF(OR(K5={"PH";"Sick";"Covid"}),TIME(7,24,0),"")
M5M5=CEILING(L5*24/10,0.5)
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E5:M5,O5Expression=$L5<>""textNO
Oh my gosh, Thank you I my ><'s were the wrong way 🤣
 
Upvote 0

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