Filtering Multiple Columns

T

TJ

I am helping a friend with this and I believe he is using Excel 2000.

I need to filter on multiple, non-concurrent columns. When I select the
multiple columns I am told it has to be in a range. Is there any way around
this?
 
C

CLR

Using AutoFilter......just filter on the columns one at a time.......

Vaya con Dios,
Chuck, CABGx3
 
T

TJ

I tried that, but the second column I pick, auto-filter just toggles the
filter off for the first column.
 
R

Roger Govier

Hi

Mark the complete range of data.
Data>Filter>Autofilter
You will have dropdowns on all columns (including any blank columns)
Select the first column you wish to filter by, chose what you want via
the dropdown. You will now have a filtered list.
Select any OTHER dropdown, and make a further selection. and the list
will be further filtered.

repeat as many times as you wish.
 
T

TJ

I don't think I'm asking my question correctly. I only want certain columns
filtered, not all. And these columns are not consecutive, they are random in
order. I'm not even sure this is possible.
 
R

Roger Govier

You cannot filter just within a column.
Rows are contiguous and if a column is filtered, then all data in the
row selected is either displayed or hidden dependent upon your
criterion, not just the individual cells within the column upon which
you have placed the filter.
 
P

Pete_UK

TJ,

let's imagine that you want to apply a filter condition to columns A, F
and H - as Roger says, highlight all the data in the range A to H
(including any headings) and click Data | Filter | Autofilter (check).
This will give you pull-downs on all the columns, but you don't have to
use them all. Apply your filter to column A, then to column F, and then
to column H, to give you the effect that you want.

Hope this helps.

Pete
 
K

Kevin Vaughn

Apparently, this can only be done using VBA. I remembered reading about
this, but could not remember the details until I looked it up in one of my
Excel VBA books: VBA and Macros for Microsoft Excel by Bill Jelen "Mr. Excel"
and Tracy Syrstad.

I experimented with it, took an existing Autofilter that began in A2, and
turned off the indicated columns:
(D, E, F, H, and I)
Sub TestFilter()
Range("a2").AutoFilter field:=4, visibledropdown:=False
Range("a2").AutoFilter field:=5, visibledropdown:=False
Range("a2").AutoFilter field:=6, visibledropdown:=False
Range("a2").AutoFilter field:=8, visibledropdown:=False
Range("a2").AutoFilter field:=9, visibledropdown:=False
End Sub
 
Top