Function Problems

Keep Excel FILTER Search Results Blank When the Search Box Is Empty

Huda QurayshiHuda Qurayshi Nov 12, 2026 869 views

Question details

Keep a contact-list FILTER search area blank when the search cell is empty and display clickable email addresses in the returned results.

Keep Excel FILTER Search Results Blank When the Search Box Is Empty
Product
Microsoft Excel
Device & OS
not provided
Scenario
A worksheet searches a Contactlist table using the value entered in cell I3 across System/function, Name, and Comment columns.
Observed behavior
Without an empty-cell check, the FILTER formula returns every contact when the search box in I3 is blank.
Before you start

Confirm that I3 is the intended search box and that Contactlist is an Excel table with columns named System/function, Name, Comment, and Email. Make sure the formula output range has enough empty cells for spilled results.

Solution 1Recommended

Wrap the FILTER formula in an IF test for an empty search box

Use this method when you want the results area to remain blank until someone enters a search term in cell I3.

The IF test checks whether I3 is blank before Excel evaluates the FILTER function. When I3 contains text, FILTER searches the specified contact-list columns and returns matching rows.

1
Select the first results cell

Click the top-left cell where the contact search results should appear, such as the first cell directly below your search results headers.

2
Enter the blank-search FILTER formula

Enter =IF(I3="","",FILTER(Contactlist,ISNUMBER(SEARCH(I3,Contactlist[System/function]))+ISNUMBER(SEARCH(I3,Contactlist[Name]))+ISNUMBER(SEARCH(I3,Contactlist[Comment])),"No results")) and press Enter.

3
Test the search behavior

Clear cell I3 to confirm the results area stays blank, then type a word or name in I3 to return matching contacts.

Wrap the FILTER formula in an IF test for an empty search box
How the formula handles no matches: If I3 contains a search term but no rows match, the formula displays "No results". If I3 is empty, it displays a blank result instead.
Work with contact searches in WPS Spreadsheets

Build a blank-until-searched contact list in WPS Spreadsheets

WPS Spreadsheets lets you create searchable contact tables with dynamic FILTER formulas and clickable mailto links. Use an IF condition to avoid displaying the full list before a user enters a search term.

  1. 1. Open the contact workbook: Open the .xlsx file in WPS Spreadsheets and select the first cell of the search results area.
  2. 2. Set up the search cell: Use a cell such as I3 as the search input and ensure users enter their keyword in that cell.
  3. 3. Enter the conditional FILTER formula: Enter the IF and FILTER formula in the first result cell so an empty I3 returns a blank value while entered text returns matching rows.
  4. 4. Add email hyperlinks: In a helper column, enter =HYPERLINK("mailto:"&[@[Email]],[@[Email]]) to display each address as a clickable email link.
Keep FILTER results blank until a contact search term is entered.Create clickable email addresses with the HYPERLINK mailto function.Open and edit Microsoft Excel .xlsx contact-list workbooks with strong format compatibility.Use a familiar spreadsheet interface for formulas, tables, and dynamic results.
microsoft office alternative - wps office

Frequently Asked Questions

Why does FILTER return all contacts when my search cell is blank?

SEARCH with a blank search term can match text in every row, so FILTER includes the entire table. Place FILTER inside IF(I3="","",...) to stop the calculation when I3 is empty.

How can I show a message when no contact matches the search?

Use the third FILTER argument for the no-match message, such as FILTER(Contactlist,include,"No results"). In the conditional formula, this message appears only after text has been entered in I3.

Can the formula search more than one column in the contact table?

Yes. Add separate ISNUMBER(SEARCH()) tests for each table column and join them with +. This works as an OR condition, so a match in System/function, Name, or Comment returns the row.

How do I make an email address clickable in an Excel table?

Add a helper column and enter =HYPERLINK("mailto:"&[@[Email]],[@[Email]]). The structured reference uses the Email value from the current table row.

What should I check if the FILTER formula shows a spill error?

Select the formula cell and clear any values, merged cells, or table content blocking the cells where the filtered results need to spill. Also ensure the output area is outside an Excel table if the dynamic array cannot expand there.