+ Reply to Thread
Results 1 to 3 of 3

Conditional formatting using AND with a NOT statement

Hybrid View

  1. #1
    Registered User
    Join Date
    01-27-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Conditional formatting using AND with a NOT statement

    Good Morning,

    I wish to use a formula to highlight a date based on two criteria in two separate columns;

    The first is the Date that will be in Column B.

    I want it to highlight the date if : Today() is greater than that date in the cell plus 5 years (or 1824 days)

    The second criteria I want is for the date to be only highlighted if the corresponding cell (in column A) does NOT contain the term ("Basic")


    I have the formula:

    =AND((TODAY()>(B1+1824)),A1=("Basic"))

    which highlights the date correctly IF the term in Column A is "Basic" : But I cannot figure out how to insert the NOT statement to make the formula flip around so it only highlights those dates older than the 5 years requirement and NOT contain the "Basic" in column A.

    Can anyone assist please ?

  2. #2
    Forum Expert Olly's Avatar
    Join Date
    09-10-2013
    Location
    Darlington, UK
    MS-Off Ver
    Excel 2016, 2019, 365
    Posts
    6,284

    Re: Conditional formatting using AND with a NOT statement

    Use:
    Formula: copy to clipboard
    =AND(TODAY()>($B1+1824),$A1<>"Basic")
    let Source = #table({"Question","Thread", "User"},{{"Answered","Mark Solved", "Add Reputation"}}) in Source

    If I give you Power Query (Get & Transform Data) code, and you don't know what to do with it, then CLICK HERE

    Walking the tightrope between genius and eejit...

  3. #3
    Registered User
    Join Date
    01-27-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: Conditional formatting using AND with a NOT statement

    Solved, Thank you .

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] If Statement within conditional formatting
    By galvinpaddy in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 06-07-2013, 04:27 AM
  2. Conditional formatting or IF statement
    By banny85 in forum Excel General
    Replies: 1
    Last Post: 06-08-2011, 12:56 PM
  3. Conditional Formatting with If Statement
    By Merlin54k in forum Excel General
    Replies: 9
    Last Post: 03-26-2010, 02:39 PM
  4. IF statement using formatting criteria (NOT conditional formatting)
    By chelseasikoebs in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2009, 01:57 AM
  5. [SOLVED] Use if statement with conditional formatting?
    By q5 in forum Excel General
    Replies: 2
    Last Post: 08-24-2005, 11:05 PM

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