Function Problems

How to Exclude Rows Containing Specific Text Using Excel FILTER

Emma BrownEmma Brown Nov 10, 2026 869 views

Question details

The user needs to filter out rows containing specific text (like 'Done') in a dataset using the FILTER function, while avoiding #VALUE! errors.

How to Exclude Rows Containing Specific Text Using Excel FILTER
Product
Microsoft Excel
Device & OS
not provided
Scenario
Applying complex filtering criteria in a spreadsheet where rows containing specific keywords must be excluded without triggering #VALUE! errors.
Observed behavior
Using the SEARCH function inside FILTER causes a #VALUE! error when the target text is not found, breaking the entire array filtering logic.
Before you start

Ensure your spreadsheet software supports dynamic array functions like FILTER. Verify that your dataset is organized in a structured table or defined range without merged cells.

Solution 1Recommended

Use ISERROR and SEARCH with the FILTER Function

Wrap the SEARCH function in ISERROR to handle cases where the text is not found, returning TRUE for rows to keep.

When filtering rows to exclude specific text, the SEARCH function looks for the keyword. If the keyword is not found, it naturally returns a #VALUE! error, which breaks the FILTER function. Wrapping SEARCH inside ISERROR converts this error into a TRUE/FALSE logical statement that FILTER can process safely.

1
Select an output cell

Click on an empty cell where you want the top-left corner of the filtered array to appear.

2
Enter the base FILTER formula

Type the beginning of your formula: =FILTER(Duplicates,

3
Add the exclusion criteria

Use the ISERROR and SEARCH combination to define the text you want to exclude. For example: ISERROR(SEARCH("Done", Duplicates[Notes]))

4
Combine with additional conditions

If you have other criteria, combine them using the multiplication operator (*) for AND logic: =FILTER(Duplicates, condition1 * condition2 * ISERROR(SEARCH("Done", Duplicates[Notes])))

5
Execute the formula

Press Enter to generate the filtered array. The rows containing the word "Done" will be excluded.

Use ISERROR and SEARCH with the FILTER Function
Logical Operators: Use the asterisk (*) to apply AND logic (both conditions must be true) or the plus sign (+) for OR logic (at least one condition is true).
Advanced Data Management

Filter Complex Data Arrays Seamlessly in WPS Spreadsheet

WPS Spreadsheet fully supports dynamic array functions like FILTER, ISERROR, and SEARCH, allowing you to exclude specific text and handle complex datasets effortlessly.

  1. 1. Open your dataset: Launch WPS Spreadsheet and open the file containing your data.
  2. 2. Enter the FILTER formula: Select a blank cell and input the combination formula: =FILTER(A2:C10, ISERROR(SEARCH("ExcludeWord", B2:B10)))
  3. 3. Generate results: Press Enter to instantly populate your filtered data without the excluded keywords.
Fully compatible with Microsoft Excel formulas and array functions.Lightweight architecture runs smoothly even with large datasets.Built-in advanced data analysis and visualization tools.Free and user-friendly interface for immediate productivity.
microsoft office alternative - wps office

Frequently Asked Questions

Why does the SEARCH function return a #VALUE! error in FILTER?

The SEARCH function evaluates each cell for the specified text. If the text is missing, it returns a #VALUE! error instead of a logical FALSE. Because the FILTER function cannot process arrays containing errors, wrapping SEARCH in ISERROR translates the error into a TRUE result, meaning 'text not found', which keeps the row in the filtered results.

Can I exclude multiple different words using ISERROR and SEARCH?

Yes, you can exclude multiple specific words by multiplying several ISERROR statements together within the FILTER function. For example: =FILTER(Data, ISERROR(SEARCH("Word1", Range)) * ISERROR(SEARCH("Word2", Range))).

Is the SEARCH function case-sensitive?

No, the SEARCH function is not case-sensitive. If you need a strict, case-sensitive search to exclude text, use the FIND function instead, wrapped in ISERROR exactly the same way.

What if I want to include rows containing specific text instead of excluding them?

To include rows with specific text, use the ISNUMBER function instead of ISERROR. The formula changes to: =FILTER(Data, ISNUMBER(SEARCH("TargetText", Range))).