How to Put a Search Bar in Excel
In this article
Excel has no built-in search bar you can drop onto a sheet, but you can build one in about five minutes using a cell for input, a helper column, and a filter. The simplest working setup: type a search term into a designated cell, use a formula like =ISNUMBER(SEARCH($B$1,A5)) in a helper column, then apply a filter to show only rows where the helper returns TRUE. This works in Excel for Microsoft 365, Excel 2021, and Excel 2019 on Windows and Mac; labels may differ slightly by version and region.
What You'll Need
- Excel 2019 or later, or Microsoft 365 (the SEARCH and FILTER functions used here are available in these versions).
- A table of data with a header row — for example, columns for Product, Category, and Price.
- One empty cell reserved for the search term (this guide uses B1).
- One empty column next to your data for the helper formula (this guide uses column D).
Step-by-Step
- Set up your data as a table. Select any cell in your data range, then go to Insert > Table and confirm the range. A table makes filtering and formula filling easier. If you prefer not to use a table, just ensure your data has a clear header row and no blank rows.
- Reserve a search cell. Click cell B1 (or any empty cell above your data) and type a label in A1 such as “Search:”. Leave B1 empty for now — this is where you will type your search term. Format B1 with a light fill color so it stands out.
- Add a helper column. In the first empty column to the right of your data (say D1), type a header such as “Match”. In D2, enter the formula
=ISNUMBER(SEARCH($B$1,A2)). This returns TRUE if the text in A2 contains the search term, and FALSE otherwise. The dollar signs lock the search cell so the formula always looks at B1. - Copy the formula down. Drag the fill handle from D2 down to the last row of your data, or double-click the fill handle to auto-fill. Every row now shows TRUE or FALSE based on the current search term.
- Apply a filter to the helper column. Click the filter arrow in D1 (if you used a table, filters appear automatically; otherwise go to Data > Filter). Uncheck FALSE so only rows where the helper is TRUE remain visible. Now typing a term in B1 and refreshing the filter shows only matching rows.
- Test it. Type part of a word from your data into B1, press Enter, then re-apply the filter (Data > Filter > Reapply, or click the filter arrow and OK). Rows that contain the term stay visible; the rest hide. Clear B1 to show everything again — the helper returns TRUE for all rows when the search cell is empty.
- Optional: make it dynamic with FILTER (Microsoft 365 and Excel 2021). In a separate area, enter
=FILTER(A2:C100,ISNUMBER(SEARCH(B1,A2:A100)),"No matches"). This spills a live list of matching rows that updates as you type, with no manual filter refresh. Adjust the ranges to match your data.
Common Mistakes
- Forgetting the dollar signs. Without
$B$1, the reference shifts as you copy the formula down, and later rows search the wrong cell. - Searching only one column. The formula above checks column A only. To search across several columns, wrap multiple SEARCH checks in OR, e.g.
=OR(ISNUMBER(SEARCH($B$1,A2)),ISNUMBER(SEARCH($B$1,B2))). - Not reapplying the filter. Typing a new term does not automatically refresh a standard filter. Use Data > Filter > Reapply, or switch to the FILTER function for live results.
- Leaving blank rows in the data. Auto-fill stops at the first blank row, leaving later rows without a helper formula and therefore always hidden.
- Case sensitivity confusion. SEARCH is not case-sensitive; FIND is. Use SEARCH unless you specifically need exact case matching.
Tips
- Put the search cell and helper column on the same sheet as the data to keep references simple; if you move them, update the formula references.
- Use a table (Insert > Table) so the helper formula auto-fills new rows as you add data.
- For a cleaner look, hide the helper column after setting up the filter — the filter still works.
- To search for wildcard characters like * or ?, precede them with a tilde (~) in the search term.
- If you use the FILTER function, place the results on a different area or sheet to avoid overlapping your source data.
Troubleshooting
- All rows show FALSE even with a term typed. Check that B1 actually contains the term (no leading space), and that the formula references the correct search cell. Press F2 in the helper cell to inspect the reference.
- Filter shows no results. The filter may still be set to hide TRUE, or the search term may not exist in the searched column. Clear the filter and try a shorter term.
- Formula returns #VALUE!. This usually means the search cell is empty and the formula is trying to search for nothing in some Excel versions. Type a term or wrap the formula in IFERROR to display a blank instead.
- FILTER function not available. It requires Microsoft 365 or Excel 2021. In older versions, use the helper-column and filter method instead.
- Search bar disappears when sorting. If your search cell sits inside the table, sorting can move it. Keep the search cell outside the table range, or above the header row.
Frequently Asked Questions
Can I search across multiple columns at once?
Yes. Use an OR wrapper around several SEARCH checks in the helper column, or in the FILTER function include multiple ISNUMBER(SEARCH(...)) conditions separated by plus signs (which act as OR in array logic).
Does this work in Excel for Mac?
Yes. The SEARCH, ISNUMBER, and FILTER functions and the filter interface work the same on Excel for Mac 2019 and later, though menu locations may differ slightly.
Can I make the search bar look like a real search box?
You can style cell B1 with a border, fill color, and a light gray placeholder text in an adjacent cell. Excel does not support true placeholder text inside a cell, but a label in A1 achieves a similar effect.
Why does my search return partial matches?
SEARCH finds the term anywhere inside the cell, so “app” matches “apple” and “application”. To match whole cells only, use =A2=$B$1 instead of SEARCH.
Can I search for numbers?
Yes, but SEARCH converts numbers to text. For numeric columns, use =ISNUMBER(SEARCH($B$1,TEXT(A2,"0"))) or simply compare with =A2=$B$1 if you need exact matches.
Is there a built-in search bar I can add?
No. Excel has Find (Ctrl+F) and the Filter arrows, but no insertable search box control. The helper-column method above is the standard workaround.