How to Create a Search Box in Excel (4 Easy Methods)

While working with a huge set of data in Microsoft Excel, Search box is an important tool to find particular data. A search box makes an Excel Worksheet more dynamic and handier. In this article, we will learn how to create a Search Box in Excel in four simple and suitable ways. You will also find appropriate illustrations of the whole procedure. I hope this article will help to develop your Excel proficiency.


Watch Video – Create a Search Box in Excel


How to Create a Search Box in Excel: 4 Suitable Ways

Let’s take a dataset regarding the Bill Status of ABC Corporation. This dataset consists of four columns (B, C, D, & E) containing fields named Customer ID, Customer Name, Bill, and Status respectively. We have 10 rows of data in the worksheet. From our datasheet, we will use Conditional Formatting, FILTER function, ISNUMBER function, & IFERROR function to create a search box in Excel. Here I am going to show a total overview of these four methods.

Dataset to create a search box


1. Use Conditional Formatting to Create a Search Box in Excel

In this section, we will create a search box using conditional formatting. This is an easy procedure. We will apply conditional formatting to create a search box. Let’s take a look back at our dataset and follow the instructions below to create a search box in Excel.

Steps:

  • Firstly, select a cell where you want to search for any data. For our dataset, I have selected the H2 cell.

Application of conditional formatting to create a search box

  • After that, select cells ranging from B5 to E14.

Conditional Formatting to create a search box

  • Then, go to the Home tab on the toolbar & select Conditional Formatting.

Conditional Formatting to create a search box

  • Under Conditional Formatting, you will find the New Rule option. Click on the New Rule option.

Conditional Formatting to create a search box

  • After entering the new rule option, you will find this window. Select the option Use a formula to determine which cells to format. 
  • After selecting this option, you can see the Formula Bar.

Conditional Formatting to create a search box

  • Then, in this formula bar, Enter the formula given below:
=SEARCH($H$2,$B5&$C5&$D5&$E5)
  • After that, go to the Format option.

Conditional Formatting to create a search box

  • Then select a color to see the searched result in the dataset. Here I have selected the Yellow color. Press the OK button.

Conditional Formatting to create a search box

  • After that, you will find this window and can see the preview of the formatting. Press OK. 

  • Then, you will find the whole dataset in yellow color.

  • Now, in cell H2, search for any data according to the datasheet and you will find the result row colored with yellow color.


2. Introduce FILTER Function to Create a Search Box in Excel

In this section, we are going to learn how to create a Search Box in Excel with the help of the FILTER Function. It is another easy way to create a Search Box in Excel. Here I am going to show the whole procedure with the necessary illustrations.

Steps:

  • Here we have taken the previous dataset.

FILTER Function to create a Search Box

  • Select a cell to make a search box. I have taken cell C16.
  • Now make a result box from B18 to E19. In this result box, you will find the searched result.

FILTER Function to create a Search Box

  • Then, in cell B19, enter the formula given below:
=FILTER(B5:E14,C5:C14=C16, “NO MATCH FOUND”)

In this formula,

  • B5:E14 is the range of values to be filtered.
  • C5:C14=C16 is the criteria to be matched.
  • “NO MATCH FOUND” is the value to be returned when no entries meet the criteria.

FILTER Function to create a Search Box

  • After entering the formula, the search box is ready to work. Enter a name into the search box. You will see the whole result.

Read More: How to Create a Filtering Search Box for Your Excel Data


3. Create a Search Box Using the ISNUMBER Function

In this section, we will learn the method to create a search box by using the ISNUMBER function. It is also a Conditional formatting procedure. Here I will explain the steps to explain the whole process of creating a search box using the ISNUMBER Function with necessary illustrations.

Steps: 

  • First, Select H2 cell to make a search box.

ISNUMBER Formula to create a Search Box

  • After that, from the toolbox, select the Home tab.
  • Then, select conditional formatting from the ribbon. You will find the New Rule option there. Click on it.

ISNUMBER Formula to create a Search Box

  • After that, you will find this window. Select the option Use a formula to determine which cells to format. After selecting this option, you will find a blank formula bar below the options.

ISNUMBER Formula to create a Search Box

  • Then, in the formula bar, write the formula given below:
=ISNUMBER(SEARCH($H$2,B5))
  • After that, click on the Format button.

ISNUMBER Formula to create a Search Box

  • Then, a window will be opened just like below. From the fill tab, select any color. Here I have selected the Blue color. Then press OK.

ISNUMBER Formula to create a Search Box

  • After pressing the OK button, you will find a window just like below. You can preview the selected color. Press OK.

  • Hence, you will see the whole dataset with the same blue color after formatting.

  • Now, search for a name in the search box. You will find the result filled with blue color.


4. Apply IFERROR Function to Create a Search Box in Excel

In this section, we are going to describe the last method to create a search box in Excel. Here we are going to apply the IFERROR function to create a search box in Excel. I think you will find the method easy and interesting. Let’s follow the whole procedure to create a Search box in Excel.

Steps:

  • We have taken a dataset ranging from B4 to D14.

IFERROR Formula to create a Search Box

  • Then, for our convenience, we moved our dataset from B4-D14 to F5-H14.
  • After that, select cell C4 to make a search box.

IFERROR Formula to create a Search Box

  • Then, select E6 cell. Here, enter the formula given below:
=IFERROR(SEARCH($C$4,F6)+ROW()/100000,"")

Here,

  • $C$4 is the text which is going to be searched.
  • F6 is the cell number to perform the search.
  • After searching, the function returns a value.
  • This value is added to the ROW number.
  • Then the value is divided by 100000.
  •  Hence, the IFERROR function returns the exact value if there is no error.
  • “” is the argument meaning the IFERROR function will return nothing if there is no error.

IFERROR Formula to create a Search Box

  • Hence, use the Fill Handle to enter the formula from E6 to E15.

IFERROR Formula to create a Search Box

  • Moreover, select the D6 cell to enter the formula given below:
=IFERROR(RANK(E6,$E$6:$E$15,1),"")

Here,

  • E6 is a value for which we will find the rank.
  • $E$6:$E$15 is a range of cells to be ranked.
  • 1 is a number to specify the order. Here, 1 is for ascending order.
  • Then the IFERROR function will work just like explained earlier.

IFERROR Formula to create a Search Box

  • Hence, use the Fill Handle again to enter the formula from D6 to D15.

IFERROR Formula to create a Search Box

  • After that, input numbers from B6 to B15 as from D6 to D15.

  • Then, in the C6 cell, input the formula given below:
=IFERROR(VLOOKUP(B6,$D$6:$F15,3,FALSE),"")

As you can see,

  • B6 is the cell that you want to look up.
  • $D$6:$F15 is the range of cells you want to look for.
  • 3 is the column number in the range to return the containing value.
  • FALSE indicates to return a match.
  • Then the IFERROR function will work just like explained earlier.

  • After that, use Fill Handle to input the formula to the whole column.

  • At last, you can input data into the search box. You can see the result just like shown below.

 


Things to Remember

  • You need to have Excel 365 on your computer to use the FILTER function. Otherwise, you cannot use the FILTER function to create a search box in Excel.
  • The VLOOKUP Function only looks up from right to left.

Download Practice Workbook

Download the practice workbook to exercise with a given dataset.


Conclusion

I hope these four methods will help you to solve the problems occurring in creating a search box in Excel. I think you will find interest in these methods. If you have any kind of queries, feel free to ask me in the comment section.


Related Articles


<< Go Back to Search Box in Excel | Data Management in Excel | Learn Excel

Get FREE Advanced Excel Exercises with Solutions!
Souptik Roy
Souptik Roy

Souptik Roy, a BSc graduate in Naval Architecture and Marine Engineering from Bangladesh University of Engineering and Technology, dedicated 1.5 years to the ExcelDemy project. During this time, he authored 50+ articles and reviewed 20+ for ExcelDemy. Presently, he is a designer and content developer at YouHaveGotThisMath and Brainor, sister concerns of ExcelDemy. His educational content spans science, mathematics, and grammar. Roy's interests include developing creative ideas, visualizing concepts with tools like Adobe Illustrator, and problem-solving within Microsoft... Read Full Bio

We will be happy to hear your thoughts

Leave a reply

Advanced Excel Exercises with Solutions PDF

 

 

ExcelDemy
Logo