+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting to Highlight lines that don't contain certain info

  1. #1
    Registered User
    Join Date
    04-22-2014
    Location
    Las Vegas, NV
    MS-Off Ver
    Excel 2011 for Mac
    Posts
    13

    Conditional Formatting to Highlight lines that don't contain certain info

    Hi there

    I'm working on a way of highlighting rows to filter out info for certain properties. My Current doc lists the Property in column H with an Acronym, then the full property name. Right now, the only way I can think to do it is to make multiple rules, each highlighting the row for one acronym. My formula, for example, looks like this: =SEARCH("BZM - ",$H2)

    I was wondering if there was a way to make a formula that highlights anything that does not start with the acronym BAC, CAC, ATL, etc… I only need about 13 acronyms to be accepted, but about 50 to be highlighted so I can filter them out. So it would be a lot better if I can do one formula saying "Look for anything that doesn't start with one of these…"

    Any ideas would be greatly appreciated.

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,050

    Re: Conditional Formatting to Highlight lines that don't contain certain info

    Maybe make a small table with your acronyms in, and use vlookup(left(a1,3),range etc) in the CF?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Conditional Formatting to Highlight lines that don't contain certain info

    Try

    =ISERROR(LOOKUP(2^15,SEARCH($A$1:$A$13,$H2)))

    A1:A13 is your list of Acronyms
    There cannot be any blanks in that list.

    It returns TRUE if none of the acronyms appear in H2, FALSE if any one or more of the acronyms DO appear in H2
    You can change ISERROR to ISNUMBER if you want to reverse that logic.

    It's NOT case sensitive, it wil find BZM just the same as bzm or Bzm
    Change SEARCH to FIND if you want to make it case sensitive.

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: Conditional Formatting to Highlight lines that don't contain certain info

    Also, I'd like to recommend NOT using conditional formatting to highlight values with the intention of Filtering them afterwards.

    Instead, just put the formula in a cell and let it return True or False.
    Then filter based on the True/False.

    You can still conditional format based on the True/False of those cells.

+ 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] how to highlight through conditional formatting
    By edunne in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-26-2014, 04:53 AM
  2. conditional formatting - Highlight whole row...
    By The Boosh! in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-24-2011, 06:14 AM
  3. how to highlight a row using conditional formatting ?
    By ziva770 in forum Excel General
    Replies: 5
    Last Post: 11-27-2010, 01:30 PM
  4. Conditional formatting, highlight if A:C > E
    By Lithium78 in forum Excel General
    Replies: 3
    Last Post: 04-15-2010, 09:45 AM
  5. Replies: 2
    Last Post: 08-16-2009, 06:16 PM

Tags for this Thread

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