Solved

Multiple auto filters? Excel VBA script

Posted on 2011-03-24
5
428 Views
Last Modified: 2012-05-11
I have a list like whats given in the example.

I need to be able to specify what car types i want (multiple) and return a list with all those car types.

I figure i need to auto filter this list multiple times and have that output to a list on the car check sheet.

Sanjan
multipleFilterExample.xls
0
Comment
Question by:sanjangeorge
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 33

Expert Comment

by:Rob Henson
ID: 35211032
Sounds like you need to use the Advanced Filter option rather than Auto filter. The result of an advanced filter can be extracted from the data set and placed elsewhere. If done manually the criteria and the result have to be on the same sheet as the source data, but if done via a macro they can be on separate sheets.

I will work on an example for you.

Cheers
Rob H
0
 
LVL 33

Accepted Solution

by:
Rob Henson earned 500 total points
ID: 35211146
See attacheed.

Take a look at Check Sheet first and you will see it is blank.

Goto criteria sheet I have added and amend the types if so required. Click the Apply Filter button. Extract is now on Check sheet.

Any further help let me know.  multipleFilterExample.xls
0
 

Author Comment

by:sanjangeorge
ID: 35217296
your example works well but i haven't been able to implement it in my sheet.

here are the differences between the example and the sheet i'm actually working with.
The criteria range is dynamic and i have a few lines determining how long it is. it is also in column N
The data being filtered is on its own sheet and the filter applies to  column E (there is data in A-G)
The copied table will be on the same sheet as the criteria range but in adjacent columns (R-X)


Sanjan
0
 

Author Comment

by:sanjangeorge
ID: 35217674
also i'm filtering using strings
0
 
LVL 33

Assisted Solution

by:Rob Henson
Rob Henson earned 500 total points
ID: 35223023
I will adjust it for you after the weekend.

Cheers
Rob H
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

739 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question