How to Filter Cells Containing #NAME? Error in Excel
Question details
The user is trying to filter a dataset to show only the cells containing the #NAME? error, but selecting the error from the standard AutoFilter checkbox fails to return the expected matching cells.

- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Filtering a spreadsheet column to isolate and correct #NAME? formula errors.
- Observed behavior
- Selecting the #NAME? value from the filter list does not display the matching cells because Excel interprets the question mark (?) in the error text as a single-character wildcard.
Ensure that your worksheet has filters enabled via the Data tab and that you have not accidentally hidden the rows containing the formula errors manually.
Use the Equals Filter to Find #NAME?
Bypass Excel's wildcard interpretation by using the specific Equals filter criteria.
By default, Excel's AutoFilter treats the question mark (?) in #NAME? as a wildcard character representing any single character. Selecting it directly from the list confuses the filter. Using the custom Equals filter forces Excel to treat the text literally.
Click the AutoFilter drop-down arrow on the column header that contains the formula errors.
Hover your mouse over 'Number Filters' (or 'Text Filters', depending on the column's primary data type) to expand the secondary menu.
Click on 'Equals...' from the sub-menu to open the Custom AutoFilter dialog box.
In the criteria box next to 'equals', type #NAME? exactly as it appears in your spreadsheet.
Click 'OK' to apply the filter. Your worksheet will now successfully display only the rows containing the #NAME? error.

Use a Tilde (~) to Escape the Question Mark Wildcard
Use Excel's escape character to search for a literal question mark directly in the filter search bar.
Try WPS Office for Seamless Spreadsheet Management
If you frequently encounter frustrating quirks with Microsoft Excel's filtering and wildcard rules, consider switching to WPS Office. It provides a lightweight, highly compatible spreadsheet tool that makes data management and error troubleshooting straightforward and intuitive.

Frequently Asked Questions
Why does Excel treat the question mark as a wildcard?
In Excel, the question mark (?) is a built-in wildcard character used in searches and filters to represent any single unknown character. This is highly useful for partial matches but causes unintended issues when searching for literal question marks, such as those found in the #NAME? error.
What does the #NAME? error mean in Excel?
The #NAME? error occurs when Excel does not recognize text in a formula. It usually happens due to a misspelled function name, missing quotation marks around text strings, or referencing a named range that does not exist in the workbook.
Can I use the tilde (~) to escape wildcards in other Excel features?
Yes, you can use the tilde (~) to escape wildcard characters like asterisks (*) and question marks (?) in standard Find and Replace (Ctrl+F / Ctrl+H) dialogs, as well as in specific formulas like COUNTIF, SUMIF, or VLOOKUP.
How do I clear the filter to see all my data again?
To remove the filter and reveal hidden rows, click the funnel icon with a red 'X' on the column header, or go to the Data tab on the ribbon and click the 'Clear' button located in the Sort & Filter group.




