+ Reply to Thread
Results 1 to 3 of 3

Conditional Formatting Query

  1. #1
    Registered User
    Join Date
    03-21-2019
    Location
    UK
    MS-Off Ver
    2016
    Posts
    1

    Conditional Formatting Query

    I need help comparing two columns for duplicates and unique values. I know I can do this using conditional formatting however my issue is that for example in column 1 I have duplicates so when I apply the conditional formatting it is picking the duplicates up in the same column however I only want to pick up the duplicates against the two columns. E.g.

    Column 1 could have:
    Red
    Yellow
    Red
    Green

    Column 2 could have:
    Yellow
    Blue
    Purple
    Green

    When I apply the conditional formatting it picks up Red as a duplicate as it appears twice in column one but I only want to find duplicates comparing the two columns so I would like it to pick up: Yellow and Green.

    How can I achieve this?

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Conditional Formatting Query

    Hi, and welcome to the forum.

    This seems to be a much simplified example and probably doesn't represent the size of your actual data. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length, or additional columns/rows and other stuff which is important but hasn't been mentioned.

    Therefore upload your real workbook (or at least a cut down copy), and manually add the results you expect to see.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,721

    Re: Conditional Formatting Query

    Welcome to the Forum TriciaW!

    Let's say column 1 is column A and column 2 is column B.

    These rules will show if a value in one column is found in the other column:

    Use a conditional formatting rule applied to column A that says:
    =COUNTIF(B:B,A1)>0

    Use a conditional formatting rule applied to column B that says:
    =COUNTIF(A:A,B1)>0
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

+ 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] Conditional Formatting query
    By kvasir01 in forum Excel General
    Replies: 4
    Last Post: 09-03-2018, 03:51 PM
  2. Yet another conditional formatting query
    By GerryExcel in forum Excel General
    Replies: 9
    Last Post: 01-03-2016, 07:37 PM
  3. [SOLVED] Conditional Formatting Query
    By eyelehnski in forum Excel General
    Replies: 8
    Last Post: 11-19-2014, 02:21 AM
  4. Conditional Formatting query
    By masond3 in forum Excel General
    Replies: 2
    Last Post: 07-06-2012, 02:41 AM
  5. Conditional Formatting Query
    By Chris Mizon in forum Excel General
    Replies: 2
    Last Post: 03-13-2012, 08:42 AM
  6. Conditional Formatting query
    By AndyTH in forum Excel General
    Replies: 1
    Last Post: 02-05-2010, 09:26 AM
  7. Conditional Formatting Query
    By danarlington in forum Excel General
    Replies: 2
    Last Post: 08-12-2009, 01:52 PM

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