+ Reply to Thread
Results 1 to 15 of 15

How to find duplicates?

  1. #1
    Registered User
    Join Date
    07-18-2018
    Location
    London
    MS-Off Ver
    2013
    Posts
    11

    How to find duplicates?

    Hello,

    I have a horizontal rows of 5 numbers and I want to find whether there are any duplicate numbers in the rows and if all 10 numbers have appeared before in another row regardless of which position they are in.

    For example:

    1 2 3 4 5
    2 3 4 1 5

    I would want it to show that this is a duplicate.

    And example:

    1 2 3 4 5
    2 0 9 4 8

    I would want it to show that numbers 2 and 4 are duplicates.

    Many thanks,
    Cheers!

  2. #2
    Forum Contributor
    Join Date
    11-02-2011
    Location
    Rugby, England
    MS-Off Ver
    Office 365
    Posts
    846

    Re: How to find duplicates?

    Highlight them all, go to conditional formatting, highlight cells, duplicate values.

    From there you can customise your end result with colours, font types etc.
    hope this helps

  3. #3
    Registered User
    Join Date
    07-18-2018
    Location
    London
    MS-Off Ver
    2013
    Posts
    11

    Re: How to find duplicates?

    Thanks for you reply!

    But is there a way to show that it's a duplicate in another cell? I don't want it all highlighted.
    Also, I want it to show not just 1 number duplicate but a minimum of 2 numbers in the row duplicated regardless of which column they are in.

  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
    80,916

    Re: How to find duplicates?

    Could you please provide a sample workbook? It's hard to visualise exactly what you want.

    1. Make sure that your sample data are REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as they cause lots of problems.

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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.

  5. #5
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: How to find duplicates?

    Suppose your data in "A2" to "E3"
    In "G2"
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    copy paste across.
    I think this requires you.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  6. #6
    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
    80,916

    Re: How to find duplicates?

    I don't think it does, AVK. The OP seems to be asking for the cells to be highlighted. Let's wait for the sample workbook I've requested - it may be conditional formatting that is required.

  7. #7
    Registered User
    Join Date
    07-18-2018
    Location
    London
    MS-Off Ver
    2013
    Posts
    11

    Re: How to find duplicates?

    Thanks for the advice!
    I have attached the sample workbook~

    When I say 2+ same numbers in a row I mean horizontally not one after the other.
    Attached Files Attached Files
    Last edited by charmaine143; 07-20-2018 at 05:33 AM.

  8. #8
    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
    80,916

    Re: How to find duplicates?

    Your sample data is incorrect - you have highlighted 41 instead of 36 - but it shows us what you are after - thank you.

  9. #9
    Registered User
    Join Date
    07-18-2018
    Location
    London
    MS-Off Ver
    2013
    Posts
    11

    Re: How to find duplicates?

    Yes, thanks for your correction.

  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,056

    Re: How to find duplicates?

    Why does 7 not count as a duplicate?

    =COUNTIF($B$6:$B$15,B6)>1 used for conditional formatting.
    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-2018
    Location
    London
    MS-Off Ver
    2013
    Posts
    11

    Re: How to find duplicates?

    Because I only want the duplicates horizontally by rows.
    So 7 would only be a duplicate if for example #22 was also in row 6 making row 5 and 6 both duplicates.
    Sorry if I explained it poorly.

  12. #12
    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,056

    Re: How to find duplicates?

    You've lost me!!! I don't see why 10 & 36 are duplicates and 7 isn't...

  13. #13
    Registered User
    Join Date
    07-18-2018
    Location
    London
    MS-Off Ver
    2013
    Posts
    11

    Re: How to find duplicates?

    Because it needs to be 2 or more numbers the same horizontally to be duplicate.

  14. #14
    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,056

    Re: How to find duplicates?

    OK. Understand now...

  15. #15
    Registered User
    Join Date
    07-18-2018
    Location
    London
    MS-Off Ver
    2013
    Posts
    11

    Re: How to find duplicates?

    can anyone help me please?
    Thanks!

+ 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] Macro to find duplicates, concatenate cells, then delete old duplicates (2)
    By cny in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-22-2016, 06:05 AM
  2. Macro to find duplicates, concatenate cells, then delete old duplicates
    By givemepuppies in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 03-04-2016, 02:43 AM
  3. [SOLVED] Macro to find duplicates, concatenate Unique Values, then delete old duplicates
    By lesoies in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-17-2013, 04:32 PM
  4. [SOLVED] Find duplicates, concatenate into different column, sum and delete duplicates
    By rosannang in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-17-2013, 11:23 AM
  5. Replies: 5
    Last Post: 02-28-2012, 02:52 PM
  6. Deleting Duplicates-find out a way to delete duplicates
    By sighlent1 in forum Excel General
    Replies: 2
    Last Post: 04-19-2011, 10:17 AM
  7. Replies: 1
    Last Post: 07-13-2010, 10:09 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