Excel 2007 Advanced lookup Issue

purceld2

Well-known Member
Joined
Aug 18, 2005
Messages
586
Office Version
  1. 2013
Platform
  1. Windows
I perform an advanced filter on some data and am getting unexpected results (see below). I enter "BK146" along with other lookup criteria but get the results below. For some reason it is bring back all values in the lookup data that begin with BK146.

How can I get around this problem where it just return the value I entered.

Thanks in advance for your help

Excel Workbook
ABCDE
1NameNBCVenue4434
2Network CodeSite CodeVenue CodeVenue TypeStatus
213NBCBK146ConvenienceLive
229NBCBK1465ConvenienceLive
230NBCBK1466ConvenienceLive
383NBCBK1460ConvenienceLive
446
447
448
449Venue Code
450BK146
451
452
NBC3
 

Excel Facts

What is the shortcut key for Format Selection?
Ctrl+1 (the number one) will open the Format dialog for whatever is selected.
Hi There,

I wonder if someone can help the above problem is solved when and avandard filter is manuallly used.

But a past employee uses a FIND Method in the Code which give tme the same problem.

I locate the Find in the code and as advise changed the LookAt from xlpart to xlwhole and I still get the same results

Case 1:
On Error Resume Next
Last = rng.Find(What:="*", _
After:=rng.Cells(1), _
LookAt:=xlPart, _
LookIn:=xlFormulas, _
SearchOrder:=xlByRows, _
SearchDirection:=xlPrevious, _
MatchCase:=False).Row
On Error GoTo 0

Can any advise how I can get the code to do an exact match and not bring back the above results.
 
Upvote 0
If you want to find an asterisk you need to precede it with a tilde, because it's a wildcard:

Rich (BB code):
Last = rng.Find(What:="~*", _
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,459
Members
452,915
Latest member
hannnahheileen

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