I use for each excel row activity. I need to have variable that for first row returns nothing, and then for row 2 returns (1) and then row 3 returns (2) for row 4 returns (3) and so on and so on.
For each row in excel:
if(string.IsNullOrEmpty(Row("col name")) or String.IsNullOrWhiteSpace(Row("col name"))):
assign: var = Nothing
else:
assign: var = Row("col name").tostring
The type of the variable must be set to string and if the value present in the column then the variable holds “Nothing” else it holds value present in that current row. And the variable value change for each iteration.
If you want to store all the values in the column then you need to use collection variable.
Make sure to give the correct column name in the code.