- Documentation
- Activities
- Excel
- Sort Range
Sort rows by one column, then optionally a second. Whole rows move and carry their formatting, and blanks sink
Inputs
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
Excel Instance excelInstance | variable | Required | — | — |
Sheet Name sheetName | string | Optional | — | Leave empty for the first sheet |
Range range | string | Optional | — | Leave empty for everything on the sheet |
First Row Is Headings hasHeaders | boolean | Optional | true | — |
Sort By sortBy | string | Required | — | A column heading, or its letter |
Order direction | enum | Optional | ascending | —ascendingdescending |
Then By thenBy | string | Optional | — | Optional second column, used to break ties |
Then Order thenDirection | enum | Optional | ascending | Only used when a second column is givenascendingdescending |
Compatibility
WindowsLinuxAttendedUnattended
Related activities
Clear Filter
Show every row again and remove the filter
Clear Range
Empty cells in place. Nothing below shifts up, so formulas pointing at those rows still point at them
Copy Range
Copy cells somewhere else, with or without their formatting. Works even when the destination overlaps the source
Filter Rows
Hide the rows that do not match, and collect the ones that do
Find and Replace
Replace text across a range. Formula cells are left alone, so a replacement cannot quietly break a calculation
Remove Duplicate Rows
Delete repeated rows, keeping the first or the last of each. A number typed as text matches the same number