Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
PAG PAG is offline
external usenet poster
 
Posts: 14
Default search criteria - auto filter

Hi,

Is there another VBA way I can use to show more than 2 values to search for
in a column. I would like to seacrh for 3 value in a column and show the
results in the entire row.

Selection.AutoFilter Field:=15, Criteria1:="=*fid*", Operator:=xlOr, _
Criteria2:="=*COLCHESTER*" I wanted to also search for a third
value of Criteria3:="=*TAX-EXEMPT*"

Hope that make sense.

Peter
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default search criteria - auto filter

You could learn about advanced filter (using a criteria range).

Or you could use a helper column that has a formula that does that for you.

=or(countif(o2,"*fid*")0,countif(o2,"*colchester* ")0,countif(o2,"*xx*"))

This would return True or false. Then filter by this to show the True's.

PAG wrote:

Hi,

Is there another VBA way I can use to show more than 2 values to search for
in a column. I would like to seacrh for 3 value in a column and show the
results in the entire row.

Selection.AutoFilter Field:=15, Criteria1:="=*fid*", Operator:=xlOr, _
Criteria2:="=*COLCHESTER*" I wanted to also search for a third
value of Criteria3:="=*TAX-EXEMPT*"

Hope that make sense.

Peter


--

Dave Peterson
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default search criteria - auto filter

ps.

Debra Dalgleish shares some notes about advanced filtering with a criteria
range:
http://contextures.com/xladvfilter02.html

Dave Peterson wrote:

You could learn about advanced filter (using a criteria range).

Or you could use a helper column that has a formula that does that for you.

=or(countif(o2,"*fid*")0,countif(o2,"*colchester* ")0,countif(o2,"*xx*"))

This would return True or false. Then filter by this to show the True's.

PAG wrote:

Hi,

Is there another VBA way I can use to show more than 2 values to search for
in a column. I would like to seacrh for 3 value in a column and show the
results in the entire row.

Selection.AutoFilter Field:=15, Criteria1:="=*fid*", Operator:=xlOr, _
Criteria2:="=*COLCHESTER*" I wanted to also search for a third
value of Criteria3:="=*TAX-EXEMPT*"

Hope that make sense.

Peter


--

Dave Peterson


--

Dave Peterson
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
Auto Filter - capture criteria used Kolotti Excel Discussion (Misc queries) 2 January 30th 07 05:05 PM
auto filter doesn't return cells containing the custom search wor. annelidae Excel Worksheet Functions 2 August 24th 06 02:07 AM
Auto Filter by Criteria Bunson Excel Worksheet Functions 1 June 7th 06 11:03 PM
Using advanced filter to search for criteria in a list Potatosalad2 Excel Discussion (Misc queries) 1 June 8th 05 03:08 AM
How do I show Auto-Filter "Search" Criteria on Sheet1? golf4 Excel Programming 4 May 25th 04 05:45 AM


All times are GMT +1. The time now is 04:41 PM.

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"