How to Fix Excel Advanced Filter Not Returning All Matching Rows
Question details
The user needs to successfully retrieve all matching rows from a data table using the Advanced Filter without it returning unexpected or incomplete results.

- Product
- Excel
- Device & OS
- not provided
- Scenario
- Applying an Advanced Filter to a dataset using a separate criteria range to extract specific matching records.
- Observed behavior
- The filter either returns the entire table or fails to return all matching rows because of incorrect criteria range selection, mismatched headers, or improper formula syntax.
Verify that your data table contains no blank rows or columns, and ensure the criteria range is completely separated from your main dataset.
Correct the Criteria Range Headers and Syntax
Matching rows are often missed when criteria headers do not identically match the source data headers, or when values are entered using unnecessary formula syntax.
Copy the header of the column you want to filter from your main data table and paste it into the first row of your criteria range to ensure an exact text match.
Type the exact value you want to match directly into the cell below the criteria header (e.g., type A instead of ="A"). Avoid using formula syntax unless you are specifically setting up a calculated criterion.
Select your entire source data table, navigate to the Data tab, and click Advanced in the Sort & Filter group.
In the Advanced Filter dialog, click the Criteria range box and highlight your criteria headers along with the specific cells containing your criteria values, ensuring no blank rows are selected.

Easily Filter and Extract Data with WPS Spreadsheet
WPS Spreadsheet provides a highly compatible and intuitive Advanced Filter tool, making it simple to extract specific matching rows from large datasets without complicated syntax.
- 1. Prepare your data and criteria: Open your workbook in WPS Spreadsheet, ensure your source data has clear headers, and create a separate criteria range with matching headers.
- 2. Open the Advanced Filter tool: Go to the Data tab on the top ribbon and click on the Advanced Filter icon.
- 3. Configure filter settings: Select 'Filter the list, in-place' or 'Copy to another location'. Then, select your List range and Criteria range.
- 4. Apply the filter: Click OK to instantly view all matching rows or extract them to your designated destination.

Frequently Asked Questions
Why does my Advanced Filter return the entire table instead of matching rows?
This usually happens if your criteria range includes a blank row below the criteria values. Excel interprets a blank criteria row as 'return everything'. Ensure you only select the header and the cells containing your exact criteria.
How do I filter for exact matches using the Advanced Filter?
To force an exact match (e.g., matching 'Apple' but not 'Applesauce'), enter your criteria using the formula format: ="=Apple". Otherwise, the Advanced Filter defaults to 'begins with' matching.
Can I use formula-based criteria in the Advanced Filter?
Yes, you can use formulas that evaluate to TRUE or FALSE for each row. However, when using a formula criterion, the criteria column header must either be left blank or be a completely different text string from any header in your source data.




