История страницы
...
Remove row duplicates Version 1 (.Net)
Группа действийAction group: Excel
Описание
Действие позволяет удалить повторяющиеся строки с листа в Excel-документе.
Иконка действия
Настройки
...
Description
The action removes row duplicates from the sheet in an Excel-document.
Action icon
Settings of parameters
Property | Description | Type | Filling example | Mandatory field |
Parameters | ||||
Context | Action context for working with an Excel document |
Свойство
Описание
Тип
Пример заполнения
Обязательность заполнения поля
Параметры
Контекст
Robin.Excel |
Excel context |
Да
Имя начального столбца
Yes | ||
Start column name | The name of the column from which to search for duplicates. | Robin.String |
Нет
Индекс начального столбца
No | |
Start column index | The index of the column from which to search for duplicates |
. | Robin.Numeric |
No |
Начальная строка
Start line | Line number, starting from which the search for duplicates will be performed. | Robin.Numeric |
Нет
Имя конечного столбца
No | ||
End column name | The name of the column up to which duplicates will be searched. | Robin.String |
Нет
No | |
End column index | Index of the column up to which to search for duplicates |
Индекс конечного столбца
. | Robin.Numeric |
No |
Конечная строка
End row | Line number up to which duplicates will be searched. | Robin.Numeric |
No |
Пропустить пустые
Skip empty | If the value is «true», then empty values will not be duplicates. | Robin.Boolean | true |
No |
Пропустить скрытые
Skip hiden | If the value is «true», then hidden cells will not be taken into account. | Robin.Boolean | true |
Нет
Учитывать объединенные
No | |||
Consider merged cells | If the value is «true», then if duplicates are found in the combined rows, columns, the action will return an error. | Robin.Boolean | true |
Нет
Особые условия использования
Робот вернет ошибку, если:
No |
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" .
Если необязательные поля не заполнены, поиск будет производиться по всей используемой области листа.
Если диапазон поиска не будет ограничен столбцами, то уникальность проверяется по всем ячейкам строки.
Поиск дубликатов ведется в указанном диапазоне столбцов. Если значение в строках не совпадает за диапазоном проверки столбцов и совпадает внутри выбранного диапазона, то строка будет считаться дубликатом и удалена роботом.
Приоритет отдается полю "Column name", если заполнены оба поля "Column name" и "Column index".
Если заполнен только начальный индекс строки/столбца, то диапазон будет начинаться этим индексом и оканчиваться последней строкой/столбцом области данных.
Если заполнен только конечный индекс строки/столбца, то диапазон будет начинаться первой строкой/столбцом области данных и оканчиваться этим индексом.
Объединенные строки действие не удаляет. В чекбоксе "Consider merged cells" значение по умолчанию "false", что означает, что если будут найдены дубликаты в объединенных строках, то действие их пропустит, не удалит. Если "true" и дубликаты нашлись, то выпадет ошибка, чтобы пользователь знал, что дубликаты в них есть, и мы не можем их обработать.
Пример. Строка 8 и 9-10 одинаковые, но 9-10 объединены. Такие строки считаются идентичными, но удалены не будут, если "false" в поле "Consider merged cells".
Пример использования
Задача
Есть Excel-документ. Необходимо удалить дубликаты строк.
Решение
- 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.