Autofilter on rows instead of columns

G

Guest

Hi all !

I use Excel 2002 and I'd like to use the 'autofilter' function ('Data' menu
-> filter -> autofilter) but instead of sorting on criterias by columns, I'd
like to sort on rows (my sheet has the criterias on the side rather than on
the top !)

Thanks for help ! ;)

Laurent
 
R

Roger Govier

Hi

I think you have it the wrong way round. Filter normally Filters by row,
with the criteria in the top row of the set of data to be filtered.

You are wishing to Filter / Hide columns across the sheet base upon
criteria in the first column.
There is no built in method for doing this.
Debra Dalgleish has a simple workbook with some code to achieve this on
her site at

http://www.contextures.com/AdvFilterStateNum.zip

Here the criteria are still set in the top row, so you could either copy
your criteria to the first row, or amend the code.
 
G

Guest

Thanks a lot.
I studied the code of the macro ; Debra use the advanced filter function. I
will try to understand this function that I failed to run correctly...

Thanks again

Regards

Laurent Fessy
 
G

Guest

I've learned about the advanced filter function through excel's help, and
indeed it can only filter on lines. It seems unbelievable not to be able to
filter on columns !...

I guess what I got to do is to reverse my tab...

If anyone has an idea, please let me know. Thanks.
 
D

Dave Peterson

Maybe you can use Data|Group and outline

And group the columns instead of filtering.

Yep. It's not the same.
 
G

Guest

Max, Dave, I thank you both.

Max has the very answer to my question. The macro works great, I gotta
browse the code to understand it fully.
Dave, I did not know this function, so thank you also !

Regards,

Laurent Fessy
 

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