Solved

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

Posted on 2013-11-23
3
317 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
[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 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: 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

Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

696 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