How can I specify more than 2 criteria in AutoFilter

F

Felix_Jiang

Seems the AutoFilter can have at most 2 criteria. I do have a need to have 3
or more criteria to filter out a column of strings. How can I accomplish
this? Thanks!

Felix
 
J

joel

One method is to use an auxillary column for your filtering. You can
put a formula into a new colun the would produce either a True or False
and then you can autofilter on the true or false

for example

In cell Z1
=or(A1="A",A1="D",A1="Z")

then copy formula down column Z to last row of data. Then autofilter
column Z.
 
D

Dave Peterson

You could add another helper column that contains a formula that evaluates to
true/false. Then filter on that column.

The formula could be as simple as something like:

=or(a2="hi",a2="bye",a2="there")
or this equivalent:
=or(a2={"hi","bye","there"})

Or it could be as complex as you need.

Or you could learn about advanced filtering and criteria ranges.

I'd start at Debra Dalgleish's site:
http://contextures.com/xladvfilter01.html
 
G

Gary''s Student

Use a helper column or switch to 2007. 2007 has a much improved AutoFilter.
 

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