+ Reply to Thread
Results 1 to 5 of 5

Condittional Formatting: Range of days

  1. #1
    Registered User
    Join Date
    10-11-2007
    Posts
    31

    Condittional Formatting: Range of days

    Hi, I need help to come up with the following conditional formatting:

    Color cell AB3 in red if B3 shows the word OPEN and the date on AA is -1 day, -2 days, 0 day, 1day, 2 days... 50days from today (a range from -2 days to +50 days from the current date)

    Could anyone kindly help me? I quite confused trying to figure this out
    Attached Files Attached Files
    Last edited by Kinna; 05-29-2009 at 09:17 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Condittional Formatting: Range of days

    Try Conditonal Format Formula:

    Select range and go to Format|Conditional Formatting

    Select Formula Is and enter formula

    =AND($B2="OPEN",$AA2>=TODAY()-2,$AA2<=TODAY()+50)

    Click Format to choose colour
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    10-11-2007
    Posts
    31

    Re: Condittional Formatting: Range of days

    Since I am using XP and I have lots of conditionals to make on the same cell is there anyway I can add this other formula ($Y3>=$AA3) to the one you have mentioned?

    I have tryied this:
    Please Login or Register  to view this content.
    But it annuls the previous formula... is there anyway I can make the formula ($Y3>=$AA3)"less important" than the rest of the formula?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Condittional Formatting: Range of days

    Not sure what you mean by making it less important...

    Maybe you can spell out exactly what you want to have happen?

    Maybe an OR()

    =OR(AND($B3="OPEN",$AA3>=TODAY()-2,$AA3<=TODAY()+200),$Y3>$AA3)

    This will colour if either the first 3 conditions are true OR the added condition is true....

  5. #5
    Registered User
    Join Date
    10-11-2007
    Posts
    31

    Re: Condittional Formatting: Range of days

    That workd perfectly its exaclty what I needed!

    Thank you again, I'm your fan!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1