+ Reply to Thread
Results 1 to 4 of 4

Conditional formatting to highlight cells of different values

  1. #1
    Registered User
    Join Date
    05-01-2017
    Location
    america
    MS-Off Ver
    MS 16
    Posts
    11

    Conditional formatting to highlight cells of different values

    This is a question regarding conditional formatting (I think). I am trying to compare two different sets of data in columns with different lengths. I would like to only highlight the cells in column b if they differ from col m (pretty much comparing the data to a master list). In the attached example there is a conditional format I found from this website, but it highlights the same and not different values.

    Please see attached example for more details. Thanks!
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Conditional formatting to highlight cells of different values

    If you just want to reverse the highlight so it picks out the cells that are NOT in the list in column M, just change the ">" sign in the CF formula to an "=". I don't see a need for the SUM, either, so:

    =AND(LEN(TRIM($B5))>0,COUNTIF($M$5:$M$10,"*"&$B5&"*")=0)

    I would also advise you to double check the range that the CF rule applies to - in your sample, it applies to a broken range rather than just B5:B21
    Attached Files Attached Files
    Last edited by CAntosh; 05-11-2017 at 04:37 PM.
    If your problem has been solved, please use "Thread Tools" to mark the thread as "Solved".

    If you're grateful for this site's existence and would like to contribute to the community, please consider posting something hilarious in our joke thread:
    https://www.excelforum.com/the-water...ke-thread.html

  3. #3
    Registered User
    Join Date
    05-01-2017
    Location
    america
    MS-Off Ver
    MS 16
    Posts
    11

    Re: Conditional formatting to highlight cells of different values

    Thanks for the help, this does exactly what I wanted! I never use conditional formatting so I am not familiar with it. ps thanks for the heads up regarding the range issue, all the best.

  4. #4
    Forum Expert
    Join Date
    05-20-2015
    Location
    Chicago, Illinois
    MS-Off Ver
    2016
    Posts
    2,103

    Re: Conditional formatting to highlight cells of different values

    Glad I could help! CF is its own little world; it isn't quite as intuitive as the regular formula process, so it give it time and practice, it takes some getting used to.

+ 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: 11-18-2014, 04:12 AM
  2. Replies: 4
    Last Post: 07-25-2014, 05:17 AM
  3. Replies: 3
    Last Post: 02-26-2014, 12:10 AM
  4. Replies: 3
    Last Post: 05-11-2013, 01:06 PM
  5. [SOLVED]Conditional formatting , highlight top 3 values help
    By Laur3l in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-01-2012, 11:37 AM
  6. Conditional Formatting - Highlight the Top 2 values
    By HeebieGeebie in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2012, 08:05 AM
  7. Replies: 1
    Last Post: 08-18-2010, 02:00 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