Remove row duplicates Version 1 (.Net)
Action group: Excel
Description
The action removes row duplicates from the sheet in an Excel-document.
Action icon
Settings of parameters
Свойство | Описание | Тип | Пример заполнения | Обязательность заполнения поля |
Параметры | ||||
Контекст | Контекст действия для работы с Excel-документами. | Robin.Excel | Контекст excel | Да |
Имя начального столбца | Имя столбца, начиная с которого будет производиться поиск дубликатов. | Robin.String | Нет | |
Индекс начального столбца | Индекс столбца, начиная с которого будет производиться поиск дубликатов. | Robin.Numeric | Нет | |
Начальная строка | Номер строки, начиная с которой будет производиться поиск дубликатов. | Robin.Numeric | Нет | |
Имя конечного столбца | Имя столбца, до которого будет производиться поиск дубликатов. | Robin.String | Нет | |
Индекс конечного столбца | Индекс столбца, до которого будет производиться поиск дубликатов. | Robin.Numeric | Нет | |
Конечная строка | Номер строки, до которой будет производиться поиск дубликатов. | Robin.Numeric | Нет | |
Пропустить пустые | Если значение «true», то пустые значения не будут являться дубликатами. | Robin.Boolean | true | Нет |
Пропустить скрытые | Если значение «true», то скрытые ячейки не будут учитываться. | Robin.Boolean | true | Нет |
Учитывать объединенные | Если значение «true», то при выявлении дубликатов в объединенных строках, столбцах действие вернет ошибку. Если значение «false», дубликаты в таких строках, столбцах не удаляются. | Robin.Boolean | true | Нет |
Special conditions of use
The robot will return an error if:
- the row indexes are negative or 0. отрицательные индексы строк или 0.
- the row name was input incorrectly.
- "Consider merged cells" field is marked.
If the optional fields are not filled in, the search will be performed over the entire used area of the sheet.
If the search range will not be limited to columns, uniqueness is checked across all cells in the row.
Duplicates are searched for within the specified column range. If the value in the rows does not match outside the columns check range and matches inside the selected range, the row will be considered a duplicate and deleted by the robot.
Priority is given to the "Column name" field if both "Column name" and "Column index" fields are filled in.
If only the row/column start index is filled, the range will start with that index and end with the last row/column of the data area.
If only the row/column end index is filled, the range will start with the first row/column of the data area and end with that index.
The action does not delete merged rows. In the "Consider merged cells" checkbox the default value is "false", which means that if duplicates are found in merged rows, the action will skip them, not delete them. If "true" and duplicates are found, an error will be returned to let the user know that there are duplicates in them and we can't process them.
Example. Row 8 and 9-10 are identical, but 9-10 are merged. These rows are considered identical, but will not be deleted if "false" in the "Consider merged cells" field.
Example of use
Task
There is an Excel-document. Remove row duplicates.
Solution
Use the "Open", "Remove row duplicates", "Save" actions.
Implementation
- Assemble a robot scheme with the actions.
- Set the "Open" action parameters.
- Set the "Remove row duplicates" action parameters.
- Set the "Save" action parameters.
- Click "Start" in the top panel.
Result
The program robot completed successfully.
The row duplicate is removed.