- Documentation
- Activities
- Excel
- Remove Duplicate Rows
Delete repeated rows, keeping the first or the last of each. A number typed as text matches the same number
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
Excel Instance excelInstance | variable | Required | — | — |
Sheet Name sheetName | string | Optional | — | Leave empty for the first sheet |
Range range | string | Optional | — | Leave empty for everything on the sheet |
Match On columns | array | Optional | — | Column headings to compare. Leave empty to compare the whole row |
Heading Row headerRow | number | Optional | 1 | — |
Keep keep | enum | Optional | first | —firstlast |
Output Variable outputVariable | variable | Optional | RemovedCount | — |
Output
$outputVariableNumberHow many rows were removed
Compatibility
WindowsLinuxAttendedUnattended
Related activities
Clear Filter
Show every row again and remove the filter
Clear Range
Empty cells in place. Nothing below shifts up, so formulas pointing at those rows still point at them
Copy Range
Copy cells somewhere else, with or without their formatting. Works even when the destination overlaps the source
Filter Rows
Hide the rows that do not match, and collect the ones that do
Find and Replace
Replace text across a range. Formula cells are left alone, so a replacement cannot quietly break a calculation
Sort Range
Sort rows by one column, then optionally a second. Whole rows move and carry their formatting, and blanks sink