Filter through a table, and display the results as you type

dpaton05

Well-known Member
Joined
Aug 14, 2018
Messages
2,392
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
I have made a spreadsheet for work and I need to create a way to easily search through it, looking for data. I have used the new table feature in excel to record everything. I know you can select the down arrow at the right of the header and then you can unselect everything in the list then scroll through the list and pick what you want to appear from the column, press ok and it will show that row.

I want a simpler process than this. I would like a text box where you type what you are looking for and as you type, it searches through everything in that row and narrows the search down to rows that have text in them that satisfy the search criteria.

If this is possible, can someone show me how to do it, please?
 
.....actually, I have just thought of a better approach. I think that all I really need is to do the standard search from hitting ctrl+F, only that I want it to use the text in textbox1.

I tried to record a macro so I could use the code, but it didn't work. I wanted the code to search through the spreadsheet for some text. This is the code I tried to use:
VBA Code:
Cells.Find(What:=TextBox1.Value, After:=ActiveCell, LookIn:=xlFormulas2, LookAt _
        :=xlPart, SearchOrder:=xlByRows, SearchDirection:=xlNext, MatchCase:= _
        False, SearchFormat:=False).Activate
 
Upvote 0

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.

Forum statistics

Threads
1,225,621
Messages
6,186,056
Members
453,336
Latest member
Excelnoob223

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top