Multiple auto filters? Excel VBA script

Posted on 2011-03-24
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.

Question by:sanjangeorge
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
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.

Rob H
LVL 33

Accepted Solution

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

Author Comment

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)


Author Comment

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

Assisted Solution

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

Rob H

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
With User Account Control (UAC) enabled in Windows 7, one needs to open an elevated Command Prompt in order to run scripts under administrative privileges. Although the elevated Command Prompt accomplishes the task, the question How to run as script…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

705 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