Excel: Sort rows

Sort rows by a specified column.

Help Centre › Building Processes

Sort rows by a specified column.

Runs on: macOS and Windows only.

Add it to a process

In the process designer, open the Add step tab. Find Sort rows under Excel › Rows, or type its name in the search box, and drag it onto the canvas.

Fields

FieldRequiredWhat it does
File pathNoEnter the file path, or use a variable such as {folders::desktop::path}\file.xlsx. Leave blank to use the workbook an earlier step opened.
SheetYesName of the sheet in the Excel file. Supports wildcards: * matches any characters.
ColumnsYesThe column header(s) to use as key(s) for matching
SortNoSort order or column Default: asc.
OrderNoThe sort order Choices: Ascending, Descending. Default: asc.

See all Excel steps.

Errors

ErrorDescription
Sheet not foundThe specified sheet does not exist.
Column not foundOne of the specified column names does not exist.

Tips

  • Sort by multiple columns by entering each column name on a new line.

Related functions

Get started

See it working on your own data

Everything documented here ships with the platform – try the document tools free, or have your first automation working in 7 days.