logo
search
Formula Errors

How to Filter Cells Containing #NAME? Error in Excel

Chanuka GeekiyanageChanuka Geekiyanage Sep 28, 2026 869 views

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.

How to Fix Excel AutoFilter Not Finding #NAME? Error 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.
Before you start

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.

Solution 1Recommended

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.

1
Open the Filter Menu

Click the AutoFilter drop-down arrow on the column header that contains the formula errors.

2
Navigate to Custom Filters

Hover your mouse over 'Number Filters' (or 'Text Filters', depending on the column's primary data type) to expand the secondary menu.

3
Select Equals

Click on 'Equals...' from the sub-menu to open the Custom AutoFilter dialog box.

4
Enter the Error Text

In the criteria box next to 'equals', type #NAME? exactly as it appears in your spreadsheet.

5
Apply the Filter

Click 'OK' to apply the filter. Your worksheet will now successfully display only the rows containing the #NAME? error.

Use the Equals Filter to Find #NAME?
Literal Search Applied: The Equals filter ignores the standard wildcard rules for the question mark, allowing you to easily locate and correct your formula errors.
Free Microsoft Office alternative

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.

Fully compatible with Microsoft Excel formats (.xlsx, .xls, .csv)Intuitive filtering and data analysis tools without the steep learning curveFree to download and use with a lightweight installationBuilt-in formula troubleshooting and effortless error checking
microsoft office alternative - wps office

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.