I want to merge the similar values, But it should merged dynamically as these values are changing for other files and also these range can also be differ for other files.
First use Read Range activity to read the data from excel file and will give output as DataTable. Letâs say dtInput.
And then use below Linq query.
( From row in dtInput Group row by a = row("col1").ToString.Trim into grp = Group Where grp.Count > 1 Select grp.ToList ).SelectMany(Function(x) x).CopyToDataTable
Step 2: Letâs create our table that will contain the result, thatâs because in our query, weâre going to add row by row. We will then use the âBuild Datatableâ activity.
Since you wanted an ASAP result, I wonât go into the Query explanation in depth. The result follows directly. If you want an explanation about the query, let us know here. I hope it helped you!