search criteria - auto filter

P

PAG

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
 
D

Dave Peterson

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top