Hi @Cuberoot ,
Could you try the below approach :
-
Use
Read Range
Activity and keep the Range property as “A9” and UncheckAdd Headers
Option. Get the datatable value in variable, lets sayDT
. -
Next, You can use
Filter Datatable
activity to Filter values to have only rows containing theDUNS number
value, For that follow the below Configuration inFilter Datatable
activity.
-
Next, there are multiple ways to proceed from here :
a. As you would require to have it in the same Excel sheet, you could create a Template of it already kept ready, Copy the Template Excel sheet and Write the Filter Datatable Output to it usingWrite Range
activity starting from RangeA9
.
b. You could useWrite Cell
activity to clear the Existing data present in the Excel sheet Starting from Range “A9” and after clearing useWrite Range
activity to Write the Filtered Datatable output. A more detailed on clearing the data range is provided in the below Post :
Here, Also assuming that the Filtered Rows is needed to be Preserved and not the way of Removing the rows after a certain row number.