So, there is a workbook with sheet1, sheet2, sheet3
Compare each cell one by one from column A of sheet2 to all values of column A in sheet1.
If matched, copy column B&C value from sheet2 and paste it in column B&C of sheet1
If unmatched copy the whole row from sheet2 and paste it in sheet 3.
Attaching the excel for more clear vision
Note: Sheet1: MTAXReport, Sheet2: WFR Report, Sheet3: Not in WFR
Applied Fors - Billing Workbook Template - Copy.xlsx (3.2 MB)
Hi @ayushi_jain3 ,
We have 2 ways
1.use activity
read 2 sheet to get data table
for each data table 2 inside data table 1
use if condition
if row(“your A column”).toString = line(“your A column”).toString
assign row(“your B column”) = line(“your B column”).toString
and row (“your C column”) = line(“your C column”).toString
else
add line to data3
→ after loop, write range data1 again to sheet 1, write range data3 to sheet 3
way2. we can use linq
regards,
Hey @Nguyen_Van_Luong1 , the for each method is taing too long to executre since there are around 5000 rows in datatable. I also tried linq query but it is not getting exceuted. Attaching the xaml for both ways that I am trying.
Linq query is disabled in same xaml
Sequence1.xaml (17.4 KB)
this method is taking too long to execute
since there are around 5000 rows to iterate