Advanced Filter NOT Criteria with Partial Text

big44life

New Member
Joined
Jul 12, 2018
Messages
4
Hello,

I am having trouble with this as I would like to use Advanced Filter using NOT criteria for partial text.

I have customer names in Column A and Revenue in Column B. The customer names contain various store name and numbers so I would like to filter out customers that don't contain the criteria.

For example, I would like to filter out all customers that are not "CVS", "Walgreens", and "RITE AID" from the list of customers even as some customer names are CVS 123, etc.


Is there a way to do this with Advanced Filter?

Any help would be great! Thanks!
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Welcome to Mr Excel forum

Maybe would be possible using a formula as criteria, but we need more details about your data and expected results.

A small data sample (~10 rows) along with expected results would be helpful.

M.
 
Upvote 0
Thanks for the reply! here is an example of the data:

Column A Column B
CVS 123 1200
CVS 998 633
RITE AID 224 686
Walgreens 34 356
Jo's Liquor 188
Sammy's Restaurant 96
CVS 976 458
RITE AID 190 589

My goal is to use an advanced filter to extract the customers that are not CVS, Walgreens, or RITE AID.

I thought possibly adding an additional column with an IF function to label each record "National Account" and "Non-National" and filtering from there but was hoping there was a way in Advanced Filter.

Appreciate the help!
 
Upvote 0
Are the data exactly like?

A
B
1
Header1​
Value​
2
CVS 123​
1200​
3
CVS 998​
633​
4
RITE AID 224​
686​
5
Walgreens 34​
356​
6
Jo's Liquor​
188​
7
Sammy's Restaurant​
96​
8
CVS 976​
458​
9
RITE AID 190​
589​

M.
 
Upvote 0
Try something like this


A
B
C
D
E
F
1
Header1​
Value​
Exclude​
2
CVS 123​
1200​
FALSE​
CVS​
3
CVS 998​
633​
Walgreens​
4
RITE AID 224​
686​
RITE AID​
5
Walgreens 34​
356​
6
Jo's Liquor​
188​
7
Sammy's Restaurant​
96​
8
CVS 976​
458​
9
RITE AID 190​
589​
10

<tbody>
</tbody>


Exclusion list in F2:F4

Leave D1 empty
Formula in D2
=SUMPRODUCT(--ISNUMBER(SEARCH(F$2:F$4,A2)))=0

Then try Advanced Filter
List Range: $A$1:$B$9
Criteria Range: $D$1:$D$2

After filter

A
B
1
Header1​
Value​
6
Jo's Liquor​
188​
7
Sammy's Restaurant​
96​

<tbody>
</tbody>


Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,214,391
Messages
6,119,247
Members
448,879
Latest member
oksanana

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top