Conditional Formatting

tobysdhc

Board Regular
Joined
Aug 11, 2015
Messages
56
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
  2. Web
Hello all,

I have two columns.

Column A (2:500) is a due date calculated by a formula
Column B (2:500) is the actual date of completion.

I have conditional formatting in Column A as the date gets closer (yellow 1 month out, orange 1 week out, red this week). The problem is, the conditional formatting is still in effect even if the date completed (column B) is prior to the due date.

Is there a way I can have excel ignore the conditional formatting, for example if B3 >= A3 without having to enter a formula for each of the 500 rows?

Thanks,
 
For the week formula

=OR(AND(A2-TODAY(){8,A2}=TODAY(),B2=""),AND(A2-TODAY(){8,A2}=TODAY(),B2{}"",A2{B2))

Replace all { with less than signs
REplace all } with greater than signs
 
Upvote 0

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
Wow! Thanks! I'll give it shot and let you know how it goes.
 
Upvote 0
Jeff you can still use < and > you just need to include a space around them, otherwise the server thinks you are using HTML...
=OR(AND(A2-TODAY() > 8,A2 < =TODAY(),B2=""),AND(A2-TODAY() > 8,A2 < =TODAY(),B2 < > "",A2{B2))
 
Upvote 0
Do I put that in the conditional formatting "formula" section? And will I have to do that for all 500 rows?
 
Upvote 0
1. highlight the range you want to apply the conditional formatting to
2. on the home tab, styles, select CF
3. select new rule, select use formula
4. enter the suggested formula/s
 
Upvote 0
Hello and thank you for your help. I entered the formulas. the week range took some off, but not others. The month formula had no effect. It may have something to do with
Code:
 in front?
 
Upvote 0
I'm going to post these differently. This time with spaces before and after the < and > signs. You will have to remove the spaces.

Week
=OR(AND(A2 < EDATE(TODAY(),1)+1,A2 > =TODAY(),B2=""),AND(A2 < EDATE(TODAY(),1)+1,A2 > =TODAY(),B2 < > "",A2 < B2))

Month
=OR(AND(A2-TODAY() < 8,A2 > =TODAY(),B2=""),AND(A2-TODAY() < 8,A2 > =TODAY(),B2 < > "",A2 < B2))
 
Upvote 0

Forum statistics

Threads
1,216,119
Messages
6,128,944
Members
449,480
Latest member
yesitisasport

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