HI,
I have excel file which have 3 column and 10 rows and which 3 columns Name as status.
how to get each row data to do some task and Write the specific Status as “Task Succesful”- if Task Completed and “Task Unsuccessful”- if task not completed.
Can someone help me with doing this type of task?
Use Read Range activity to read data from excel and will give output as DataTable.
Then iterate it using For Each Row activity.
int index = DataTableName.rows.indexOf(row) + 2 If row(“column1”).Tostring is something AND row(“column2”).Tostring
Then perform something and get result If result is success then use Write cell activity and specify
Range: “C”+index.Tostring
Value: Task Succesful Else
Range: “C”+index.Tostring
Value: Task Unsuccesful
sure. Please find the attached workflow. Here, I did like if column1 value is equal to column 2 value then it will write task successful else unsuccessful.
By default, Index will start from 0. And also we won’t write anything in column header. So, we have to add +2 then it will start write from 2nd cell onwards.