+ Reply to Thread
Results 1 to 6 of 6

DOES NOT EQUAL - Conditional Formatting

  1. #1
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664

    DOES NOT EQUAL - Conditional Formatting

    Hi all,

    I'm trying to apply some conditional formatting to a range of cells where, if the cell DOES NOT EQUAL the value "FALSE" and another cell contains the word "Red" (there's more colors, but that's academic) then formatting occurs.

    In the conditional formatting box, I've entered the following formula:

    =(AND(D3<>"FALSE",$DA3="Red"))

    I thought the "<>" would indicate does not equal, or at least give the same results, but no joy.

    Any ideas?

    TIA,

    SamuelT

  2. #2
    JE McGimpsey
    Guest

    Re: DOES NOT EQUAL - Conditional Formatting

    Is the value in D3 the text value (word) FALSE, or is it the boolean
    value FALSE (as in TRUE/FALSE, perhaps the result of a comparison
    formula)?

    If the former, your formula works. If the latter, remove the quotes
    around "FALSE".


    In article <[email protected]>,
    SamuelT <[email protected]> wrote:

    > Hi all,
    >
    > I'm trying to apply some conditional formatting to a range of cells
    > where, if the cell DOES NOT EQUAL the value "FALSE" and another cell
    > contains the word "Red" (there's more colors, but that's academic) then
    > formatting occurs.
    >
    > In the conditional formatting box, I've entered the following formula:
    >
    > =(AND(D3<>"FALSE",$DA3="Red"))
    >
    > I thought the "<>" would indicate does not equal, or at least give the
    > same results, but no joy.
    >
    > Any ideas?
    >
    > TIA,
    >
    > SamuelT


  3. #3
    Forum Contributor EdMac's Avatar
    Join Date
    01-23-2006
    Location
    Exeter, UK
    MS-Off Ver
    2003
    Posts
    1,264
    Try removing the outermost set of brackets

    Ed

  4. #4
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    Thanks guys.

    FALSE was boolean, got rid of the inverted commas, and got rid of the second pair of brackets. Now everything's working peachily!!!

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675
    Note that you might still have a problem if D3 is blank,

    =AND(D3<>FALSE,$DA3="Red")

    will return FALSE in that case because the blank is interpreted as FALSE. If that causes a problem you could use

    =AND(OR(D3<>FALSE,D3=""),$DA3="Red")

  6. #6
    Valued Forum Contributor
    Join Date
    09-23-2005
    Location
    Bristol, UK
    MS-Off Ver
    2007
    Posts
    664
    None of the effected cells are blank. But thanks for the suggestion anyhow.

+ 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