I have the following scenario:
Excel 1:
Column A: Project Name
Columm B: Project Code
Excel 2:
Column A: Project Name
Column B: Project Code
However, the “Project Name” for Excel 2 is always empty. So I would like to search for Project Code into Excel 1 and then get the Project Name from Excel 1 and fill on the Excel 2.
I know it’s can be hard to understand so I put in a “paper” to be understandable.
To search inside the sheet. you can use the find activity in the below. It will return the cell info (it is a string array) like “A32,B45” , And also it will return the row index (it is an integer array ) like “32,45”.
Is there only one project name to one project code in DT1? If so then, it should not matter. For each row in DTExcel2 lookup code in DT1, return name. write return to DT2. The write DT2 to new excel file.
If you have duplicates then you could remove duplicates in DT1 if that is causing a problem.