Link to home
Start Free TrialLog in
Avatar of bfreescott
bfreescottFlag for United States of America

asked on

Advanced Filter (500)

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
Avatar of VBRocks
VBRocks
Flag of United States of America image

Is this a SQL question, VB question, VB.NET question, etc.?
Avatar of bfreescott

ASKER

It's Excel VBA
Avatar of zorvek (Kevin Jones)
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
Can't I put a formula into the criteria section? something like <> Applies
ASKER CERTIFIED SOLUTION
Avatar of zorvek (Kevin Jones)
zorvek (Kevin Jones)
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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