Fix Excel FILTER Function Not Showing a No Results Message
Question details
The user needs to make the FILTER function display a specific custom message when no data matches the given criteria, instead of returning an error or a header row.

- Product
- Spreadsheet
- Device & OS
- not provided
- Scenario
- Filtering a dataset using the FILTER function with an 'if_empty' parameter configured to show a custom message when no matching records are found.
- Observed behavior
- The formula incorrectly returns the header row or fails to display the custom message, often due to entire-column references capturing text headers during numeric comparisons.
Verify your dataset structure to identify exactly where your header row ends and the actual numeric or text data begins before modifying your formulas.
Exclude the Header Row and Define Specific Ranges
Prevent text headers from interfering with numerical logical tests by defining precise data ranges instead of using entire-column references.
When using entire columns (like A:G) in a FILTER function, the text header row is included in the evaluation. If your criteria is a numerical comparison (such as >12000), the text header might satisfy the condition differently than expected, causing the function to output the header instead of the 'if empty' message.
Locate the exact rows containing your data, starting immediately below the header row (for example, A2:G1000).
Modify your existing formula to use the exact range. Enter =FILTER(A2:G1000, G2:G1000>12000, "No entries") into your target cell.
Press Enter to execute the function. Test it by temporarily changing the criteria to a value you know doesn't exist to ensure the 'No entries' message appears.

Combine FILTER with a COUNTIF Logical Check
Use an IF and COUNTIF function combination to explicitly verify if any matching records exist before the FILTER function even runs.
Easily Filter Data Using Formulas in WPS Spreadsheet
WPS Spreadsheet provides powerful support for dynamic array formulas including FILTER, IF, and COUNTIF, allowing you to seamlessly analyze and extract data without errors.
- 1. Open your workbook: Launch WPS Spreadsheet and open the document containing your dataset.
- 2. Start the FILTER function: Select an empty cell and type =FILTER( to bring up the intuitive formula tooltip.
- 3. Select your exact data range: Highlight your data using the mouse, making sure to start below the header row to avoid text comparison errors.
- 4. Input criteria and finish: Type your condition, add your custom message in quotes (e.g., "No results found"), close the parenthesis, and press Enter.

Frequently Asked Questions
Why does my FILTER formula return a #CALC! error?
The #CALC! error typically occurs when the FILTER function finds no matching results and you haven't provided a custom 'if_empty' parameter. You can fix this by adding a message at the end of your formula, like =FILTER(A2:B10, B2:B10>5, "No results").
Can I use multiple criteria with the FILTER function?
Yes, you can use multiple criteria. Multiply conditions using an asterisk (*) for AND logic, or add them using a plus sign (+) for OR logic. For example: =FILTER(A2:C10, (A2:A10="Red")*(B2:B10="Large"), "None found").
Why is referencing entire columns bad for some Excel formulas?
Referencing an entire column (like A:A) forces the spreadsheet to evaluate over one million rows, which can slow down performance. Additionally, it includes the header row, which can cause unexpected results when mixing text headers with numeric formula criteria.




