Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel filter options

I want to be able to do multiple search on a column but i don't want
to be restricted to the exact description. ( "York City" or
"Jersey State" or "New Jersey State")
Exp: Column 5
" New York City"
"New York State"
"New Jersey City"
"New Jersey State"

maybe if i can use "And" between words or even a " + " sign.
like: "New + State" or "New + City"
Please help!!!!
thank you
---------------------------------------------------------------------------------
Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Cells.Count 1 Then Exit Sub
If Intersect(Target, Me.Range("A4")) Is Nothing Then Exit Sub
If Me.AutoFilterMode = False Then Exit Sub

If Me.FilterMode = True Then
Me.ShowAllData
End If

If Trim(Target.Value) = "" Then Exit Sub 'after clearing filter.

Me.AutoFilter.Range.AutoFilter _
Field:=21, Criteria1:="*" & Target.Value & "*"
-------------------------------------------------------------------------------
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 421
Default Excel filter options

Hi Support,

Consider using Excel's Advanced Filter tool.

See Debra Dalgleish at:

Excel -- Filters -- Advanced Filter -- Complex Criteria
http://www.contextures.com/xladvfilter02.html



---
Regards.
Norman


wrote in message
...
I want to be able to do multiple search on a column but i don't want
to be restricted to the exact description. ( "York City" or
"Jersey State" or "New Jersey State")
Exp: Column 5
" New York City"
"New York State"
"New Jersey City"
"New Jersey State"

maybe if i can use "And" between words or even a " + " sign.
like: "New + State" or "New + City"
Please help!!!!
thank you
---------------------------------------------------------------------------------
Private Sub Worksheet_Change(ByVal Target As Range)

If Target.Cells.Count 1 Then Exit Sub
If Intersect(Target, Me.Range("A4")) Is Nothing Then Exit Sub
If Me.AutoFilterMode = False Then Exit Sub

If Me.FilterMode = True Then
Me.ShowAllData
End If

If Trim(Target.Value) = "" Then Exit Sub 'after clearing filter.

Me.AutoFilter.Range.AutoFilter _
Field:=21, Criteria1:="*" & Target.Value & "*"
-------------------------------------------------------------------------------

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Excel filter options

On May 30, 12:36 pm, "Norman Jones"
wrote:
Hi Support,

Consider usingExcel'sAdvancedFiltertool.

See Debra Dalgleish at:

Excel-- Filters -- AdvancedFilter-- Complex Criteria
http://www.contextures.com/xladvfilter02.html

---
Regards.
Norman

wrote in message

...

I want to be able to do multiple search on a column but i don't want
to be restricted to the exact description. ( "York City" or
"Jersey State" or "New Jersey State")
Exp: Column 5
" New York City"
"New York State"
"New Jersey City"
"New Jersey State"


maybe if i can use "And" between words or even a " + " sign.
like: "New + State" or "New + City"
Please help!!!!
thank you
---------------------------------------------------------------------------------
Private Sub Worksheet_Change(ByVal Target As Range)


If Target.Cells.Count 1 Then Exit Sub
If Intersect(Target, Me.Range("A4")) Is Nothing Then Exit Sub
If Me.AutoFilterMode = False Then Exit Sub


If Me.FilterMode = True Then
Me.ShowAllData
End If


If Trim(Target.Value) = "" Then Exit Sub 'after clearingfilter.


Me.AutoFilter.Range.AutoFilter _
Field:=21, Criteria1:="*" & Target.Value & "*"
-------------------------------------------------------------------------------


Yes i did thank you
i was able to work around it with using wild cards " * "
its not exactly what i wanted but it works.
Exp:
"New * City"

but the only reason why i am able to used is because its in order
Exp:
"New * City" = Correct

"City * New" = Not Correct

let me know if you have any ideas on what i should do.

thank you




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
Limit filter options in Auto Filter lista72 Excel Discussion (Misc queries) 1 January 23rd 08 04:01 PM
filter: how to print filter list options in dropdown box help please Excel Discussion (Misc queries) 2 October 17th 07 01:53 AM
Automatic Filter Options jrw Excel Worksheet Functions 1 March 15th 07 06:20 AM
Automatic Filter Options jrw Excel Worksheet Functions 1 March 15th 07 06:19 AM
filter options in excel 2007 Bartje Excel Discussion (Misc queries) 0 September 8th 06 02:01 PM


All times are GMT +1. The time now is 04:31 AM.

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

About Us

"It's about Microsoft Excel"