Finder in Excel

slora00

New Member
Joined
Sep 8, 2022
Messages
25
Office Version
  1. 2016
Platform
  1. Windows
Hello community, I hope you're all doing great.

I need to make a "finder" tool on Excel, that basically, searches through a pretty simple and small database (only 6 columns x 15k rows), and return every possible result based on what's being searched. So, the database has ID, NAME, LAST NAME, GENDER, DOB and AGE as columns, and it's on sheet "Data". On sheet "Finder", I need to build something (it could be with formulas or macros, whatever works best), that if I'm searching by ID, and I miswrite 3 out of the 12 numbers, the tool still shows me all the possible results. For example, lets say there are 4 people whose IDs end in 1234, and the search I try to do ends on 1235, then, those 4 people should show up on the results.

Let me know if you have any idea of how this could be done.
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
If D1 is your input cell

VBA Code:
Sub jec()
On Error Resume Next
Range("a1").CurrentRegion.AutoFilter 1, Filter([transpose(if(left(right(d1,4),3)=left(right(a2:a5,4),3),a2:a5))], False, 0), 7
End Sub

Book4
ABCD
1nmrnameblabla1235
21234a
31235b
41234c
55236d
Sheet1
 
Upvote 0

Forum statistics

Threads
1,215,072
Messages
6,122,968
Members
449,095
Latest member
Mr Hughes

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