i want delete duplicate rows,but for only on particular string in excel, i’ve other data’s in excel which are multiple times which i dont want to delete if i use REMOVE DUPLICATE ROWS this is what it’s going to happen…
i’ve to check particular STRING in a row and ive to keep the first one and delete the ENTIRE ROW coming values which matches the same STRING
Fine
hope i got it
–if we have the datatable ready named as dt and build similar kind of data structure with build datatable activity with similar kind of column structure and get the output with a variable of type datatable named finaldt
–use a for each row loop and pass the datatable dt as input
–inside the loop use IF condition like this stringvariable.ToString.Equals(row(“yourcolumnname”).ToString) and counter < 0
where counter is a variable of type int32 with default value as 0 defined in the variable panel
–if this condition passes it will go to THEN part where we can use a ADD DATAROW Activity where the arrayrow property can be mentioned as row.ItemArray and in the datatable mention as finaldt
–followed by this add datarow activity within THEN part use a ASSIGN activity like this counter = counter + 1
or if the above condition fails it will go to ELSE part where again use a ADD DATAROW Activity where the arrayrow property can be mentioned as row.ItemArray and in the datatable mention as finaldt
then we can use this finaldt as input to the WRITE RANGE activity and mention the add headers property as enabled in the property panel
Cheers @Pradeep_Shiv