PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Get Last Used Row

Returns the number of the last used row in an Excel sheet, or 0 for an empty sheet.

Get Last Used Row tells you the number of the last row that is used on a sheet. Use it to build the range for Read Range when you do not know in advance how many rows a file has, for example A2:F followed by the result.

Add the action

In the Process Designer toolbox, open Excel and pick Get Last Used Row (or type Get Last Used Row in the search box).

The Get Last Used Row action properties: Excel workbook, Sheet name and Last Row Index

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
Excel workbookInputFileYesAn .xlsx or .xlsm workbook.
Sheet nameInputTextYesThe sheet to check.
Last Row IndexOutputIntegerYesThe number of the last used row (row 1 is 1), or 0 when the sheet is empty.

Example

SheetLast Row Index
Orders, with a header in row 1 and data in rows 2โ€“44
Empty, a blank sheet0

Good to know

  • The result is the last row stored in the file, so a row that only has formatting (and no value) can count as used.
  • Empty rows in the middle of the data do not matter: the result is the last row, not the number of rows.

On this page