How to remove duplicates from Shopify store

Remove duplicates

To see how to remove duplicated Products from your Shopify store, watch this video or read on.

How to remove duplicate Products from your Shopify store?

So you have this store with your products duplicated for some unfortulate chain of events.

Shopify store with duplicate products

1. Export your Products to Excel file – without any variants or images, just plain Products

This will give you one row per product.

Export only Products from Shopify

 

2. Sort your exported Excel file by two columns at the same time: Title, Handle

Take your exported file, open it.

Use the Excel “Sort” feature to sort by two columns at the same time:

  • Title
  • Handle

This will make all the same titles get together one after the other. And then it will sort those same Titles by Handle – in such a way that your correct product will be the always the first one.

If you have another reason for duplication and you don’t have equal titles then you still can find other factors that could allow you to sort all the rows so that the correct one is always the first one.

Sort exported Products by Title and by Handle

3. Make the formula that will show TRUE for duplicated row of the same title, and FALSE for the first one

Now that all your duplicate rows are nicely sorted together with the first row as the correct one, you can proceed to mark – which ones you want to keep, and which to delete.

Add new column with name “Duplicate?” and put the following formula in the row 2 there:

=IF(D2=D1,TRUE,FALSE)

Excel Formula to mark the duplicates

Copy this formula all the way down.

4. Filter Excel rows to show only the duplicate rows

Set the filter to keep only those rows where “Duplicate?” equals TRUE.

Filter Excel to show only duplicates

5. Copy the columns ID, Handle and Command to the new clear sheet

Select the A, B, C columns and copy filtered values to a new clear file.

Then set the name of the sheet to “Products” so that the app knows that those are Products in this sheet (double-click the “Sheet1” to rename it).

And then change the Command column value to “DELETE” for all those copied products.

Result should look like this:

Copy duplicate products to new Excel sheet and set to delete

6. Import that file with Excelify app

Upload that file to Excelify app and press “Import” button.

Watch your duplicate products get deleted.

Excelify results of deleted duplicates

See in your Shopify Admin – and be pleased by the result that all the duplicates are now gone, and you have just one copy of each product.

It should look like this now:

Shopify store with duplicates removedGood to know

  • You can de-duplicate also Collections, Customers, Pages, Orders, or anything else – the same way.
  • If you have the export file with Variants, just first copy your ID, Handle, Command, Title columns to new sheet and use Excel function “Remove Duplicates” – then you will have just one row for each product. And then you can use this tutorial from there.
  • If you have more advanced situation, our Support can help you remove duplicates.