Here dt_2 is first sheet thats hold the data and dt_3 holds the another data and dt_output holds final result data of matching sheets data
customize the column name as per your requirements
(
From a In dt_2
Join b In dt_3
On a(“Sno”).tostring Equals b(“Sno”).tostring
Select dt_Output.Rows.Add ({a(“Sno”),a(“City”),b(“ZipCode”)})
).copytodatatable
I have a solution but i dont know what column name found in excel , here i added column in manually , please help me how to pull all the column name automatically,
{From row1 in dt1.AsEnumerable()
Join row2 dt2.AsEnumerable()
On row1(“xxx”).Tostring().Equals row2(“aaa”).ToString()
Select dt2.clone.LoadDataRow(New Object(){
row2("Column1),row2(Column2), row1(“bbb”), row2(Column4)…}, False)).CopyToDatatable
Common value Reference number for both datatable , i want to get dt1 total amount to dt2
There is more column name found in between vlookup data also should update that one dt1 so i want to automatically update please help me anyone for this.