How to Create a Search Box in Excel (4 Easy Methods)
How to Create a Search Box in Excel (4 Easy Methods)
Home » Excel Formulas » How to Create a Search Box in Excel (4 Easy Methods)
We have a dataset regarding the Bill Status of a Corporation. This dataset consists of four columns:
Customer ID, Customer Name, Bill, and Status. We have 10 rows of data in the worksheet. We will
create a search box to go through the dataset.
Ad : (0:04)
Steps:
Make a cell where you want to search for any data. We have selected the H2 cell.
You’ll get a New Formatting Rule window. Select the option Use a formula to determine which
cells to format.
You’ll get a Formula Bar.
=SEARCH($H$2,$B5&$C5&$D5&$E5)
Go to Format.
Select a color to see the searched result in the dataset from the Fill tab. We have selected a
yellow color.
Press the OK button.
The whole dataset will be highlighted since the search box is empty.
In cell H2, enter any text, and you will find the resulting row highlighted in yellow.
Steps:
Select a cell to make a search box. We’ll use cell C16. Add borders and some surrounding
formatting if you want.
Make a result box from B18 to E19. This will display the resulting rows.
In this formula, B5:E14 is the range of values to be filtered, C5:C14=C16 is the criteria to be matched,
and “NO MATCH FOUND” is the value to be returned when no entries meet the criteria.
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
Steps:
Select the H2 cell to make a search box and format it a bit (see image).
=ISNUMBER(SEARCH($H$2,B5))
From the Fill tab, select any color. We have selected a blue color.
Press OK.
You will see the whole dataset with the same blue color after formatting.
Search for a value in the search box. You will find the result filled with blue color.
Steps:
=IFERROR(SEARCH($C$4,F6)+ROW()/100000,"")
After searching, the function returns a value. This value is added to the ROW number, and then
divided by 100000.
“” is the argument meaning the IFERROR function will return nothing if there is no error.
=IFERROR(RANK(E6,$E$6:$E$15,1),"")
=IFERROR(VLOOKUP(B6,$D$6:$F15,3,FALSE),"")
Then the IFERROR function will work just like explained earlier.
Use the Fill Handle to input the formula to the whole column.
Input data into the search box. You can see the result below.
You can apply additional formatting or hide the helper columns.
Things to Remember
https://www.exceldemy.com/create-a-search-box-in-excel/#:~:text=Steps: 1. Make a cell where you want to search 37/41
11/18/24, 4:21 PM How to Create a Search Box in Excel (4 Easy Methods)
Related Articles
Create a Search Box in Excel with VBA
How to Create a Search Box in Excel Without VBA
How to Create a Search Box in Excel for Multiple Sheets
1
Save Facebook Twitter
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
LEAVE A REPLY
Submit
When to Use Array Formulas vs. Dynamic Arrays in Excel How to Create a Search Box in Excel for Multiple
Summarizing Excel Sheets with AI Using GPT Excel Sheets (2 Methods)
Submit Excel
See Our Reviews at Task
Contact | Privacy Policy | TOS
ExcelDemy
Online Training
ExcelDemy is a Guiding Tech Media company. Copyright © 2013-2024 ExcelDemy | All Rights Reserved.