Conditional Formatting

G

Guest

Guest
i have applied conditional formatting..to turn a date red if it is within 5 days of today...=(f6-TODAY())<6.....what formula do I use to change the color once the date is past today's date?
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
On 2002-03-10 08:19, Anonymous wrote:
i have applied conditional formatting..to turn a date red if it is within 5 days of today...=(f6-TODAY())<6.....what formula do I use to change the color once the date is past today's date?

Add another condition with as formula:

=F6>TODAY()
 
Upvote 0
On 2002-03-10 09:04, Aladin Akyurek wrote:
On 2002-03-10 08:49, pinkcasp wrote:
Itried that , it didn't work.

Lets take the problem step by step:

You have dates in F from F6 on. Do these dates change or fixed?

Aladin

OK (I got the answer via a different channel).

Select the range of interest (containing due dates) from F6 on.
Activate Format|Conditional Formatting.
Choose 'Formula Is' for Condition 1.
Enter in the formula box:

=AND(TODAY()-F6>=1,TODAY()-F6<6)

Activate Format.
Select red on the Patterns tab.
While still in the Conditional Dialog window, activate Add.
Choose 'Formula Is' for Condition 2.
Enter in the formula box:

=F6>TODAY()

Activate Format.
Select a color different from red on the Patterns tab.
Click OK, OK.

ADDENDUM. Reading your mail once more, the "...AND all the due dates are not input yet" made me believe that you want to apply to cond format also to those cells missing a date. In that case, I'd suggest using:

=AND(LEN(F6)>0,TODAY()-F6>=1,TODAY()-F6<6)

=AND(LEN(F6),F6>TODAY())

Aladin
This message was edited by Aladin Akyurek on 2002-03-10 10:38
 
Upvote 0

Forum statistics

Threads
1,213,546
Messages
6,114,256
Members
448,557
Latest member
richa mishra

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