The Old School Method for Removing Duplicates in Excel They Don't Want You to Know

The Old School Method for Removing Duplicates in Excel They Don't Want You to Know

In working with data from any source, you need to make sure you don’t have duplicate values. In many systems, this can be particularly cumbersome. In my favorite manual data processing tool, Excel, there are a few ways to simplify this process.

I’ve used this technique to remove duplicates from Excel for years for its simple nature and easy execution. If you have another way I’d love to hear it in the comments below. Enjoy!

Steps

  • Sort data in ascending order based on the key field
  • In a blank column adjacent to the key field (eg. OrderID in Col B) enter the following formula in cell A2.
  • =IF(COUNTIF($B$1:B1,B2)>0,1,0)
  • Make sure when you copy the formula down that the first cell reference in the CountIF() formula is locked and doesn’t change.
  • You’ve now identified the duplicates in your data.
  • Add a filter to your data, and look for any values of 1 in the column indicating duplicates
  • Select all the rows you’ve filtered here (eg. the duplicates) and then delete them
  • Revel in your accomplishment

This method works for identifying a simple ID field that is duplicated. If you don’t have a unique ID or you need to create one complete this simple step then follow the previous steps described

Create a Compound Key

  • Add a column for the key (typically to the left of the entire data set)
  • In that column enter a formula to create the key. In this example, I’m combining the Order Date (Column D) and Customer Name (Column L).
  • =D2&L2
  • Follow the above steps to add a column to identify the duplicate values and then remove them
  • Revel in your accomplishment

Download and View Solution



要查看或添加评论,请登录

Ben Sullins的更多文章

  • Why I Buy Used Teslas

    Why I Buy Used Teslas

    I recently purchased another used Tesla. Here's that story and my tips for what to do if you follow in this path.

    1 条评论
  • EV Charging Without a Garage

    EV Charging Without a Garage

    Charging your car if you can’t install a charger at home can be tricky, but it doesn’t have to be. Today we’re going to…

    1 条评论
  • Tesla Semi: Everything We Know

    Tesla Semi: Everything We Know

    Tesla will unveil their Semi-Truck in November of 2017 but will it be successful? // Get $1,000 Discount + Free…

    8 条评论
  • Tesla the Most American Car Company? (Pretty Much)

    Tesla the Most American Car Company? (Pretty Much)

    Last year Tesla was the only car company to assemble 100% of their cars in America. The only others that came close…

    178 条评论
  • Why Tesla Will Win the Self Driving Car Race

    Why Tesla Will Win the Self Driving Car Race

    Tesla has a unique advantage when it comes to making a self-driving car, but it might not be what you think it is. //…

    41 条评论
  • Tesla Model 3 (New) vs Model S (Used) - UPDATED

    Tesla Model 3 (New) vs Model S (Used) - UPDATED

    Likely the biggest factor when looking at either a new Model 3 or a Used Model S is going to be the utility of the…

    6 条评论
  • Tesla Model 3 Monthly Cost Calculator

    Tesla Model 3 Monthly Cost Calculator

    How much will your Tesla Model 3 cost per month? I built a tool to help you calculate exactly that. This tool…

    20 条评论
  • Who Killed Coal in America?

    Who Killed Coal in America?

    The coal industry in the US is almost dead, but it wasn’t renewables that killed it. "The biggest contributor to coal…

    156 条评论
  • Tesla Model 3 The iPhone of Cars?

    Tesla Model 3 The iPhone of Cars?

    The Tesla Model 3 is poised to change the car industry forever, similar to what the iPhone did for the cellphone…

    26 条评论
  • If Regular Drivers Acted Like Tesla Drivers

    If Regular Drivers Acted Like Tesla Drivers

    Please do not text and drive! If you're looking to buy a Tesla use our referral code to get $1,000 off and FREE…

社区洞察

其他会员也浏览了