+ Reply to Thread
Results 1 to 4 of 4

Conditional formatting: highlight cells that does not match (with criteria)

  1. #1
    Registered User
    Join Date
    09-24-2018
    Location
    Singapore
    MS-Off Ver
    2017
    Posts
    16

    Exclamation Conditional formatting: highlight cells that does not match (with criteria)

    Hi

    Basically, I would like to know the function to enter in conditional formatting where it can highlight cells that does not match with other specified columns.

    I have attached a workbook and wtitten a description in there to better visualize it.

    Based on the example in the excel sheet, I've tried using this but it still does not return as per intended:

    =LOOKUP(6,1/((C$1:C1=C2)*(H$1:H1=H2)),G$1:G1)<>F2

    Appreciate if I could get some help. Thanks
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,416

    Re: Conditional formatting: highlight cells that does not match (with criteria)

    CF Rule for I2:

    =AND(I2<>"NA",I2<>F2)

    Applies to:

    =$I$2:$I$5
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,935

    Re: Conditional formatting: highlight cells that does not match (with criteria)

    I don't see any kind of mistake in your conditional formatting formula. Did you apply it properly? Select I2:I5 the press Alt-O-D-New rule-Use a formula to determine which cells to format->put =LOOKUP(2,1/((C$1:C1=C2)*(H$1:H1=H2)),G$1:G1)<>F2 in formula -> choose format as your want then click on ok.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,416

    Re: Conditional formatting: highlight cells that does not match (with criteria)

    There is no need to repeat this formula in the CF rule - it's overkill (and duplicate processing). The data in the final column can be used to determine the CF colour.

+ 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. Conditional formatting - highlight border based on text match
    By vill in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-27-2018, 12:04 PM
  2. [SOLVED] Conditional Formatting - Highlight cell based on two criteria
    By HomerGuy in forum Excel General
    Replies: 3
    Last Post: 01-26-2015, 03:50 PM
  3. Replies: 5
    Last Post: 02-28-2014, 09:55 AM
  4. Replies: 5
    Last Post: 07-03-2013, 12:51 AM
  5. Replies: 5
    Last Post: 05-18-2013, 07:49 PM
  6. Conditional formatting highlight criteria
    By mcmuney in forum Excel General
    Replies: 9
    Last Post: 05-23-2011, 06:37 PM
  7. highlight match's without conditional formatting?
    By yorkshirewhite in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-04-2008, 06:19 AM

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