Excel VBA Course
Excel VBA Course - From Beginner to Expert

200+ Video Lessons
50+ Hours of Video
200+ Excel Guides

Become a master of VBA and Macros in Excel and learn how to automate all of your tasks in Excel with this online course. (No VBA experience required.)

View Course

Formating

0

Hello,

B4 has conditional formatting to turn colors when certain dates are reached against todays date, ie, 45 days, green, 60 days, yellow, 90 days, red. When I put a date in C4 I want the formatting to stop in B4, or to go white. When the new date is put in C4, the changing of colors needs to stop in previous cell. I need this to work for the whole work book.

Any help would be appreciated...........

Answer
Discuss

Answers

0

Try something like this:-

=AND(TODAY()-$B4<45,LEN($C4)=0)

This example looks for any content in $C4. If you need it to be a date you can change the condition to something like $C4>0

In conditional formatting, the formula should evalue to TRUE in order to trigger formatting. If it evaluates to FALSE nothing will happen. You can test the formula by pasting it into any worksheet cell.

Discuss

Discussion

Thanks, not sure what that does, but nothing happened. Maybe I said it wrong, B4 has a date that will change color when it hits certain days old. When C4 gets populated with a date, I want B4 to stop changing colors. if C4 does not get populated thenĀ  B4 stays with formatting. Thank you
greekie May 3, '17 at 5:04 pm
Note: I tried it again, is there an order to the formatting?
greekie May 3, '17 at 5:50 pm
Make sure that the formula applies to the cell you are looking at for a result. You can see this in the 'Applies To' column of the Rules Manager. You can also test your formula. I have added the 'how to' to my answer above.
Variatus (rep: 4889) May 3, '17 at 7:47 pm
Thank you
greekie May 4, '17 at 5:31 pm
Add to Discussion


Answer the Question

You must create an account to use the forum. Create an Account or Login