+ Reply to Thread
Results 1 to 11 of 11

Conditional Formatting

  1. #1
    Registered User
    Join Date
    01-12-2010
    Location
    London, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    13

    Conditional Formatting

    This might be a simple answer but... if A1 had the date 1-Jan-2010, what formula would I used, within conditional formatting, to make that cell turn blue once 90 has passed? So the cell should turn blue on 1-Apr-2010.

    Thanks in advance.
    Michelle
    Last edited by Michelle2175; 01-19-2010 at 02:01 PM.

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Conditional Formatting Question

    Use formula

    =(INT(A1)+90=INT(today()))

    test it using =(INT(A1)+90=INT(DATE(2010,4,1)))
    Last edited by rwgrietveld; 01-19-2010 at 12:51 PM.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

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

    Re: Conditional Formatting Question

    Try:

    =Today()>=A1+90
    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.

  4. #4
    Registered User
    Join Date
    01-12-2010
    Location
    London, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Conditional Formatting Question

    Quote Originally Posted by rwgrietveld View Post
    Use formula

    =(INT(A1)+90=INT(today()))

    test it using =(INT(A1)+90=INT(DATE(2010,4,1)))
    Thanks for your help but what if there are different dates in column A... like if the date in A2 was 1-Feb-2010, then the formula =(INT(A1)+90=INT(DATE(2010,4,1))) wouldn't work.

    Thanks!

  5. #5
    Registered User
    Join Date
    01-12-2010
    Location
    London, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Conditional Formatting Question

    Quote Originally Posted by NBVC View Post
    Try:

    =Today()>=A1+90
    That worked!!! Thanks for your help

  6. #6
    Registered User
    Join Date
    01-12-2010
    Location
    London, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Conditional Formatting - Another Question!

    Okay NBVC... I got another question for you

    Let's say...A1 had the date 1-Jan-2010 and again if I wanted it to turn blue after 90 days, then I would use your formula above.

    BUT... once I enter a date into B1, then A1 would automatically go back to no fill.


    How do I do that?

    Thanks!
    Michelle
    Last edited by Michelle2175; 01-19-2010 at 01:30 PM.

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

    Re: Conditional Formatting - Another Question!

    Try

    =AND(Today()>=A1+90,B2="")

  8. #8
    Registered User
    Join Date
    01-12-2010
    Location
    London, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Conditional Formatting - Another Question!

    Quote Originally Posted by NBVC View Post
    Try

    =AND(Today()>=A1+90,B2="")
    Geez you are good... thank you so much.

  9. #9
    Registered User
    Join Date
    01-12-2010
    Location
    London, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Conditional Formatting

    Okay just one more... I promise.

    What if some rows in column A do not have a date... how do I stop those cells from turning blue as well???

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

    Re: Conditional Formatting

    maybe

    =AND(A1<>"",Today()>=A1+90,B1="")

  11. #11
    Registered User
    Join Date
    01-12-2010
    Location
    London, Ontario
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Conditional Formatting

    Quote Originally Posted by NBVC View Post
    maybe

    =AND(A1<>"",Today()>=A1+90,B1="")
    Yes it worked! Thank you so much for your help...

+ 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