I have an excel table as below. I have a cycle and in this cycle I get random column from this table. And I want to sum each rows of columns and at the end obtain total number of reference 1, 73 etc. Bu I couldn’t find how to add rows of two columns seperately.
use for each row to loop through each row,
inside the for each row do the following
assign sum = cint(row(“X1”))+cint(row(“X3”))
write the sum to the specified cell by using write cell activity
you can by random assign the cols to sum up to the variable: SumCols and it is creating the report DataTable. It is dynamic and will sum up all columns found in the SumCols string Array
hi @AnnaDewitt u need to make the write cell dyanmic, in the for each row there is index property which stores the index of row through which we are iterating , let say we put a variable index there
using that we can write to a particular cell in dynamic.
lets say the sum column is under the G column , then in write cell activity in cell section u can write , “G”+ (index+2).ToString