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

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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