+ Reply to Thread
Results 1 to 4 of 4

IF Dates and conditional formatting (cell colours)

  1. #1
    Registered User
    Join Date
    06-28-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    20

    IF Dates and conditional formatting (cell colours)

    Hi

    I have been asked to produce a spreadsheet of all outstanding queries we have as a business unit, I cannot paste the data due to confidentiality however what I have been requested to do is from the date of the query column I need a formula that says:


    IF the date in say cells E1:E26 are 7 days old from TODAYS date so the NOW formula, the cell needs to either change to text "Yes" or change colour to red. Pls HELP

    Alternatively if the dates in this column are not 7 days older than the last date entered then to read "No" or have a different colour or even no colour.
    Last edited by aluniquen; 06-28-2012 at 04:02 AM.

  2. #2
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF Dates and conditional formatting (cell colours)

    Hi and welcome to the forum.

    For "YES", use this.

    =IF($e1>today()+7,"YES","") OR you mean?

    =IF($e1<today()+7,"YES","")

    For color, in Conditional Formatting rules, use this.

    =$e1>today()+7
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  3. #3
    Registered User
    Join Date
    06-28-2012
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: IF Dates and conditional formatting (cell colours)

    01/01/2012 YES
    21/06/2012 YES
    22/06/2012 YES
    25/06/2012 YES
    19/06/2012 YES

    As you can see its not worked?! Date ranges both within and after the 7 days is still saying Yes

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: IF Dates and conditional formatting (cell colours)

    Do you mean?

    =IF($E1<TODAY()-7,"YES","")

    OR

    =IF($E1>TODAY()-7,"YES","")

+ 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