+ Reply to Thread
Results 1 to 8 of 8

deleting all duplicate values in a spreadsheet

  1. #1
    Registered User
    Join Date
    02-04-2014
    Location
    Baltimore MD USA
    MS-Off Ver
    Excel 2013
    Posts
    24

    deleting all duplicate values in a spreadsheet

    Hello All. This is my first post. I use Excel 2007. I have a sheet where I must delete all duplicate values. I know there is a button that will delete duplicates and leave the original values. Is there a way to not only delete the duplicate values but also the original values that were duplicated in the first place? All help will be greatly appreciated. Thanks...Steve

  2. #2
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: deleting all duplicate values in a spreadsheet

    You can create a column that is literally a concatenation of all the columns then highlight duplicates IN that column, filter by duplicates, delete all. Then remove that column, or hide it.


    Or you can do a countif on the concatenation and delete everything ABOVE 1.


    Post a sample data set and I will show you what I mean if everything I said above is unclear.
    Please ensure you mark your thread as Solved once it is. Click here to see how.
    If a post helps, please don't forget to add to our reputation by clicking the star icon in the bottom left-hand corner of a post.

  3. #3
    Registered User
    Join Date
    02-04-2014
    Location
    Baltimore MD USA
    MS-Off Ver
    Excel 2013
    Posts
    24

    Re: deleting all duplicate values in a spreadsheet

    Hello. I believe I have attached my sheet. It has 505 duplicates in it. I apologize but could not comprehend your instructions. Hopefully a more visual approach may work. Thanks...Steve
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    10-09-2012
    Location
    Dallas, Texas
    MS-Off Ver
    MO 2010 & 2013
    Posts
    3,049

    Re: deleting all duplicate values in a spreadsheet

    First off there are spaces in the dataset that might cause issues but you can simply select all of the data. Highlight duplicates with conditional formating. Create a filter, filter on cell color, then delete anything with the highlighted cell color.

    That should work.

    Otherwise you can create a formula in C1 with the following:
    Please Login or Register  to view this content.
    that will literally count how many times B1 occurs in the data. Then copy the range to the bottom by double clicking on the bottom right of the cell. Filter on columns B&C. Uncheck 1 in column C, delete everything with MORE than 1 from the data. remove filter. Done.

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: deleting all duplicate values in a spreadsheet

    Hi,
    just one thing worth mentioning - before you apply either method of filtering - add a row above data and insert some kind of header there - "My Header" or whatever text will do. Otherwise Excel will treat the first value as a header and if it hapens to be duplicated - will not be removed.
    In the attachment - data ready to be deleted - only 1010 duplicates (selected with conditional formatting) visible.
    Attached Files Attached Files
    Best Regards,

    Kaper

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: deleting all duplicate values in a spreadsheet

    Hello bawlmer,

    Please try the attached Sample Workbook.

    It also takes care of empty cells in your original data set, should there be any.

    Regards.
    Attached Files Attached Files
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  7. #7
    Registered User
    Join Date
    02-04-2014
    Location
    Baltimore MD USA
    MS-Off Ver
    Excel 2013
    Posts
    24

    Re: deleting all duplicate values in a spreadsheet

    Thank you all for your help! As soon as I figure out how to do it I will mark this thread solved. Thanks again!

  8. #8
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: deleting all duplicate values in a spreadsheet

    Hello bawlmer,

    You are welcome, glad I could help.

    Also thank you for adding to my Reputation, and for marking this thread as Solved.

    Regards.

+ 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] Deleting multiple rows with duplicate values in one column
    By djh30 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-01-2013, 04:08 PM
  2. deleting duplicate values
    By Suraj3825 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-20-2013, 08:37 AM
  3. Deleting Duplicate Values
    By epreuss in forum Excel General
    Replies: 3
    Last Post: 07-17-2012, 12:01 PM
  4. [SOLVED] Moving/Deleting Duplicate Values in cells with a row
    By Argyll-PA28 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 06-01-2012, 08:50 AM
  5. [SOLVED] Do until loop (deleting duplicate values)
    By buntalan80 in forum Excel Programming / VBA / Macros
    Replies: 13
    Last Post: 05-31-2012, 05:50 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