Solved

Multiple auto filters? Excel VBA script

Posted on 2011-03-24
5
426 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
  • 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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

How to quickly and accurately populate Word documents with Excel data, charts and images (including Automated Bookmark generation) David Miller (dlmille) Synopsis In this article you’ll learn how to use ExcelToWord! to copy data,charts, shapes …
Not long ago I saw a question in the VB Script forum that I thought would not take much time. You can read that question (Question ID  (http://www.experts-exchange.com/Programming/Languages/Visual_Basic/VB_Script/Q_28455246.html)28455246) Here (http…
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

828 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