# Thread: 3 conditional format values (2003 SP2)

1. ## 3 conditional format values (2003 SP2)

Good morning

I have 2 columns of dates, start ate and end date I would like a forula to put into the Conditional Formating as follow

3 months before due date = Condition 1
2 months before due date = Condition 2
1 month before due date = condition 3

I have tried DATE(YEAR(B4),(MONTH(B4)-1,(DAY(B4))) for example to try and alert 1 month before but I am getting knowhere fast.

Thanks

Steve

2. ## Re: 3 conditional format values (2003 SP2)

- Which column or columns do you want to format?
- Is end date the same as due date?

3. ## Re: 3 conditional format values (2003 SP2)

Hi Hans

Sorry it was me rushing to get into a course this morning, it should read start date (A1:A55) Due Date (B1:B55) and it is column B that needs the format applied.

TIA

Cheers

Steve

4. ## Re: 3 conditional format values (2003 SP2)

Select B1:B55.
Select Format | Conditional Formatting...

Select Cell Value Is from the first dropdown.
Select Less than or equal to from the second dropdown.
Enter the following formula in the box next to it

=DATE(YEAR(TODAY()),MONTH(TODAY())+1,DAY(TODAY()))

Click Format...
Specify the formatting that you want to apply to due dates less, then click OK.

Select Cell Value Is from the first dropdown.
Select Less than or equal to from the second dropdown.
Enter the following formula in the box next to it

=DATE(YEAR(TODAY()),MONTH(TODAY())+2,DAY(TODAY()))

Click Format...
Specify the formatting that you want to apply, then click OK.

Select Cell Value Is from the first dropdown.
Select Less than or equal to from the second dropdown.
Enter the following formula in the box next to it

=DATE(YEAR(TODAY()),MONTH(TODAY())+3,DAY(TODAY()))

Click Format...
Specify the formatting that you want to apply, then click OK.
Click OK to close the Dialog.

5. ## Re: 3 conditional format values (2003 SP2)

Fantastic

Thanks Hans that was spot on

Cheers

Steve

6. ## Re: 3 conditional format values (2003 SP2)

Hi Hans

Sorry have encountered a problem, perhaps you can advise

If I have no date in the the fist column the conditional formatting (it seems) is filling in the due dates into 31/12/01 - (Editted: Column A has the date manually input but Column B takes the date with a formula =DATE(YEAR(A4)+2,MONTH(A4),DAY(A4)) )

Cheers

Steve

7. ## Re: 3 conditional format values (2003 SP2)

It's not the conditional formatting, it's the formula. Conditional formatting only changes the formatting (as the name implies), not the value of a cell.

Change the formula to
<code>
=IF(ISBLANK(A4),"",DATE(YEAR(A4)+2,MONTH(A4),DAY(A 4)))</code>

8. ## Re: 3 conditional format values (2003 SP2)

Hi Hans

Thank you, another one to the list, I have just got used to the ISNA and ISERROR

Cheers

Steve

#### Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•