Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sierras
 
Posts: n/a
Default Advanced Filter contains part of a word

I'm trying to get an advanced filter to work so that it will bring back
all records with part of the word rather than just the start of a word.
This works very well when I use AutoFilter with the "Contains" criteria.
But when I do an advanced filter, only records that start with the word
get filtered. What do I have to do to get all the records. Thanks...
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ron Coderre
 
Posts: n/a
Default Advanced Filter contains part of a word

Try something like this:

If Col_A, beginning at A1, contains the text values, has a heading of
MyText, and you want to find records where Col_A contains the word "turtle":

The criteria range could be:

C1: MyText
C2: *turtle*

Does that help?

***********
Regards,
Ron

XL2002, WinXP-Pro


"Sierras" wrote:

I'm trying to get an advanced filter to work so that it will bring back
all records with part of the word rather than just the start of a word.
This works very well when I use AutoFilter with the "Contains" criteria.
But when I do an advanced filter, only records that start with the word
get filtered. What do I have to do to get all the records. Thanks...

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Aladin Akyurek
 
Posts: n/a
Default Advanced Filter contains part of a word

Wrap the criterion that you use inside two * wildcards.

Sierras wrote:
I'm trying to get an advanced filter to work so that it will bring back
all records with part of the word rather than just the start of a word.
This works very well when I use AutoFilter with the "Contains"
criteria. But when I do an advanced filter, only records that start
with the word get filtered. What do I have to do to get all the
records. Thanks...

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sierras
 
Posts: n/a
Default Advanced Filter contains part of a word

I have something like this:

Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Count 1 Then Exit Sub
If Target.Address = "$A$2" Or _
Target.Address = "$B$2" Then
Range("Database").AdvancedFilter _
Action:=xlFilterInPlace, _
Unique:=False
End If
End Sub

This is code when you right click the tab. I tried putting "*" in various
places in this code but can't get it to work. The only way is to put a
"*" before any word I'd like to search for. This works, but I'd like to
be able have it do it automatically so that I just have to type the word
I'm looking for without any "*"'s.

Thanks..


On Wed, 08 Mar 2006 14:21:49 -0500, Aladin Akyurek
wrote:

Wrap the criterion that you use inside two * wildcards.

Sierras wrote:
I'm trying to get an advanced filter to work so that it will bring
back all records with part of the word rather than just the start of a
word. This works very well when I use AutoFilter with the "Contains"
criteria. But when I do an advanced filter, only records that start
with the word get filtered. What do I have to do to get all the
records. Thanks...




--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Advanced Filter criteria (formula) Gareth Excel Worksheet Functions 3 December 20th 05 09:12 PM
How do I filter columns and rows for a certain word in Excel? Sebastian Excel Discussion (Misc queries) 1 December 1st 05 04:11 PM
Delete rows based on multiple criterias Benson Excel Discussion (Misc queries) 8 November 2nd 05 03:11 PM
Advanced filter and Criteria Range gearoid Excel Discussion (Misc queries) 2 July 20th 05 02:33 PM
missing or ill egal extract range advanced filter tjtjjtjt Excel Discussion (Misc queries) 3 July 10th 05 10:06 PM


All times are GMT +1. The time now is 08:18 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"