efficient 3 column search !? please help!

ewat

New Member
Joined
Feb 3, 2004
Messages
13
hi guys,

ive gotten some code to do a 3column search (ie. finding columns by matchign 3 pieces of data given)..but its a bit brute-force like - it finds the first bit, then matches the other 2...so records on the bottom will take the longest in a way

anyway..my excel sheet is around 30k rows long, so this isn't very efficient =( is there a smart way to do this? (all in vba btw)...i was thinking of maybe having a sorted column somehow?

any help greatly appreciated
 
Sorry, when you say play what specifically do mean? E.g., copy, delete, modify, etc... Which sheet do you want to look at?
 
Upvote 0

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
ok! i think this looks neater:

--------------

Sub chuckin2()
Call insertion("3F10WS", "FOUND")
End Sub

Sub insertion(ByVal ID As String, ByVal ltype As String)
Sheet3.Cells.AutoFilter Field:=8, Criteria1:=ID
End Sub

---------------

i get returned 1 row in sheet 3.

i wish to then insert something in say column E <row number is somethin huge>

not sure how to get to it =\
 
Upvote 0

Forum statistics

Threads
1,216,113
Messages
6,128,903
Members
449,477
Latest member
panjongshing

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