How do you remove duplicates across multiple Excel files?

By Kayabyte · Last updated 31 October 2026

Excel’s Remove Duplicates works on one sheet, so to remove duplicates across several files you first bring the rows into one sheet and then remove duplicates there. On a Mac that means copying the data together by hand or with Power Query’s Append, then Data, Remove Duplicates. Gridhand does the same in two steps: stack the files into one sheet with a Source column, then remove duplicates by the columns you pick.

Manual method

  1. Put all the rows under one header in a single sheet: paste the files under each other, or append queries in Power Query. See combine Excel files into one sheet.
  2. Add a column with the file name before you paste, so you can see where each row came from.
  3. Select the data and choose Data, Remove Duplicates. Tick only the columns that define a duplicate (an email address, an order number), not all of them.
  4. Excel keeps the first occurrence of each row and tells you how many it removed.

To find duplicates without deleting

Traps

With Gridhand

Gridhand Clean removes duplicates within each file, so for duplicates across files stack the files first: Merge, “Into one sheet”, with the source file option ticked. Then run Clean on the result with only “Remove duplicates” on, and choose the columns that make a row a duplicate. The first row of each group stays, header rows are kept, and the report counts what was removed. Trim spaces in the same run if the keys have stray spaces. Your original files are never modified; every step writes new files.

Steps with Gridhand

  1. Drop the files into Gridhand, choose Merge and “Into one sheet (stack the rows)”, tick the source file option, and run it.
  2. Add the merged file to Clean, tick “Trim spaces” and “Remove duplicates”, and pick the key columns.
  3. Check the preview counts, choose an output folder and press Run.

Free for up to 3 input files per run; Gridhand Pro is USD 49 once. Download Gridhand

Questions

Does Gridhand remove duplicates between separate files without merging? No. Clean works on each file by itself, so stack the files into one sheet first, as above.

Which duplicate is kept? The first one. The Source file column tells you which file it came from.

Are header rows kept? Yes. Header rows are kept and only data rows are compared.

Microsoft and Excel are trademarks of the Microsoft group of companies. Gridhand is made by Kayabyte and is not affiliated with or endorsed by Microsoft.