+ Reply to Thread
Results 1 to 6 of 6

Conditional formating where cell value does not contain

  1. #1
    Registered User
    Join Date
    11-04-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    3

    Conditional formating where cell value does not contain

    I have a column which lists emails and I want to highlight any email that does not contain a specific domain.

    I started to make rules to highlight those addresses that were specifically @msn.com and @gmail.com, when I thought that it would be easier to just say highlight everything that is not @testers.com

    There does not seem to be an option for where not equal to in conditional formatting or is there?

  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
    52,933

    Re: Conditional formating where cell value does not contain

    Hi and welcome to the forum

    maybe try something like this in your rule...
    =ISERROR(SEARCH("@testers.com",A1,1))
    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
    Registered User
    Join Date
    11-04-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Conditional formating where cell value does not contain

    hmmm...

    That has caused everything to be highlighted.

    I would like to highlight everything that does not have @tester.com

    I would like to do something like, highlight if right trim string not equal to "@testers.com"

  4. #4
    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
    52,933

    Re: Conditional formating where cell value does not contain

    yes I understand what you want

    When I make CF rules that may be a little tricky, I make them IN the worksheet, next to the data, the formula would be the same as if created in the CF window, just easier to do. in each case, you are looking for a TRUE answer to trigger the CF rule.

    Based on that, I created this table...

    aabbcc...FALSE --->=ISERROR(SEARCH("aa",A1,1))
    aaccdd...FALSE --->=ISERROR(SEARCH("aa",B,1))
    eeddff...TRUE ---->=ISERROR(SEARCH("aa",C1,1))
    ffgghh...TRUE ---->=ISERROR(SEARCH("aa",D1,1))

    Did you use that in a new Conditional Formatting rule, using "use formula"?

    edit: take a look at the attached
    Attached Files Attached Files
    Last edited by FDibbins; 11-04-2013 at 04:03 PM.

  5. #5
    Registered User
    Join Date
    11-04-2013
    Location
    Denver, CO
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Conditional formating where cell value does not contain

    Ok great!

    I was being a little dense there, it really helped to see the example sheet, thanks for attaching that.

    Your a wizard!

    Thank you sooo much!

  6. #6
    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
    52,933

    Re: Conditional formating where cell value does not contain

    you'r welcome, and thanks for the kind words . If this answered your question, please take a moment to mark the thread as "solved" - it helps keep things neat and tidy lol, and consider adding the reputation to those that helped (see points 2 & 3 below my 1st post to 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. Replies: 4
    Last Post: 01-23-2014, 10:14 AM
  2. More than 3 conditional formating per cell
    By Spencinator in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-31-2008, 09:36 AM
  3. Conditional formating, using other cell
    By tkuia in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-26-2007, 11:29 AM
  4. Conditional Formating another cell
    By Darin Kramer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-20-2006, 11:10 AM
  5. Replies: 3
    Last Post: 03-30-2006, 10:02 AM

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