Search code examples
automationanywhere

Get data from specific column in excel using automation anywhere


We need to fetch data from column in an excel sheet. The problem is that order of column can change as e.g

enter image description here

Same file can be configured as :

enter image description here

So how do we fetch data from Marks column.

Have tried Start Loop control (Each row in Excel dataset Session) But I don't see any control to loop through all the columns for row in current iteration (nested loop).


Solution

  • You actually do not need to use a number for the Excel Column system variable, you can use the column name directly (and without quotes) provided you have selected that the Excel dataset contains headers.

    enter image description here