Hi all,
I have two different Excel sheets with the same headers & I want to remove duplicate value rows in a particular column with the comparison of those two excel sheets, guys can you please help me with this…?
Thanks in advance
Hi all,
I have two different Excel sheets with the same headers & I want to remove duplicate value rows in a particular column with the comparison of those two excel sheets, guys can you please help me with this…?
Thanks in advance
Hi @Prasanth_98
How about this expression?
dt1.AsEnumerable().Intersect(dt2.AsEnumerable(),System.Data.DataRowComparer.Default).CopyToDataTable
Check out this XAML file
Common&UnCommon.xaml (10.0 KB)
Output Snap
Regards
Gokul
Hi,
How about the following?
dt2 = dt2.AsEnumerable.Where(Function(r) not dt1.AsEnumerable.Any(Function(r2) r2("Transaction ID").ToString=r("Transaction ID").ToString)).CopyToDataTable
Sample20221205-8.zip (44.7 KB)
Regards,
@Yoichi
Thank you so much for your help
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.