Write cell in for each row without counter

i am using for each row to loop on a excel file that if on column A there is “A” so
i need to write “ok” on a cells on column B or “ko” if its not but the excel file change every time, so i can use the counter.

i think i need to use the index

Yes exactly try going with index @Soudios

i don’t know how to do that

Hi @Soudios
You will find index in for each row activity in property as “index” .
This will give you index for each iteration and you can use it as counter.