Excel: Remove duplicates

Remove duplicate rows from a range based on specified columns.

Help Centre › Building Processes

Remove duplicate rows from a range based on specified columns.

Runs on: macOS and Windows only.

Add it to a process

In the process designer, open the Add step tab. Find Remove duplicates under Excel › Rows, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
File pathNoEnter the file path, or use a variable such as {folders::desktop::path}\file.xlsx. Leave blank to use the workbook an earlier step opened.
SheetYesName of the sheet in the Excel file. Supports wildcards: * matches any characters.
Columns to checkNoComma-separated column names or letters to check for duplicates (e.g. A, B or Name, Email). Defaults to all columns.
RangeNoRange address (e.g. A1:D100). Defaults to the used range.

See all Excel steps.

Errors

ErrorDescription
File not openThe Excel file must be open.
Sheet not foundThe specified sheet does not exist.
Column not foundA specified column name or letter does not exist in the range.

Tips

  • If no columns are specified, all columns are compared to determine duplicates.
  • The first occurrence of each duplicate is kept; subsequent duplicates are removed.
  • Specify only key columns (e.g. Email) to remove rows with duplicate emails regardless of other column values.

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.