PC Review


Reply
Thread Tools Rate Thread

How can I specify more than 2 criteria in AutoFilter

 
 
Felix_Jiang
Guest
Posts: n/a
 
      8th Dec 2009
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
 
Reply With Quote
 
 
 
 
Dave Peterson
Guest
Posts: n/a
 
      8th Dec 2009
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


Felix_Jiang wrote:
>
> 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


--

Dave Peterson
 
Reply With Quote
 
Gary''s Student
Guest
Posts: n/a
 
      8th Dec 2009
Use a helper column or switch to 2007. 2007 has a much improved AutoFilter.
--
Gary''s Student - gsnu200909


"Felix_Jiang" wrote:

> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
autofilter criteria geebee Microsoft Excel Programming 3 27th Mar 2008 05:38 PM
Selection.AutoFilter Field / Criteria => criteria sometimes non-existing on worksheet markx Microsoft Excel Programming 1 24th Nov 2006 02:52 PM
Criteria and Autofilter Bill Microsoft Excel Misc 2 21st Jul 2004 01:26 AM
Help with Autofilter with two criteria Randy Reese Microsoft Excel Programming 1 13th Mar 2004 09:44 AM
VBA Autofilter Criteria Brandon Microsoft Excel Programming 1 7th Nov 2003 12:40 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:09 AM.