Solved

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

Posted on 2013-11-23
324 Views
Hi Guys, is there a way you can filter on 10 separate items in a column in an Excel 20007 spreadsheet?
0
Question by:Justincut
[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

LVL 37

Expert Comment

ID: 39670983
the details are here:

"How to add a filter in Excel 2007"
0

LVL 11

Expert Comment

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

How to filter data in Excel, by Michelle Mangen
0

LVL 81

Accepted Solution

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
``````
0

## Featured Post

Question has a verified solution.

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

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
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…
###### Suggested Courses
Course of the Month2 days, 23 hours left to enroll