I’m reading an excel rows using excel application scope by looping through the for each row activity, but the problem is column name doesn’t start at row number 1, column name starts from row number 10. Can anybody help me with this issue? Thanks in advance!
Use Read Range Activity and specify range as “A10”. Then it will start from cell A10 to till the end. If it has Headers then select AddHeaders option also.
Hi,
As shown in the sample attachment, i want to read the rows starting from row number 11, i don’t want to hard code the value as “A11” in read range activity, because in future if some more lines gets added above the column name “EmpID” the row number will change. So can you please suggest me any solution on how to do it dynamically.
Use ‘If’ Condition to check the ‘0th’ column, if it’s contain a string as “EmpID”.
Once condition is true, then copy that row into another table.
And do the last step for followed rest of the rows (Note: But the condition will not satisfy for rest of the rows. So use some flags to satisfy that.).
Hi,
Thanks for your response. The workflow which you have sent, in that i want to delete rows above empid. how can this be achieved? I tried deleting using remove datatable rows, but it didn’t work. PFA… DynamicRow.xaml (12.3 KB)
Try to use Delete range activity for deleting a specific range where for deleting rows above empid just take a new variable
delRange=int-1
assign this variable in range it will work.