+ Reply to Thread
Results 1 to 12 of 12

Excel is highlighting incorrect duplicate values

  1. #1
    Registered User
    Join Date
    07-18-2020
    Location
    Pakistan
    MS-Off Ver
    2013
    Posts
    5

    Excel is highlighting incorrect duplicate values

    Hi fellow excel users, I want to highlight duplicate values in column A (i.e created by joining column B, C and D). However excel is highlighting incorrect duplicates (have a look at attachment for review). Any help in this regard would be appreciated. Looking forward to your solutions. Thanks
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    01-17-2021
    Location
    Omaha, NE
    MS-Off Ver
    office 2016
    Posts
    211

    Re: Excel is highlighting incorrect duplicate values

    dont see any that are duplicates. col a is combo of all other cols. i sorted on col c, then b, then d. did not see duplicates. what are 2 that are bad?

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Excel is highlighting incorrect duplicate values

    Quote Originally Posted by omahaNative_1023 View Post
    dont see any that are duplicates. col a is combo of all other cols. i sorted on col c, then b, then d. did not see duplicates. what are 2 that are bad?
    There are actually plenty of duplicates, try a test in a helper column using =COUNTIF($A$2:A2,A2)

    Cant figure out (yet) why it is highlighting non-dups though
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Banned User!
    Join Date
    01-17-2021
    Location
    Omaha, NE
    MS-Off Ver
    office 2016
    Posts
    211

    Re: Excel is highlighting incorrect duplicate values

    oh i did not see any. i will check.

  5. #5
    Banned User!
    Join Date
    01-17-2021
    Location
    Omaha, NE
    MS-Off Ver
    office 2016
    Posts
    211

    Re: Excel is highlighting incorrect duplicate values

    are you sure that is right? i just check and i find no numbers in col a that are duplicate. see upload i put. all highlight are correct.
    Attached Files Attached Files

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Excel is highlighting incorrect duplicate values

    Hmmm you are correct, but in the orig file, my formula still shows multiples using countif()...
    A
    B
    C
    D
    E
    F
    1
    A (B&C&D) B C D COUNTIF($A$2:A2,A2)
    2
    99743228591205916470
    9974322859
    470
    1205916
    1
    3
    99743228591205916480
    9974322859
    480
    1205916
    2
    4
    99743228591205916490
    9974322859
    490
    1205916
    3
    5
    99743228591205916500
    9974322859
    500
    1205916
    4
    6
    99743228591205916510
    9974322859
    510
    1205916
    5
    7
    99743228591205916520
    9974322859
    520
    1205916
    6
    8
    99743228591205916530
    9974322859
    530
    1205916
    7
    9
    99743228591601024460
    9974322859
    460
    1601024
    1
    10
    99743228591601024480
    9974322859
    480
    1601024
    2
    11
    99743228591601024510
    9974322859
    510
    1601024
    3
    12
    99743228591172492510
    9974322859
    510
    1172492
    1
    13
    99743759221205916300
    9974375922
    300
    1205916
    1


    I need to dig a bit deeper on this.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Excel is highlighting incorrect duplicate values

    In fact, it looks even worse when I do it this way...
    A
    B
    C
    D
    E
    F
    1
    A (B&C&D) B C D COUNTIF($A$2:A372,A2)
    2
    99743228591205916470
    9974322859
    470
    1205916
    7
    3
    99743228591205916480
    9974322859
    480
    1205916
    7
    4
    99743228591205916490
    9974322859
    490
    1205916
    7
    5
    99743228591205916500
    9974322859
    500
    1205916
    7
    6
    99743228591205916510
    9974322859
    510
    1205916
    7
    7
    99743228591205916520
    9974322859
    520
    1205916
    7
    8
    99743228591205916530
    9974322859
    530
    1205916
    7
    9
    99743228591601024460
    9974322859
    460
    1601024
    3
    10
    99743228591601024480
    9974322859
    480
    1601024
    3
    11
    99743228591601024510
    9974322859
    510
    1601024
    3
    12
    99743228591172492510
    9974322859
    510
    1172492
    1
    13
    99743759221205916300
    9974375922
    300
    1205916
    1

  8. #8
    Banned User!
    Join Date
    01-17-2021
    Location
    Omaha, NE
    MS-Off Ver
    office 2016
    Posts
    211

    Re: Excel is highlighting incorrect duplicate values

    fd,

    you should not use COUNTIF($A$2:A372,A2) or COUNTIF($A$2:A2,A2). just give full range. not sure why you do that. this really look weird to me:

    $A$2:A2,A2

    i just use what is normal and cover everything

    COUNTIF(A:A,A2)

  9. #9
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,078

    Re: Excel is highlighting incorrect duplicate values

    The problem is that Xl is only looking at the 1st 15 digits, which is why it's showing lots of duplicates when there are only two.
    Select A2:A372 & use this formula
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,036

    Re: Excel is highlighting incorrect duplicate values

    or use this:

    =COUNTIF($A$2:$A$372,"*"&$A2)>1

    or

    =SUMPRODUCT(--($A$2:$A$372=$A2))>1
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  11. #11
    Registered User
    Join Date
    07-18-2020
    Location
    Pakistan
    MS-Off Ver
    2013
    Posts
    5

    Re: Excel is highlighting incorrect duplicate values

    Thank you, you are right, excel looks for 1st 15 digits.

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,933

    Re: Excel is highlighting incorrect duplicate values

    Quote Originally Posted by omahaNative_1023 View Post
    fd,

    you should not use COUNTIF($A$2:A372,A2) or COUNTIF($A$2:A2,A2). just give full range. not sure why you do that. this really look weird to me:

    $A$2:A2,A2

    i just use what is normal and cover everything

    COUNTIF(A:A,A2)
    While using a full-column range is not incorrect, and is often a good approach to take, sometimes using just a specific range can be a better option (for instance there may be other tables below that you need to exclude, or - in this case - I wanted to make sure I was using just that range of data)

    As far as using $A$2:A2,A2 is concerned, that is a useful technique to use if you want to show a progressive count of duplicates - I was trying to see where it was picking up duplicates as the formula was copied down.

+ 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] Highlighting all duplicate values except first instance
    By Ankka in forum Excel General
    Replies: 5
    Last Post: 05-22-2014, 04:39 AM
  2. Highlighting Duplicate Values within Sheets
    By yakabod in forum Excel General
    Replies: 5
    Last Post: 06-18-2013, 11:21 AM
  3. [SOLVED] Alternate highlighting of duplicate values
    By exarranum in forum Excel General
    Replies: 2
    Last Post: 02-20-2013, 09:25 AM
  4. [SOLVED] Incorrect Duplicate Values
    By InnesMcc in forum Excel General
    Replies: 1
    Last Post: 05-02-2012, 12:37 PM
  5. Highlighting Duplicate Values in a column
    By Flower R in forum Excel General
    Replies: 2
    Last Post: 12-07-2008, 01:16 PM
  6. highlighting duplicate values
    By Alice in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-10-2006, 02:45 AM
  7. [SOLVED] Highlighting duplicate values in a column
    By Jeff in forum Excel General
    Replies: 3
    Last Post: 04-08-2005, 11:06 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