Filter
Return the rows of a sheet, a range or an Excel table whose value in one column matches a condition, as a Data Table; optionally also hide the other rows, or put the condition into the file as a real Excel filter.
Command in the Excel toolkit · id ooa.excel/filter · 13 inputs (1 required), 2 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Column | Any | Yes | Column to test: header name, letter or 1-based number. | |
| Operator | String | No | equals | How the cell is compared with the value; between keeps values from value to value_to, both included. |
| Value | Any | No | Value to compare with; not needed for empty and not_empty. | |
| Match case | Boolean | No | false | Match upper/lower case exactly for text comparisons. |
| First row is the header | Boolean | No | First row holds column names; the workbook's open setting (true by default) when empty. | |
| Sheet | String | No | Sheet name; active sheet when empty. | |
| Session | String | No | excel | Workbook session. |
| Value to | Any | No | Upper bound for the between operator. | |
| Hide rows | Boolean | No | false | Also hide the sheet rows that do not match (and show the ones that do), like an AutoFilter; save to keep it. |
| Table | String | No | Excel table name, e.g. Table1: filter only the rows of that table (its header row gives the column names); sheet and range are then not used. | |
| Range | String | No | Filter only this range of the sheet; the whole used area when empty. A column letter or number still means the sheet column. | |
| Apply in file | Boolean | No | false | Also put the condition into the workbook as an Excel filter: the header gets filter buttons, the other rows are hidden, and Excel shows the condition; save to keep it. |
| Clear existing | Boolean | No | false | First show the rows an earlier filter hid and remove the sheet's Excel filter. |
Outputs
| Output | Type | What it is |
|---|---|---|
| table | Table | Matching rows with the sheet's column names. |
| count | Number | Number of matching rows. |