+ Reply to Thread
Results 1 to 10 of 10

Delete ALL duplicate rows in an excel sheet

  1. #1
    Registered User
    Join Date
    03-07-2013
    Location
    germantown
    MS-Off Ver
    excel 2007
    Posts
    19

    Delete ALL duplicate rows in an excel sheet

    Hello,

    I've seen to run into a problem. I am trying to delete all of the duplicate rows within an excel sheet. However, when using a filter to display only unique values or removing all duplicate values functions from excel it still leaves the original row. How would I go about deleting all the rows that contain duplicate data leaving only the unique rows. Any help is appreciated! Thanks in advance!

  2. #2
    Forum Contributor ragavan.sridar1's Avatar
    Join Date
    11-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010, Excel 2003
    Posts
    208

    Re: Delete ALL duplicate rows in an excel sheet

    did you tried using "Remove duplicates" function?
    Thanks!
    Raga.

    Please,mark your thread [SOLVED] if you received your answer.

    Click the little star * below, to give some Rep if you think an answer deserves it.

    I learnt so many things from these links.

  3. #3
    Registered User
    Join Date
    03-07-2013
    Location
    germantown
    MS-Off Ver
    excel 2007
    Posts
    19

    Re: Delete ALL duplicate rows in an excel sheet

    Quote Originally Posted by ragavan.sridar1 View Post
    did you tried using "Remove duplicates" function?
    yes. no luck.

  4. #4
    Forum Contributor ragavan.sridar1's Avatar
    Join Date
    11-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010, Excel 2003
    Posts
    208

    Re: Delete ALL duplicate rows in an excel sheet

    can u post a sample workbook?

  5. #5
    Registered User
    Join Date
    03-07-2013
    Location
    germantown
    MS-Off Ver
    excel 2007
    Posts
    19

    Re: Delete ALL duplicate rows in an excel sheet

    Quote Originally Posted by ragavan.sridar1 View Post
    can u post a sample workbook?
    Sure. For example I would like to remove all instances of Red, 1, A.

    Thanks!
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    03-07-2013
    Location
    germantown
    MS-Off Ver
    excel 2007
    Posts
    19

    Re: Delete ALL duplicate rows in an excel sheet

    help please?

  7. #7
    Forum Contributor ragavan.sridar1's Avatar
    Join Date
    11-19-2012
    Location
    India
    MS-Off Ver
    Excel 2010, Excel 2003
    Posts
    208

    Re: Delete ALL duplicate rows in an excel sheet

    Hi there,

    Try this code..

    This will remove all the duplicates.

    Please Login or Register  to view this content.

  8. #8
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: Delete ALL duplicate rows in an excel sheet

    Maybe this will work for you

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  9. #9
    Registered User
    Join Date
    03-07-2013
    Location
    germantown
    MS-Off Ver
    excel 2007
    Posts
    19

    Re: Delete ALL duplicate rows in an excel sheet

    Quote Originally Posted by mike7952 View Post
    Maybe this will work for you

    Please Login or Register  to view this content.
    this works for the sample workbook! my workbook that I need to use it on goes to column G and has 40,000 rows. Any way you can show me how to adjust the code to account for this amount of rows? thanks!!!

  10. #10
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,519

    Re: Delete ALL duplicate rows in an excel sheet

    Give this a try

    Please Login or Register  to view this content.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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