I have 2 data table - DT1 and DT2
I need to find if value in currentrow(0) in DT1 is available in DT2’s anywhere in 1st column if not found I need to add in DT1- not found and if found copy further column from DT2 and paste in DT1’s 4th and 5th column. DT1.xlsx (9.8 KB) DT2.xlsx (9.0 KB)
Use For Each Row (Nested For Each)
VarInDT2=row2(0).ToString
If VarInDT1=VarInDT2
Then
"Match Found"
Use Break Activity (Exit the inner loop since a match is found)
Else
"Value is not found in DT2"
Use Add Data Row Actvity in DT1 (add it to DT1 with placeholders for 4th and 5th columns)