I have an inquiry regarding in checking if the records have duplicates… (Filters are First name, Last name, and Company) and I need to put comment such as ‘Duplicate Entry 1’++… Appreciate your help!
Now loop through DT2,
Inside loop use Linq Query
Array of datarow (Z) = (From r in DT1.AsEnumerable.where(function(x) convert.tostring(x(“First Name”)) = Convert.tostring(row(“First Name”)) and convert.tostring(x(“Last Name”)) = Convert.tostring(row(“Last Name”)) and convert.tostring(x(“company")) = Convert.tostring(row(“Company”)) ) select r).toarray
use if to Check z.count>0 , if yes then
Use for each and loop through Z
assign counter= 1
and update the comment with counter as dynamic
Hello! Sorry but im not familiar how to use linq. Is there any other way to do it? I also want to put the comment in the same excel file, not create a new one… Thank you!!