Apply Multiple AND or OR Criteria to an Excel Filter
Question details
Apply more than two text filter criteria to one Excel column using AND or OR logic.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- A user needs to filter a column against several text conditions, including combinations of AND and OR.
- Observed behavior
- The desired result is a filtered list containing only rows that satisfy the criteria arranged in an Advanced Filter criteria range.
Make sure your source data has a header row and reserve an empty area for the criteria range. Each criteria header must match the source column header exactly.
Use an Advanced Filter criteria range for AND and OR logic
Use this method to apply multiple conditions to the same column without writing a macro.
Criteria on the same row are combined with AND; criteria on different rows are combined with OR. To apply multiple AND conditions to one source column, repeat that column's header in adjacent criteria columns.
In an empty area of the worksheet, enter the source column header. For multiple AND conditions on that column, repeat the identical header in adjacent cells.
For AND, place each condition under a repeated header on the same row. For example, under two Country headers, enter *u* and *e* to find values containing both letters. Add more repeated headers and criteria for additional AND conditions.
To match any of several conditions, enter them on separate rows under the same criteria header. For mixed logic, put each AND group on its own row; Excel treats those rows as OR alternatives.
Select a cell in the source data, then choose Data > Advanced. Set the List range to the source data including its header, and the Criteria range to the criteria headers and populated rows. Choose whether to filter in place or copy the results, then select OK.

Apply Multiple Filter Criteria in WPS Spreadsheets
Use a criteria range and Advanced Filter in WPS Spreadsheets to combine multiple text conditions with AND or OR logic.
- 1. Open the workbook: Open WPS Spreadsheets and select File > Open to load your Excel workbook.
- 2. Prepare the criteria range: In empty cells, copy the source column header. Repeat the header across adjacent columns for multiple AND conditions on that column.
- 3. Enter the criteria: Enter AND conditions on the same row and OR alternatives on separate rows. For example, use *u* and *e* under repeated headers to match text containing both letters.
- 4. Run the filter: Select the source data, choose Data > Advanced Filter, and specify the source and criteria ranges. Choose the output location and confirm the filter.

Frequently Asked Questions
How do I apply three or more AND conditions to one column?
Repeat the source column header in adjacent cells in the criteria range, then enter each condition beneath a header on the same row. Select the full criteria range in Data > Advanced.
How do I filter for any of several text conditions?
Enter the matching column header once in the criteria range, then place each condition on a separate row beneath it. Advanced Filter treats the rows as OR alternatives.
Can I combine AND and OR in the same Advanced Filter?
Yes. Place the conditions for each AND group on one row, repeating a header where necessary. Put each alternative group on a separate row to join the groups with OR.
Why does my filter return no matching rows?
Check that the criteria headers exactly match the source headers and that the List range and Criteria range include their headers. Also check whether any values actually satisfy every condition on an AND row.
How can I filter for text that contains a letter?
Use an asterisk on both sides of the letter in the criteria range. For example, *u* matches text containing the letter u.




