Solved

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

Posted on 2013-11-23
3
285 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:Bing CISM / CISSP
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 80

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
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 …
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

707 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

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now