Conditional Formatting

gregmpenn

New Member
Joined
Apr 21, 2023
Messages
7
Office Version
  1. 365
Platform
  1. Windows
I understand the basics that are built into Excel, but I have never tried to create my own out of the box conditional formatting.
In my example I have column (R1) set to =(Today).
In column (H) and (I) I have expected delivery dates.
What I am looking for is if column (H) or (I) are equal to todays date column (R1) then highlight those cells yellow.
If column (H) or (I) are prior to todays date column (R1) then highlight those cells Red.
Last but not lease if column (L) has a date, then remove the highlighted color(s) from column (H) or (I).
ABCDEFGHIJKLMNOPQ
5/1/2023 0:00​
SMD
SSF
Work WeekOriginBlocksSizeSlice
report
# of slicesDate shippedDue in SSF ~ approxDue in WA ~ approxIncoming
Tracking #
Ship CarrierReceived DateRecvd InitialsDay ReceivedSeed
Instructions
Process Priority OrderNotes
174784020slice20904/25/202304/28/202329012298Malca-AmitNot_RcvdSmart Loading3
174823020slice16204/25/202304/28/202329012299Malca-AmitNot_RcvdSmart LoadingRedirect and ship to WA. To arrive in WA 4/29
174833920slice13404/25/202304/28/202329012297Malca-AmitNot_RcvdSmart LoadingRedirect and ship to WA. To arrive in WA 4/29
174994020slice29104/25/202304/28/202329012300Malca-AmitNot_RcvdSmart Loading2
175214020slice 30004/25/202304/28/202329012304Malca-AmitNot_Rcvd1Large Seeds. Proces ASAP
184904020slice23904/26/202305/02/202329012317Malca-AmitNot_Rcvd
184914020slice29012327Malca-AmitNot_Rcvd
185024020slicependingMalca-AmitNot_Rcvd
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
try this:


Book4
ABCDEFGHIJKLMNOPQR
1SMDIf column (H) or (I) are prior to todays date column (R1) then highlight those cells Red. Last but not lease if column (L) has a date, then remove the highlighted color(s) from column (H) or (I).5/1/2023 0:00
2SSF
3Work WeekOriginBlocksSizeSlice# of slicesDate shippedDue in SSF ~ approxDue in WA ~ approxIncomingShip CarrierReceived DateRecvd InitialsDay ReceivedSeedProcess Priority OrderNotes
4reportTracking #Instructions
5174784020slice20904/25/202304/28/202329012298Malca-Amit2023-05-01Not_RcvdSmart Loading3
6174823020slice16204/25/202304/28/202329012299Malca-AmitNot_RcvdSmart LoadingRedirect and ship to WA. To arrive in WA 4/29
7174833920slice13404/25/202304/28/202329012297Malca-AmitNot_RcvdSmart LoadingRedirect and ship to WA. To arrive in WA 4/29
8174994020slice29104/25/202304/28/202329012300Malca-Amit2023-05-04Not_RcvdSmart Loading2
9175214020slice 30004/25/202304/28/202329012304Malca-AmitNot_Rcvd1Large Seeds. Proces ASAP
10184904020slice23904/26/202305/02/202329012317Malca-AmitNot_Rcvd
11184914020slice29012327Malca-AmitNot_Rcvd
12185024020slicependingMalca-Amit2023-05-08Not_Rcvd
13
gregmpenn
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I5:I12Expression=AND(L5="",OR(AND(I5<$R$1,I5<>""),AND(H5<$R$1,H5<>"")))textNO
H5:H12Expression=AND(L5="",OR(AND(I5<$R$1,I5<>""),AND(H5<$R$1,H5<>"")))textNO
 
Upvote 1
Solution
Do the following:

For yellow highlighting:
1. Select columns H and I
2. Go to Conditional Formatting
3. Select "New Rule"
4. Select "User a formula to determine which cells to format"
5. Enter the following formula:
Excel Formula:
=AND($L1="",H1=$R$1)
6. Click the format button
7. Go to the Fill tab and select the yellow formatting color
8. Click OK

For red highlighting:
Follow same steps as above but use this formula:
Excel Formula:
=AND($L1="",$H1>0,$H1<$R$1)
and select red fill color.
 
Upvote 0
try this:


Book4
ABCDEFGHIJKLMNOPQR
1SMDIf column (H) or (I) are prior to todays date column (R1) then highlight those cells Red. Last but not lease if column (L) has a date, then remove the highlighted color(s) from column (H) or (I).5/1/2023 0:00
2SSF
3Work WeekOriginBlocksSizeSlice# of slicesDate shippedDue in SSF ~ approxDue in WA ~ approxIncomingShip CarrierReceived DateRecvd InitialsDay ReceivedSeedProcess Priority OrderNotes
4reportTracking #Instructions
5174784020slice20904/25/202304/28/202329012298Malca-Amit2023-05-01Not_RcvdSmart Loading3
6174823020slice16204/25/202304/28/202329012299Malca-AmitNot_RcvdSmart LoadingRedirect and ship to WA. To arrive in WA 4/29
7174833920slice13404/25/202304/28/202329012297Malca-AmitNot_RcvdSmart LoadingRedirect and ship to WA. To arrive in WA 4/29
8174994020slice29104/25/202304/28/202329012300Malca-Amit2023-05-04Not_RcvdSmart Loading2
9175214020slice 30004/25/202304/28/202329012304Malca-AmitNot_Rcvd1Large Seeds. Proces ASAP
10184904020slice23904/26/202305/02/202329012317Malca-AmitNot_Rcvd
11184914020slice29012327Malca-AmitNot_Rcvd
12185024020slicependingMalca-Amit2023-05-08Not_Rcvd
13
gregmpenn
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I5:I12Expression=AND(L5="",OR(AND(I5<$R$1,I5<>""),AND(H5<$R$1,H5<>"")))textNO
H5:H12Expression=AND(L5="",OR(AND(I5<$R$1,I5<>""),AND(H5<$R$1,H5<>"")))textNO
ignore this, I omitted the yellow formatting Sorry.
 
Upvote 0
try this:


Book4
ABCDEFGHIJKLMNOPQR
1SMDIf column (H) or (I) are prior to todays date column (R1) then highlight those cells Red. Last but not lease if column (L) has a date, then remove the highlighted color(s) from column (H) or (I).5/1/2023 0:00
2SSF
3Work WeekOriginBlocksSizeSlice# of slicesDate shippedDue in SSF ~ approxDue in WA ~ approxIncomingShip CarrierReceived DateRecvd InitialsDay ReceivedSeedProcess Priority OrderNotes
4reportTracking #Instructions
5174784020slice20904/25/202304/28/202329012298Malca-Amit2023-05-01Not_RcvdSmart Loading3
6174823020slice16204/25/202304/28/202329012299Malca-AmitNot_RcvdSmart LoadingRedirect and ship to WA. To arrive in WA 4/29
7174833920slice13404/25/202304/28/202329012297Malca-AmitNot_RcvdSmart LoadingRedirect and ship to WA. To arrive in WA 4/29
8174994020slice29104/25/202304/28/202329012300Malca-Amit2023-05-04Not_RcvdSmart Loading2
9175214020slice 30004/25/202304/28/202329012304Malca-AmitNot_Rcvd1Large Seeds. Proces ASAP
10184904020slice23904/26/202305/02/202329012317Malca-AmitNot_Rcvd
11184914020slice29012327Malca-AmitNot_Rcvd
12185024020slicependingMalca-Amit2023-05-08Not_Rcvd
13
gregmpenn
Cells with Conditional Formatting
CellConditionCell FormatStop If True
I5:I12Expression=AND(L5="",OR(AND(I5<$R$1,I5<>""),AND(H5<$R$1,H5<>"")))textNO
H5:H12Expression=AND(L5="",OR(AND(I5<$R$1,I5<>""),AND(H5<$R$1,H5<>"")))textNO
Your solution worked perfect, thank you so much. For those on this forum that respond it is greatly appreciated. I know your doing the work for me, but please know I take what you did and I study it so I can learn and ask less questions as I go.
 
Upvote 0

Forum statistics

Threads
1,215,222
Messages
6,123,704
Members
449,118
Latest member
MichealRed

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