+ Reply to Thread
Results 1 to 2 of 2

identify dups and color

  1. #1
    Registered User
    Join Date
    02-24-2012
    Location
    florida
    MS-Off Ver
    Excel 2010
    Posts
    97

    identify dups and color

    good day,

    I'm trying to come up with a macros to identify duplicates in one column and match the second column code to ensure both codes match the duplicate number in column A, if it does not match then color.

    attached in a sample, I have no idea where to start

    Thanks
    Attached Files Attached Files

  2. #2
    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: identify dups and color

    This does not require a macro. I used conditional formatting. Here is how I interpreted your question:

    There are two columns of data. Values in the first column may be repeated. Normally we would expect that when a value in the first column is repeated, the corresponding values in the second column will also be repeated. If a case is found where the value in the second column occurs only once for a repeating value in the first column, highlight it.

    =AND(COUNTIF($A:$A,A1)>1,SUM(IF(A1&B1=A:A&B:B,1,0))=1)

    This formula first checks to see if the value in column A repeats. Then it checks to see if the value in column B corresponding to that value in column A occurs only once. It does this by looking at the number of combinations of A&B.

    File attached.
    Attached Files Attached Files
    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. Replies: 1
    Last Post: 07-15-2015, 04:52 PM
  2. Identify color cell and apply formula
    By bmbalamurali in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-05-2015, 12:17 PM
  3. Excel 2007 : Identify multiple duplicates and color
    By dettrix in forum Excel General
    Replies: 2
    Last Post: 06-17-2012, 06:38 AM
  4. identify cell color
    By Sisu36 in forum Excel General
    Replies: 1
    Last Post: 05-07-2011, 07:29 AM
  5. identify found cell by changing color
    By ClearConcept in forum Excel General
    Replies: 2
    Last Post: 10-30-2009, 03:26 PM
  6. Need IF input and color identify solution
    By PAPSTISY in forum Excel General
    Replies: 19
    Last Post: 10-20-2008, 06:02 PM
  7. [SOLVED] How do I identify cell color for comparison?
    By Jackyl71 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-27-2005, 04:05 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