+ Reply to Thread
Results 1 to 11 of 11

Help finding duplicates

  1. #1
    Registered User
    Join Date
    03-13-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    21

    Help finding duplicates

    Sample - Copy.xlsx

    Hi all, I'm using Excel 2013, I have a table that has 116,000 rows , The first Column is repeated numbers for wells, the second column is months of production. Now my problem is that there is 2600 months that is repeated for the same well numbers. How would I highlight them or copy them to a different file?
    For example in the next table, I'm trying to find a function to find the bold cells , please note that the letters are the first column and the numbers are the second column.

    A 1
    A 2
    A 3
    A 3

    A 4
    B 1
    B 2
    B 3
    B 4
    B 4
    C 1
    C 1
    C 2
    C 2

    C 3
    Thank you very much for any help!
    Last edited by gogz2005; 03-13-2014 at 04:45 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Help finding duplicates

    Hi,

    Would you upload the workbook and manually add the results you expect clearly identifying which cells are results.
    There is a contradiction in your question

    "The first Column is unique numbers" & "please note that the letters are the first column"
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    03-13-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    21

    Re: Help finding duplicates

    Sorry Richard, I meant they are repeated numbers not unique numbers. I attached an excel sample for your review in the first line , please note that I want to find the highlighted cells.

  4. #4
    Registered User
    Join Date
    06-18-2013
    Location
    Calgary, Canada
    MS-Off Ver
    Excel 2010
    Posts
    17

    Re: Help finding duplicates

    I would use concatenate and then remove duplicates function on the column I concatenated.



    Edit: oops, read that wrong. I thought you wanted them deleted.
    Last edited by Shift-4; 03-13-2014 at 03:53 PM.

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

    Re: Help finding duplicates

    If where you show bold the whole row is bold, then you can use the Find and Select. In the Find, leave the Find What blank and click on Format (down diamond) and select BOLD from the font options. Click FIND ALL.

    A small window will open with all the items that were found. Select all in that window using Ctrl + A all the bold font in the worksheet will be selected. Close the Find and Select dialogue and before doing anything else Ctrl + C to copy the selected areas.

    Create a new worksheet within the same workbook and Paste. Only the Bold entries will be pasted. If you try to copy directly to another workbook, the whole range is copied and not just the selected area copied. Export the new worksheet to the new workbook by right clicking the tab of the new worksheet and click on Move or Copy....follow the prompts.
    <---------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

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

    Re: Help finding duplicates

    Based on your sample, try this.

    In C1, copied down...
    =COUNTIFS($A$1:$A$61,A1,$B$1:$B$61,B1)

    Then you could apply filters and uncheck "1", you would be left with all the duplicates. You can then either copy them elsewhere, delete them or do what you want.

    If you want to keep 1 of the duplicates and just show all the 2nd, 3rd duplicates etc, then change the formula to...
    =COUNTIFS($A$1:A1,A1,$B$1:B1,B1)
    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

  7. #7
    Registered User
    Join Date
    03-13-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    21

    Re: Help finding duplicates

    Quote Originally Posted by newdoverman View Post
    If where you show bold the whole row is bold, then you can use the Find and Select. In the Find, leave the Find What blank and click on Format (down diamond) and select BOLD from the font options. Click FIND ALL.

    A small window will open with all the items that were found. Select all in that window using Ctrl + A all the bold font in the worksheet will be selected. Close the Find and Select dialogue and before doing anything else Ctrl + C to copy the selected areas.

    Create a new worksheet within the same workbook and Paste. Only the Bold entries will be pasted. If you try to copy directly to another workbook, the whole range is copied and not just the selected area copied. Export the new worksheet to the new workbook by right clicking the tab of the new worksheet and click on Move or Copy....follow the prompts.
    Actually, I'm sorry but my post was misleading I think. What I meant is that I needed the formula to make those entries bold or highlight them!
    Anyway i think I found a solution, that I will merge those two columns and then highlight the duplicate ones and then clean them in a different sheet.

    Thank you everyone for your help.

  8. #8
    Registered User
    Join Date
    03-13-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    21

    Re: Help finding duplicates

    That's a really good solution , I can merge those two columns and then highlight the duplicates by conditional formatting.
    Thank you very very much!

  9. #9
    Registered User
    Join Date
    03-13-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    21

    Re: Help finding duplicates

    Quote Originally Posted by Shift-4 View Post
    I would use concatenate and then remove duplicates function on the column I concatenated.



    Edit: oops, read that wrong. I thought you wanted them deleted.
    That's a really good solution , I can merge those two columns and then highlight the duplicates by conditional formatting.
    Thank you very very much!

  10. #10
    Registered User
    Join Date
    03-13-2014
    Location
    United States
    MS-Off Ver
    Excel 2013
    Posts
    21

    Re: Help finding duplicates

    Quote Originally Posted by FDibbins View Post
    Based on your sample, try this.

    In C1, copied down...
    =COUNTIFS($A$1:$A$61,A1,$B$1:$B$61,B1)

    Then you could apply filters and uncheck "1", you would be left with all the duplicates. You can then either copy them elsewhere, delete them or do what you want.

    If you want to keep 1 of the duplicates and just show all the 2nd, 3rd duplicates etc, then change the formula to...
    =COUNTIFS($A$1:A1,A1,$B$1:B1,B1)

    It worked like a dream, Thank you very much. You are awesome.
    Last edited by gogz2005; 03-13-2014 at 04:45 PM.

  11. #11
    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,939

    Re: Help finding duplicates

    Happy to help

+ 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: 2
    Last Post: 12-27-2013, 09:24 AM
  2. Finding Duplicates
    By kumark in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-06-2013, 03:37 AM
  3. Finding Duplicates
    By rg1210 in forum Excel General
    Replies: 3
    Last Post: 11-29-2011, 11:59 PM
  4. Finding Max Value in Duplicates
    By Mr.Higgins in forum Excel General
    Replies: 3
    Last Post: 07-24-2009, 12:08 PM
  5. [SOLVED] Finding duplicates
    By Ted Metro in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-21-2005, 03:15 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