Add two new column in the output excel(That is done)
From output.xlsx file get the value of col “FCODE” and check on input.xlsx file and compare it with column “Furn.” and get the cod and name values and fill in the output if the FCODE is not available enter “#N\A”
I have tried with the following workarounds
Method 1 - Used formula in excel and autofill,the file has 40000 rows it is taking much time. (This is fine but i dont know how to make the bot until it is processed)
Method 2- Used LookUp and it throws error
(From d1 In dtOutput.AsEnumerable
Group Join d2 In dtInput.AsEnumerable On d1("FCODE").ToString.Trim Equals d2("Furn.").Tostring.Trim Into gj = Group
From g In gj.DefaultIfEmpty
Select ra = {
d1("FCODE"),
If(isNothing(g), "#NA",g("Cod ")),
If(isNothing(g), "#NA",g("Name"))}
Hi @Srini84 , @Nithinkrishna Actual input and output will have plenty of column so i need to just use the two data table for comparing and adding each and every row in the new tempDT(Build Datatable) which has only two column which is Furn. and Name
Condition was wrong one which i gave before and sorry for that ,So i need to compare the FCode with the cod in the input column and get the furn. and Name values and add them in the tempDT