+ Reply to Thread
Results 1 to 5 of 5

Highlight the duplicated numbers

  1. #1
    Registered User
    Join Date
    02-15-2014
    Location
    Greece
    MS-Off Ver
    Excel 2007
    Posts
    19

    Highlight the duplicated numbers

    Hello

    I need to compare two columns (ex. A and B) and to highlight the duplicated numbers, the problem is that when I use the duplicate command, it compares also the numbers of the same column.
    I upload a sample.
    Thank you
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,140

    Re: Highlight the duplicated numbers

    You could use this in L5, copied down:

    =IF(COUNTIF($K$5:$K$16,K5)*COUNTIF($M$5:$M$16,K5)>0,"YES","")

    and this in N5, copied down:

    =IF(COUNTIF($K$5:$K$16,M5)*COUNTIF($M$5:$M$16,M5)>0,"YES","")
    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 MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Highlight the duplicated numbers

    If coding will do ,Try this:-
    Data assumed to be in column"A" and column "C".
    Please Login or Register  to view this content.
    Regards Mick

  4. #4
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,656

    Re: Highlight the duplicated numbers

    Pl see attached file.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-15-2014
    Location
    Greece
    MS-Off Ver
    Excel 2007
    Posts
    19

    Re: Highlight the duplicated numbers

    Thank you very much again

+ 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 Format - Highlight a Cell in Sheet 2 if Duplicated from Sheet 1
    By sliesneekr in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-26-2014, 09:16 AM
  2. Need to highlight a row that is duplicated
    By russellhiedi in forum Excel General
    Replies: 8
    Last Post: 11-24-2012, 01:13 PM
  3. Searching for duplicated numbers
    By ridnickhick in forum Excel General
    Replies: 5
    Last Post: 07-26-2012, 06:39 PM
  4. [SOLVED] Excel 2007 Highlight if value is not duplicated
    By grotz497 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-26-2012, 12:33 PM
  5. Using Vlookup for duplicated numbers
    By fodejimi in forum Excel General
    Replies: 5
    Last Post: 05-12-2011, 09:10 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