Using Filter action
- Updated: 2025/12/18
Use the Filter action to filter data from a column in a specific table or worksheet.
Considerations
An error is displayed if any of the following conditions are
encountered when you deploy your automation to filter data from table or worksheet:
- If you provide an incorrect table name or column name/position.
For example, the table in Excel is named
MonthlySales, but you enterMonthly Sales(with space). - The Session name that you have provided does not match the one used in the Open action.
- Excel spreadsheet name or cell range that you have specified does not
exist.
For example, you enter
Sheet2when onlySheet1exists, or enterB2:D4when the sheet only has columns A–C. - There is data type mismatch between filter type and column data.
For example, column
Mayin the specified table contains text values likeHigh, Low, but you useGreater than 150. - The file that you are trying to access is closed, locked, or inaccessible.
- There is a conflict between the existing filters and new filter settings.
Procedure
Consider a scenario where there is an
Excel workbook titled Monthly Sales.xls and you want to filter the May
column and only display the rows that contain value greater 150.
- Use the Open action from the Excel package to open your workbook.
- Assign the session name as ExcelSession1.
- Drag and drop the Filter
action into the automation script.
- In the , enter Monthly Sales.
- Select and enter May.
- Use the Filter field to select the following:
- In the Filter type, select Number.
- Click the drop-down menu and select Greater than.
- In the value field, enter 150.
- In the Session name field, enter ExcelSession1.
- Click Save.
When you run this automation, the Excel sheet will only display the rows where May is greater than 150.