when there is single value in cell normal multiplication formula should be implemented which is in this case - =A1*B1
If there are two values (2,3) in this case then it should take formula =(22)+(33)
and the number of value is not fixed in cell C2 its (2,3) ,C3 its (1,2,3) it may increase or decrease
Is this possibile in UiPath ?
Cast method returns IEnumerable. We can use LINQ to the collection.
Zip method iterate 2 collections in order.
For example. in (1,2,3) (1,2,3) case,
mc1 has 3 items from regex.Matches, like “1”, “2”,“3”
mc2 also has 3 items like “1”, “2”, “3”
Zip method iterate 2 collections, like m1 =“1” and m2 =“1” then calculate 1*1 by Int(m1.Value)*Cint(m2.Value), next m1=“2” and m2=“2” then calculate 2*2…
Finally, sum the above results by Sum method.
If the scenario is (1,2) (4,5) and i want that it should take formula as =2*((14)+(25)) so basically its multiplying by 2 so what changes will be required in result variable?