LOOP Each row in an Excel sheet function

The LOOP Each row in an Excel sheet function in RPA.

Help CentreBuilding Processes

This article describes the RPA Loop functionality to each row in an Excel sheet.

For a full list of available functions, please read LOOP functions.


Description

The LOOP Each row in an Excel sheet function allows you to each row in an Excel sheet.


Setting it up

To use the LOOP Each row in an Excel sheet function, follow these instructions:

{{popups:rpas/add:action=loop-excel}}

Once on a process map:

  1. Navigate to the process where you would like to add the LOOP Each row in an Excel sheet function
  2. Click on the green button’s drop-down (right side of the green button labelled “Process”)
  3. On the menu that appears, click on the “+ Activity” item
  4. From here you can select the LOOP Each row in an Excel sheet option
  5. Click "Add" once you are done

Input parameters

ParameterRequiredTypeDefaultDescription
File pathYesTextFull path to the Excel file.
SheetYesTextName of the sheet to loop through.
VariableYesTextLoop variable name to access current row data.
Start cellNoTextFirst data cell to start from (e.g. A1).
Has header rowNoBooleanOffFirst row contains column headers.
Max iterationsNoNumberMaximum number of rows to process.

Output variables

VariableTypeDescription
VariableObjectCurrent row data accessible via {variable::column_name}.

Errors

ErrorDescription
File not foundThe Excel file does not exist.
Sheet not foundThe specified sheet does not exist.

Tips

  • Enable 'Has header row' to access columns by name: {row::Column Name}.
  • Use loop-break to exit the loop early based on a condition.

Related functions

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or go live in 7 days.