+ Reply to Thread
Results 1 to 5 of 5

Help with conditional formatting formula

  1. #1
    Registered User
    Join Date
    03-05-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Help with conditional formatting formula

    Hi,
    I'm sure this will be easy for someone, but it has me going bold!

    I'm trying to format a cell based on a calculation of days from today + a date in a cell, plus the text in another cell. There's an "or" in that the cell needs to be highlighted based on;

    The text cell not stating "Rarely" and the date being over 360 days old

    OR

    The text cell being equal to "Rarely" and the date being over 720 days old

    I've tried:

    =IF((E4-TODAY())<-360,B4<>"Rarely")=OR((E4-TODAY())<-720,B4="Rarely")

    And

    =IF(E4-TODAY()<-360,B4<>"Rarely",IF(E4-TODAY()<-720,B4="Rarely"))

    But they don't work completely. Any help much appreciated.

    Thanks!
    Last edited by Marlowe Nots; 03-05-2010 at 09:28 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: Help with conditional formatting formula

    Try maybe:

    =OR(AND(E4<TODAY()-360,B4<>"Rarely"),AND(E4<TODAY()-720,B4="Rarely"))
    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
    03-05-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Help with conditional formatting formula

    Superb! Thank you very much. The only issue I have now is when the date cell (e4) is blank, Excel calculates the date from 1900. Any way of getting it to ignore blanks?

    Thanks again!

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

    Re: Help with conditional formatting formula

    Try

    =OR(AND(E4<>"",E4<TODAY()-360,B4<>"Rarely"),AND(E4<>"",E4<TODAY()-720,B4="Rarely"))

  5. #5
    Registered User
    Join Date
    03-05-2010
    Location
    England
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Help with conditional formatting formula

    Excellent! All works perfectly.

    Thanks again

+ 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