Marking dates a week before their end with a condition of another date

sofas

Active Member
Joined
Sep 11, 2022
Messages
469
Office Version
  1. 2019
Platform
  1. Windows
Hello. I have a file that includes the start dates of the project in column B, starting from cell B2, and corresponding in column C to the end date. I want a way, whether in conditional formatting or VBA code, that enables me to highlight the dates of projects that have 7 days remaining until completion, so that a warning message is shown or the color of the date changes automatically. .
 

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
A cf rule might look like =DAYS(NOW(),C2)<=7
You specified (exactly?) 7 but what I posted would apply where the C column dates are 7 days or less. That would include any date that is past the due date as well.
 
Upvote 0
A cf rule might look like =DAYS(NOW(),C2)<=7
You specified (exactly?) 7 but what I posted would apply where the C column dates are 7 days or less. That would include any date that is past the due date as well.
I tried to do it somehow, but my problem is that conditional formatting is executed when the cell is empty
1.png



 
Upvote 0
Internally, blanks equate to zero. A solution can depend on whether or not your cells are truly blank (they are not if they contain a formula but the formula doesn't show any result). Review

and/or try AND($M3<=7, $M3<>"")
 
Upvote 0
Solution
Internally, blanks equate to zero. A solution can depend on whether or not your cells are truly blank (they are not if they contain a formula but the formula doesn't show any result). Review

and/or try AND($M3<=7, $M3<>"")
Great, it was a success. Thank you for following up
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,959
Members
449,096
Latest member
Anshu121

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