if column type A has code then delete that code row from secod excel ex2345 delete that row from second excel if Type A code not available then goto next line
Use dt2Output=dt2.AsEnumerable().Where(Function(row) dt1.AsEnumerable().Any(Function(x) x(“NAME”).ToString=row(“NAME”).ToString)).CopyToDatatable to get the matching records from that two datatable and store the output in a third datatable object dt2Output.
Use dt2=dt2.AsEnumerable().Where(Function(row) NOT dt2Output.AsEnumerable().Any(Function(x) x(“NAME”).ToString=row(“NAME”).ToString)).CopyToDatatable