+ Reply to Thread
Results 1 to 2 of 2

Changing a cell colour when date in adjacent cell is >7days ago...?

  1. #1
    Registered User
    Join Date
    12-06-2011
    Location
    bristol, england
    MS-Off Ver
    Excel 2003
    Posts
    4

    Changing a cell colour when date in adjacent cell is >7days ago...?

    My last thread came back with no answers so i have made a few changes to my sheet hoping to make it possible.

    How can i go about changing the colour of cell A1 when the date in B2 is more then 7 days old, then again to a new colour when it is 14days old. Im guessing it will be simply conditoonal formatting but cant quite get the formula right.

    Or, if there is a way of doing this without using conditional formatting that would be better (because the date in B2 is only reading from another Tab, as conditional formatting wont read off another Tab, and i would rather not have to put in loads of new coloums to read the date from other tabs on my front sheet.).

    If you didnt see my first thread and think you can help then please see it <<HERE>>

    Thanks in advance!
    Last edited by NBVC; 12-12-2011 at 10:06 AM. Reason: Marked Solved per Rep Comments

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

    Re: Changing a cell colour when date in adjacent cell is >7days ago...?

    Select A1 and go to Format|Conditional Formatting

    Choose, Formula Is and enter:

    =AND($B2<>"",$B2<TODAY()-14)

    Click Format and choose from Pattern tab

    Click Ok

    Click Add and repeat with formula:

    =AND($B2<>"",$B2<TODAY()-7)
    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.

+ 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