I have 2 excel sheets, One contains all the data and another contains some numbers
How can i check if the number is positive or negative number which are present in 2nd sheet and Crweate a new column as Status , and write the status as NEGATIVE , POSITIVE in 1st excel sheet
2nd exce input:
Data
-1
-3414
-141
1st excel output
Status
Negative
Negative
Negative
The catch is they shou;d be mapped with id which are present in both the sheet
So these ID are jumbled in 2nd sheet in a column
Now use invoke code activity with dt2.AsEnumerable.ToList.ForEach(sub(r) r("Status") = If(dt1.AsEnumerable.Where(function(x) x("ID").ToString).Count>0,If(Cdbl(dt1.AsEnumerable.Where(function(x) x("ID").ToString)(0)("Number").ToString)>=0,"Positive","Negative"),""))