Remove duplicate rows
Remove the rows of a range (or of the used area) that repeat an earlier row, comparing all columns or only the chosen ones, like Excel's Remove Duplicates; the first of each set is kept and the rows below move up inside the range.
Command in the Excel toolkit · id ooa.excel/remove_duplicates · 6 inputs, 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Range | String | No | Range to check; the used area when empty. | |
| First row is the header | Boolean | No | The first row is a header and is kept as it is; the workbook's open setting (true by default) when empty. | |
| Columns | List | No | Columns that make a row a duplicate: header names, letters or 1-based sheet column numbers; all columns of the range when empty. | |
| Match case | Boolean | No | false | Treat "ACME" and "acme" as different; Excel treats them as the same. |
| Sheet | String | No | Sheet name; active sheet when empty. | |
| Session | String | No | excel | Workbook session. |
Outputs
| Output | Type | What it is |
|---|---|---|
| count | Number | Number of rows removed. |
| remaining | Number | Number of rows left in the range, the header row not counted. |