Excel Column Text Filter - Whole Word Only

Boomer72

New Member
Joined
Mar 21, 2022
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
I have a sheet that has a text description column that holds paragraphs of text.

When I text filter using contains on that column for a word such as "plan", I get cells that contain words like: explanation, plans, planning, unplanned.

How can I use the text filter without getting the additional words.

My simple solution was to add a space before and after the word " plan ", but it is not recognizing the blank spaces.

Thanks so much!~
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
I don't think you can do it in one step with AutoFilter. See here for one solution to a similar problem. It would involve using a helper column however.
 
Upvote 0
You could use vba to filter but if going with the helper column then you do not need a user-defined function as suggested in the above link
You can do it like this, put the word you want to filter on as the heading of the helper column (or in any other cell), copy the formula from row 2 down and filter on TRUE

22 03 22.xlsm
CD
1Hdrplan
2Plan aheadTRUE
3Good planningFALSE
4Heavy goods were involvedFALSE
5A good day is one with a planTRUE
AF Word
Cell Formulas
RangeFormula
D2:D5D2=ISNUMBER(SEARCH(" "&D$1&" "," "&C2&" "))


If you then want to filter on "good", enter that in the header & re-filter on TRUE
 
Upvote 0

Forum statistics

Threads
1,223,648
Messages
6,173,555
Members
452,520
Latest member
Pingaware

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