How to Separate Duplicate Data?

Hi @Perawat

Please try this,

  1. Read the excel sheet data using read range (uncheck AddHeaders) in the datatable variable name dt.

  2. Use write range activity and give sheet name as “output”, datatable as below,

(From dtRow in dt.asenumerable
Group dtRow by k = dtRow(0).tostring.trim into grp = Group
Where grp.count > 1
Select grp(0)).copytodatatable.defaultview.totable(false,dt.columns(0).columnname)

For the reference

Thanks

1 Like