Advanced Search - Find only exact word in string

SimoninParis

New Member
Joined
Mar 2, 2012
Messages
25
Hello fellow Excel vba fans,

I am storing around 50 fields and there will be in excess of 2000 records. This will effectively become a searchable library. Most of the fields are different categories; setting up the advanced filters and output were relatively easy to set up.

One field/column contains transcripts. I require to be able to filter entries that contain a substring with the options "including" and "exact". The including is easy. However, if I search/filter for "head", I either get all entries with "head" as well as "ahead", "heading", "headed" etc. or I get nothing! The difference being how I enter the criteria.

Am I being particularly dim? Does anyone know how I can overcome my problem? Do I need some form of alchemy involving INSTR and MID?

All/any help will be gratefully received.

Thanks in advance,
Simon
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Hi Dave,

I have tried using " head " and Chr(32) & "head" & Chr(32); they did not provide the required result....
 
Upvote 0

Forum statistics

Threads
1,215,263
Messages
6,123,958
Members
449,135
Latest member
jcschafer209

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