+ Reply to Thread
Results 1 to 5 of 5

Search list a highlight non match

  1. #1
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Post Search list a highlight non match

    Within conditional formatting I use =COUNTIF(Task,I4)=0 and it highlights the non-matches. Task is a named range which works fine, but how could I actually just use a string instead of the named range? The named range only consists of Major and Sub. My first guess would be =COUNTIF({"Major";"Sub"},I4)=0 but this is not working. Any thoughts?
    Last edited by jeffreybrown; 10-31-2009 at 12:10 PM.

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Search list a highlight non match

    Quote Originally Posted by rocky1 View Post
    Within conditional formatting I use =COUNTIF(Task,I4)=0 and it highlights the non-matches. Task is a named range which works fine, but how could I actually just use a string instead of the named range? The named range only consists of Major and Sub. My first guess would be =COUNTIF({"Major";"Sub"},I4)=0 but this is not working. Any thoughts?
    Using Excel 2007 or Excel 2003....
    Try this:

    Please Login or Register  to view this content.
    Does that help?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Post Re: Search list a highlight non match

    Hi Ron,

    I tried the {} before, but still get an error, You may not use unions, intersections, or arrays constants in Conditional Formatting criteria.

  4. #4
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Search list a highlight non match

    Quote Originally Posted by rocky1 View Post
    Hi Ron,

    I tried the {} before, but still get an error, You may not use unions, intersections, or arrays constants in Conditional Formatting criteria.

    Oops! I neglected to allow for CF.

    Try this:

    Please Login or Register  to view this content.
    Is that better?

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Post Re: Search list a highlight non match

    There I go again overlooking the obvious and trying to make things too hard.

    Thanks Ron, but I will make one modification because I only want in to highlight the non-match...=NOT(OR(I4="Major",I4="Minor"))

+ 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