Excel: Find duplicates

Find duplicate rows based on specified key columns and store their row numbers.

Help Centre › Building Processes

Find duplicate rows based on specified key columns and store their row numbers.

Runs on: macOS and Windows only.

Add it to a process

In the process designer, open the Add step tab. Find Find duplicates under Excel › Search & Filter, 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.
ColumnsYesThe column header(s) to use as key(s) for matching
Convert values to lower caseNoIgnore case when comparing values Default: off.
VariableNoName of the variable that gets the row numbers of the duplicate rows. For example duplicates. Default: duplicates.
Remove whitespace from both sides of valuesNoRemove leading and trailing whitespace from values Default: off.

What it gives back

  • {duplicates}

See all Excel steps.

Errors

ErrorDescription
File not openThe Excel file must be open
Sheet not foundThe specified sheet does not exist

Tips

  • Duplicate rows are removed based on the specified columns
  • Enable trim and lower case for more accurate duplicate detection

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.