Results 1 to 8 of 8
  1. #1
    5 Star Lounger
    Join Date
    Aug 2001
    Location
    Surrey, United Kingdom
    Posts
    1,001
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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
    Cheers

    Steve

    Asking the questions everbody wants the answers too but feels too stupid to ask themselves :-)

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: 3 conditional format values (2003 SP2)

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

  3. #3
    5 Star Lounger
    Join Date
    Aug 2001
    Location
    Surrey, United Kingdom
    Posts
    1,001
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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
    Cheers

    Steve

    Asking the questions everbody wants the answers too but feels too stupid to ask themselves :-)

  4. #4
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    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.

    Click Add >>.
    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.

    Click Add >>.
    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. #5
    5 Star Lounger
    Join Date
    Aug 2001
    Location
    Surrey, United Kingdom
    Posts
    1,001
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: 3 conditional format values (2003 SP2)

    Fantastic

    Thanks Hans that was spot on

    Cheers

    Steve
    Cheers

    Steve

    Asking the questions everbody wants the answers too but feels too stupid to ask themselves :-)

  6. #6
    5 Star Lounger
    Join Date
    Aug 2001
    Location
    Surrey, United Kingdom
    Posts
    1,001
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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)) )

    Any ideas please

    Cheers

    Steve
    Cheers

    Steve

    Asking the questions everbody wants the answers too but feels too stupid to ask themselves :-)

  7. #7
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    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. #8
    5 Star Lounger
    Join Date
    Aug 2001
    Location
    Surrey, United Kingdom
    Posts
    1,001
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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
    Cheers

    Steve

    Asking the questions everbody wants the answers too but feels too stupid to ask themselves :-)

Posting Permissions

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