Solved

Advanced Filter (500)

Posted on 2007-03-28
6
179 Views
Last Modified: 2010-04-30
I have a field with about 7 or 8 unique items and an advanced filter that filters this field.  One of the items in the field accounts for the majority of the records.  The rest are what I will call "everything else."  I need to figure out if there is a way to use the advanced filter to filter on "everything else" without specifying the items in the criteria range.  For example if Apples were your best-selling product, you would have a filter that filtered on Apples and Not Apples as your two options.  Not Apples needs to return every record that has something other than Apples in that field.

TIA!

Scott
0
Comment
Question by:bfreescott
  • 3
  • 2
6 Comments
 
LVL 27

Expert Comment

by:VBRocks
ID: 18810426
Is this a SQL question, VB question, VB.NET question, etc.?
0
 

Author Comment

by:bfreescott
ID: 18810450
It's Excel VBA
0
 
LVL 81

Expert Comment

by:zorvek (Kevin Jones)
ID: 18812561
The easiest way to crack this nut is to insert a new column and put this formula in each cell in that column:

=IF(A2="Apples","Apples","Not Apples")

Then filter on that column.

Kevin
0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 

Author Comment

by:bfreescott
ID: 18812823
Can't I put a formula into the criteria section? something like <> Applies
0
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 500 total points
ID: 18812834
You certainly can. I thought you wanted a drop down...

And that's the exact syntax.

Kevin
0
 

Author Comment

by:bfreescott
ID: 18813159
Maybe I should give the points to myself on this one!  lol

Thanks for the confirmation, I had already tried and given up on that syntax, but I must have had my quotes in the wrong place or something.  I've got more questions out there if you want to rid yourself of the guilt over the easy 500.

Cheers

Scott
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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

747 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

12 Experts available now in Live!

Get 1:1 Help Now