Hi,
Just need to confirm something:
I need to filter a large volume of data for 70 values. Instead of using:
Range("A1").AutoFilter Field:=1, Criteria1:=Array( <list all 70 items here> ...)
It would be easier to reverse it and write:
Range("A1").AutoFilter Field:=1, Criteria1:=Array( <list ONLY the 7 <>items here> ...)
According to websites, it is "said" that it is not possible to use the Array(...) and EXCLUDE. (I tried and the advice seems correct as my code debugs!)
The only other workaround i can think of is using a helper column and an =OR(... , ... , ...) function specifying the 7 <> items, then filtering for TRUE. This works and is my current solution, but is there another way that i have missed that allows to filter excluding (without using this helper columns and formula)?
TX
AutoFilter Excluding
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
AutoFilter Excluding
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- Administrator
- Posts: 78628
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: AutoFilter Excluding
The information you found is correct. You do need a helper column with a formula for this.
Best wishes,
Hans
Hans
-
- gamma jay
- Posts: 25455
- Joined: 17 Mar 2010, 17:33
- Location: Cape Town
Re: AutoFilter Excluding
TX for that confirmation. Appreciated!
Maybe Microsoft can think of improving this scenario with a new Operator - something like this:
Range("A1").CurrentRegion.AutoFilter Field:=1, Criteria1:=Array("Item1","Item2","Item3",...), Operator:=xlNotFilterValues
That would be great!!!
Maybe Microsoft can think of improving this scenario with a new Operator - something like this:
Range("A1").CurrentRegion.AutoFilter Field:=1, Criteria1:=Array("Item1","Item2","Item3",...), Operator:=xlNotFilterValues
That would be great!!!
Regards,
Rudi
If your absence does not affect them, your presence didn't matter.
Rudi
If your absence does not affect them, your presence didn't matter.
-
- Administrator
- Posts: 78628
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands