+ Reply to Thread
Results 1 to 9 of 9

Removing Duplicate Rows

  1. #1
    Registered User
    Join Date
    10-04-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2011
    Posts
    4

    Removing Duplicate Rows

    Hi,

    I am rather new to this but here goes:

    I have an Excel file that has 50,000 records in it. I need to remove duplicate rows from the file. For example, I need it to search a specific row, keep the first match and delete every match after that one.

    Is there an easy way to do this?

    Thank you for any and all help!

    Steve

  2. #2
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Removing Duplicate Rows

    Are you looking for entire rows that are exactly the same? select the total range and click on Remove Duplicates in the Data menu
    When I say semicolon, u say comma!

  3. #3
    Registered User
    Join Date
    10-04-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: Removing Duplicate Rows

    No, it is just one column in the row that would be identical

  4. #4
    Forum Contributor
    Join Date
    08-02-2013
    Location
    Wageningen, The Netherlands
    MS-Off Ver
    365
    Posts
    495

    Re: Removing Duplicate Rows

    ok
    could you upload a workbook? that would make helping you a lot easier

    btw, do you want the rows actually removed or is just appearing empty through a formula also ok?

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Removing Duplicate Rows

    I think that the suggestion in post #2 would work by selecting the one column to check for duplicates. Barring that, here is some VBA that does the same. With 50,000 rows, it will take several minutes to run, but it will remove duplicates.

    Please Login or Register  to view this content.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  6. #6
    Registered User
    Join Date
    10-04-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: Removing Duplicate Rows

    I attached a sample spreadsheet.

    I need to search Column B, find the first record, then remove all rows below that one till it comes across the next record. Then repeat this till it has gone through all of the records
    Attached Files Attached Files

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2404 Win 11 Home 64 Bit
    Posts
    23,855

    Re: Removing Duplicate Rows

    I used the following procedure as outlined by L-Drr:

    Highlight column B. On the Ribbon, select Data, Remove Duplicates, Expand Selection, Uncheck all columns except Column B. Click OK.

  8. #8
    Registered User
    Join Date
    10-04-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2011
    Posts
    4

    Re: Removing Duplicate Rows

    Thank you very much! You saved me hours of work.

  9. #9
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Removing Duplicate Rows

    Based on your last post in this thread, its apparent that you are satisfied with the solution(s) you've received and have solved your question, but you haven't marked your thread as "SOLVED". I will do it for you this time.

    In future, to mark your thread as Solved, you can do the following -
    Select Thread Tools-> Mark thread as Solved.

    Incase your issue is not solved, you can undo it as follows -
    Select Thread Tools-> Mark thread as Unsolved.

    Also, since you are relatively new to the forum, i would like to inform you that you can thank those who have helped you by clicking the small star icon located in the lower left corner of the post which helped you. This adds to the reputation of the person who has taken the time to help you.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Removing Duplicate Rows
    By jray9242 in forum Excel General
    Replies: 4
    Last Post: 08-02-2012, 05:11 PM
  2. Removing Unwanted Rows and summing the duplicate Rows
    By Cena in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-08-2010, 07:00 AM
  3. removing duplicate rows
    By Xtopher in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-26-2009, 07:15 PM
  4. removing duplicate rows
    By jartzh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-20-2008, 01:25 PM
  5. Removing Duplicate Rows
    By bvinternet in forum Excel General
    Replies: 1
    Last Post: 07-23-2005, 05:05 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