Okay not a problem what is the activity that you are using above the write cell activity.
If you are using the for each excel row activity.
If you want to enter the data in the each excel in one column.
In Write cell activity in range you can give like this CurrentRow.byField(“Column name”)
If you want to give directly like Excel.Sheet("Sheet1).Cell(“A”+(row+2).toString).
In the above expression the row has to be in string format.
=> First Use excel file activity and pass the Excel path to it.
=> Inside use excel file activity insert the for each excel row activity to iterate the each row in excel.
=> After for each insert the If condition to check the condition, In then block insert the write cell activity.
This was the proper sequence.
If you are not satisfied with it then, let me know your requirement.
Your advice does not meet my requirement because your understanding totally differs from mine.
If you check my uploaded mock image carefully,you can easily understand I want to iterate dt .(Not Excel file)
You are so careless guy!!
Since you are repeating mistaker, pls be noted if you commit mistake again,you are NOT qualified to give advice for me.
If you want to advice others as well as you are really UiPath Robot Master, pls think what questioner really wants to know first. I have no spare time to listen to your confusing and careless advice.
It is important to reflect on what you did so you can do better next time…
Instead, I managed to find correct answer by myself as follows in the end.