Hi there! I’m using an excel for each row activity, and I need to delete or ‘ignore’ the rows from the spreadsheet that in the column P, or “Status”, are equals to “Arquivado”. How can I do this? Thanks! ![]()
- Inititalize one counter = 0 before the start of for loop.
- In the for loop check the condition and if it matches then use “Remove Data Row”
- In the properties , you will find index , pass the counter variable as index.
- Increase the counter = counter +1
Just put an If around the Delete Rows activity.
If you want to skip the row, the following works.
If you want to remove rows, the following will work.
Sample20230822-1L.zip (9.1 KB)
Regards,
Why not just use the Delete Rows activity inside the loop?
Ahhhh I hadn’t tried it so I didn’t know that. Thanks!
Basically when deleting a row in a for loop you will miss the index. In short the input datatable cannot both be iterated and modified in the same for loop.
@ton I agree, Filter Datatable is an elegant way of solving this issue.
I tried the first way to ignore it! Lets see if it works! Thank you sm! ![]()



