I am having 2 excel sheets. “excela” which contains the source data. “excelb” which contains the criteria which value needs to be selected from “excela”.
My goal is: If excela.Value matches excelb.Value then copy the corresponding excela.ID to excelb.ID
Read the first excel sheet and store it into dt1(datatable) using Read Range Activity
Read the second excel sheet and store it into dt2(datatable) using Read Range Activity
3.remove empty row in dt1.
4.update ID fileds in dt1
5.based on dt1 update the dt2 ID field
6.using write range activity append the datatable(dt2) data to second Excel
1.Read the excela and store it in a DataTable1 by using ReadRange Activity
2.Read the excelb and store it in a DataTable2 by using ReadRange Activity
3. Extract the ID column from excel sheet a and store it in listA of strings
4.Extract the Value Column from excel shhet a and store it in listB of strings
5.Extract the Value column from excel sheet b and store it in listC of strings
6. Remove the Empty values from List a and List b by using Assign activity
7. In Assign int d -lstA.RemoveAll(Function(x) string.IsNullOrEmpty(x.ToString))
8. In Assign int e- lstB.RemoveAll(Function(x) string.IsNullOrEmpty(x.ToString))
9.Use one ForEach row Atcivity
10. Inside that use one If Condition. give List B in collections
11. In if Condition - item=ListC(List.IndexOf(item,ListB)
12.Use one Assign Activity
13.Inside Assign- DataTable2(List.IndexOf(item,ListB))(“ID”)
14.Use Write Range and to write DataTable2 in Excel shhet
What i’m trying to do is put the column resp_code (from the first table) in the second table where rrn=refno Firstexcel3.xlsx (8.8 KB) secondexcel3.xlsx (8.8 KB)