Solved

Can you filter on 10 separate items in a column in Excel 2007?

Posted on 2013-11-23
3
308 Views
Last Modified: 2013-11-24
Hi Guys, is there a way you can filter on 10 separate items in a column in an Excel 20007 spreadsheet?
0
Comment
Question by:Justincut
3 Comments
 
LVL 37

Expert Comment

by:bbao
ID: 39670983
the details are here:

"How to add a filter in Excel 2007"
http://www.wikihow.com/Add-a-Filter-in-Excel-2007
0
 
LVL 11

Expert Comment

by:Swapnil Nirmal
ID: 39671248
see this video and your doubts would be clear:

How to filter data in Excel, by Michelle Mangen
www.youtube.com/watch?v=EF9a5XuOu2w¿
0
 
LVL 81

Accepted Solution

by:
byundt earned 500 total points
ID: 39671594
If you want to filter 10 items using VBA code, the trick is to list them in an array. In the snippet below, for example, I am filtering cells containing the first 10 letters of the alphabet:
Sub Filter10()
Range("A1").AutoFilter      'Turn off any existing filters
Range("$M$1:$M$13").AutoFilter Field:=1, Criteria1:=Array("a", "b", "c", "d", "e", "f", "g", "h", "i", "j"), Operator:=xlFilterValues
End Sub

Open in new window

0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

Suggested Solutions

Title # Comments Views Activity
Excel formula to show $0.00 if negative number. 7 53
first name and last initial in excel 11 28
Loop with matrices. Please help me! 16 41
V-Lookup 11 18
Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
When you see single cell contains number and text, and you have to get any date out of it seems like cracking our heads.
The viewer will learn how to use the =DISCRINV command to create a discrete random variable, use this command to model a set of probabilities and outcomes in a Monte Carlo simulation, and learn how to find the standard deviation of a set of probabil…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

856 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