+ Reply to Thread
Results 1 to 27 of 27

Find Duplicates in Groups of Rows

  1. #1
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Find Duplicates in Groups of Rows

    Hello All,

    First and foremost, my apologies if I am asking a question that has been asked once before. I have searched for this in the forum and cannot find an answer.

    My Question:

    I am trying to search for duplicate values within row groupings. I have hundreds of rows that need to be searched for duplicates, and am requiring that that we are ONLY searching a grouping of rows for dups.

    See attached. Let me know if clarification is needed!

    Attachment 370251

    Thank you!

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Find Duplicates in Groups of Rows

    Unfortunately, your attachment did not seem to upload correctly. Assuming your data starts in cell A1 and populates down, through column A, try this formula in B1:

    Please Login or Register  to view this content.
    And drag down. Note that you will have to adjust the range to fit your data accordingly. This will tell you which cells contain duplicate data.

    Hope this helps!
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Find Duplicates in Groups of Rows

    Sorry! I have reuploaded the attachment and this time I've included a pic that helps outline what i'm looking for!

    Cucumber should NOT show up as a duplicate as it is in a separate row grouping. Turkey and Tomato should come up as duplicates!

    Is there a way for it to just highlight the duplicate instead of replacing the value? That is what i am going for.

    See pic

    2015-01-13 15_54_23-Microsoft Excel - report (1).xlsx.png
    Last edited by morerockin; 01-13-2015 at 04:57 PM.

  4. #4
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Find Duplicates in Groups of Rows

    $5 American US dollars to someone who can bring 100% resolution!

  5. #5
    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
    53,051

    Re: Find Duplicates in Groups of Rows

    morerockin, we have a commercial services forum where you can pay to get help

    Also, Please upload a sample of your workbook, not a picture of your data. Pictures are pretty much impossible to edit, and no-one wants to re-type your data for you
    Also, not all members can upload picture files (Company firewalls and stuff)

    Your workbook should show a small desensitized example of the data you are working with and a manual mockup of the expected results.
    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

  6. #6
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: Find Duplicates in Groups of Rows

    Place this in C2 and drag down. It will show you where the duplicates appear in column B. Note too that you will have to change the formula setting to automatic calculation.

    Please Login or Register  to view this content.

  7. #7
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,944

    Re: Find Duplicates in Groups of Rows

    Pls attach sample file with desired result (How your output will be)
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  8. #8
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find Duplicates in Groups of Rows

    This will identify duplicates in each fridge:

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This is similar to msg #6.......Take you choice.

    Here is another way:

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by newdoverman; 01-13-2015 at 05:26 PM.
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

  9. #9
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Find Duplicates in Groups of Rows

    Hey guys,

    I want to confirm that the above works. I have one more caveat. I have found duplicates that have been marked for deletion by my transaction team.

    See attached Book2.xlsx

    So, I am trying to figure out a way for the Duplicate value to NOT appear in column D when there is an L in column E.

    Let me know if I can clarify.

  10. #10
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find Duplicates in Groups of Rows

    Enter in D2 and fill down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Maybe even this if there are conditions that I don't know about. This checks that column D would return TRUE AND there is an L in column E. This might not be necessary though.

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Last edited by newdoverman; 02-05-2015 at 05:52 PM.

  11. #11
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Wink Re: Find Duplicates in Groups of Rows

    I cannot get these to work . . duplicates are now showing up in places where duplicates are not supposed to be. But I realize I did a poor job of explaining the issue.

    This pic should help.

    2015-02-05 17_36_23-Microsoft Excel - Book2.xlsx.png

    See the example workbook. Book2.xlsx

    I need the formula to identify duplicates in Column C for each project grouping (column A) by determining if there are 2 or more of the same product ID that has NOT been marked for deletion. I apologize in advance for this request. If anyone is in the TN area, I'll take you out for a frosty bier.
    Last edited by morerockin; 02-05-2015 at 06:55 PM.

  12. #12
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find Duplicates in Groups of Rows

    These formulae I have tested in your new sample workbook and the appear to work. These formula include the data in column B:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    OR

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This looks like an expanding list of data so I converted the list to a table. This allows the formulae to expand the ranges as you add data.

    I have included both formulae in the example file.
    Attached Files Attached Files

  13. #13
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Find Duplicates in Groups of Rows

    Newdoverman, I revised my last post while you posted a new one. I realize I did a poor job of explaining the issue.

    This pic should help.

    2015-02-05 17_36_23-Microsoft Excel - Book2.xlsx.png

    See the example workbook.Book2.xlsx

    I need the formula to identify duplicates in Column C for each project grouping (column A) by determining if there are 2 or more of the same product ID that has NOT been marked for deletion. I apologize in advance for this request. If anyone is in the TN area, I'll take you out for a frosty bier.

  14. #14
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find Duplicates in Groups of Rows

    I have copied your new data into the last workbook that I uploaded. As I understand the problem, the workbook is working properly. All items marked with an L have the "TRUE" removed as per your earlier request.

    I must admit that I am really confused as to what you are wanting. All the TRUE values in D are duplicates. I have made it so that if there is a TRUE and an L is entered in Column E the TRUE is taken out as you instructed in message 9.
    Attached Files Attached Files
    Last edited by newdoverman; 02-05-2015 at 07:31 PM.

  15. #15
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Find Duplicates in Groups of Rows

    Quote Originally Posted by newdoverman View Post
    I have copied your new data into the last workbook that I uploaded. As I understand the problem, the workbook is working properly. All items marked with an L have the "TRUE" removed as per your earlier request.

    I must admit that I am really confused as to what you are wanting. All the TRUE values in D are duplicates. I have made it so that if there is a TRUE and an L is entered in Column E the TRUE is taken out as you instructed in message 9.
    Hello newdoverman,

    I realize I am not communicating my issue well, so here is another picture.

    2015-02-05 21_44_56-Microsoft Excel - Book2 - ndmV2.xlsx.png

    My reason for making this request is because it is not a true duplicate if in our system if it has been deleted per the "L" in column E. I have to have a way to scrub for true duplicates.

    I am so sorry that I am a bonehead!

  16. #16
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find Duplicates in Groups of Rows

    I really don't understand why you need 2 deleted after L applied to other deleted in order to mark deleted but this seems to do that.
    Attached Files Attached Files

  17. #17
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Find Duplicates in Groups of Rows

    Internet+High+Five.+Join+the+high-fivers.+Thumbs_4a7b41_3281983.jpg

    SOLVED!!!!!!!!!!!!!!!!!! THANKS Newdoverman!!

  18. #18
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find Duplicates in Groups of Rows

    LOL. Thanks for the feedback.

    I hope that this solution works out for you. This has to be one of the stranger problems that I have worked on.


  19. #19
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Find Duplicates in Groups of Rows

    Hey guys,

    I have another pesky request.

    In addition to my previous posts about finding a duplicate value based only on non deletion values, I have a new caveat to introduce.

    See attached: Book2 - ndmV3 (1).xlsx

    I have added new rows to the last sheet that Newdoverman uplaoded. Rows 28-43. I now need Column F to return a "duplicate" if Column C contains more than one of the non deleted (look for deletion value in column E)product ID's found in column H.

    Example:

    2015-02-20 10_31_22-Microsoft Excel - Book2 - ndmV3 (1).xlsx.png

    Any help is appreciated.

  20. #20
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find Duplicates in Groups of Rows

    I'm getting "twisted up" in the criteria. Could you in column G give manually what you expect the results to be? The requirements for duplicate identification in column E are already complicated and your new requirement has me wondering exactly what is required.

  21. #21
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Find Duplicates in Groups of Rows


  22. #22
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find Duplicates in Groups of Rows

    I can't get even close to what you are indicating what you want. The criteria as I understand them are contradictory and just don't work together.

  23. #23
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Find Duplicates in Groups of Rows

    Quote Originally Posted by newdoverman View Post
    I can't get even close to what you are indicating what you want. The criteria as I understand them are contradictory and just don't work together.
    I have an idea. Could we do a formula in Column C the the following Product ID's to "Engineer Services" IF it matched "HYBRIDENGINE", "Engineer INST", or "ENG SVC 2". If we did that, the previous formula that you created for me (previous to today) should work, right?

    See example.

    2015-02-20 13_07_02-Microsoft Excel - Book2 - ndmV3 (1).xlsx.png

  24. #24
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Find Duplicates in Groups of Rows

    Desperate bump

  25. #25
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find Duplicates in Groups of Rows

    I inserted a column D and used a formula with SUBSTITUTE and substituted all the terms in column C that matched those terms in your message. I then amended the formulae in the columns that addressed column C and changed the references to column D and this is the result.
    Attached Files Attached Files

  26. #26
    Forum Contributor
    Join Date
    09-21-2014
    Location
    USA
    MS-Off Ver
    2010
    Posts
    449

    Re: Find Duplicates in Groups of Rows

    Hey newdoverman,

    That worked. Now I am having the issue of being able to point out the duplicates that do NOT have a deletion value in column G. I tried the formula that you gave me previously and works on my other sheets, but it will not work on this one.

    See Attached Book1.xlsx

    I need column F to return "Duplicate" IF column E has 2 or more duplicate values that do NOT have a duplicate value in column G. Column H is an example of what the final result should be.

    I will be dumping this into a sheet that has 36,000 rows.

  27. #27
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: Find Duplicates in Groups of Rows

    This appears to be what you require in F2 and filled down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The red text was what I found to be missing and required for the formula to work. Without the text in red, the formula was looking for BLANK cells in column G.

+ 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. Macro To Find Rows With Duplicates, Compare Cells, And Delete Rows. - Excel
    By Kwame001 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-26-2013, 10:41 AM
  2. [SOLVED] Find duplicates rows, sum cells then remove duplcate rows
    By Wagstaff in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 09-22-2013, 09:37 AM
  3. Replies: 13
    Last Post: 08-23-2011, 11:00 AM
  4. Fast way to find duplicates with 1,000,000 rows?
    By mikemeadeuk in forum Excel General
    Replies: 4
    Last Post: 08-09-2011, 06:26 PM
  5. Find Duplicates Over Series of Rows
    By scrumbag in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-27-2009, 12:24 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