I thought using column index might not be appropriate because usually, we prefer to use row(“column name”) to row(“column index”) but in this case, I think I don’t have much of a choice.
I figured out another way as well which is, adding headers to the headerless data table, process it using headers, and then write it back to Excel without headers but even in this case, I’m using the index to set column names.
Anyways, thank you very much for your help @shankm
If you still don’t want to use the column index, try the following steps. It may help.
use build datatable Activity with your required headers
iterate on first datatable, then add each row to the second datatable, which we built in 1st step
Now you have a second datatable with headers and the data from first datatable
iterate on the second datatable and
If row(“first column name”).tostring.equals(“Code_A”)
Assign row(“second column name”)=adjacent