Over-ride conditional formatting if adjacent cell is not blank.

Corinnes

New Member
Joined
Apr 12, 2023
Messages
3
Office Version
  1. 365
I have set up conditional formatting to highlight dates which are falling due or overdue (THIS MONTH, NEXT MONTH, LAST MONTH).

See sample, Cell F7 has a date entered as it has been sent and so cell E7 no longer needs to be highlighted in pink. The problem I have is that column E has a formula in it already.
1681281392552.png


How do I get the conditional formatting to not apply (or other words the cell to be shaded in gray) once a date is entered into the adjacent column, and I how do I make this happen for the whole column?

Thanks in advance.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
You need to add to your current confitional format formula le conditiona that column F is empty. Example:
-select E3:E1000
-assign a conditional format using the formula =AND(YourCurrentFormula,$F6="")
 
Upvote 1
You need to add to your current confitional format formula le conditiona that column F is empty. Example:
-select E3:E1000
-assign a conditional format using the formula =AND(YourCurrentFormula,$F6="" [/QUOTE] [QUOTE="Anthony47, post: 6046870, member: 60147"] )
Thank you for responding. I am currently using the 'Format only cells that contain' conditional formatting and not a formula so I may need to change this to a combined formula?
1681299026125.png
 
Upvote 0
Yes, you need to set your C.F. "using a formula". Thus
-select E2:E1000 (or a range more suitable, but start from E2 and avoind using a whole column
-set 3 CF using the following formulas + Color:
Code:
=AND($E2<EOMONTH(TODAY(),-1),$F2="")                    Color RED, last month (or older)
Code:
=AND($E2<EOMONTH(TODAY(),0),$F2="")                      Color Orange, this month
Code:
=AND($E2<EOMONTH(TODAY(),1),$F2="")                      Color Yellow, next month
With reference to the attached image
a) use the "arrows" circled in blue to set the hierarchy of the rules as shows (select a rule, use the arrows to move the rule higher or lower in the sequence)
b) use the checkbox circled in red to stop other rules to be evaluated, if rule is true

Try...
 

Attachments

  • CF_C30412.jpg
    CF_C30412.jpg
    158.9 KB · Views: 5
Upvote 0
Solution
Thank you for the feedback
If that resolve the problem then it'd be better to mark the discussion as Resoved; see the procedure: Mark as Solution
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,192
Members
449,072
Latest member
DW Draft

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