FILTER formula with exclusion list

head

New Member
Joined
Sep 28, 2022
Messages
3
Office Version
  1. 365
Platform
  1. Windows
Hi, I have searched the forum and this thread is close to what I am looking for but not exactly the same.

I am using the FILTER formula (O365) to filter a large, imported table into a new reduced table. What I need is an exclusion list where I can enter partial company names, for example “costco” rather than “Costco Wholesale Corporation”, that will be excluded from the new filtered list.

Screenshot 2022-09-28 204724.jpg


The following formula in E2 works, but only if the full name is entered into the exclusion list.

=FILTER(A2:A11,ISNA(XMATCH(A2:A11,C2:C4)))

I need the XMATCH, or another formula, to do a wildcard search that excludes rows where any text from the exclusion list is found. I’d rather not replace the main FILTER formula with something else as the actual formula includes multiple include criteria’s applied to different columns which works great. The example above is very simplified.

Thanks
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
=FILTER(A2:A11,ISNA(XMATCH(A2:A11,C2:C4)))
Try this - I think you were not using Wildcard match in XMatch. Got no data to test.

Excel Formula:
=FILTER(A2:A11,ISNA(XMATCH(A2:A11,"*"&C2:C4&"*",2)))
 
Upvote 0
Thanks Sanjay, unfortunately no luck (I also expected that formula to work). And it does not even filter out an exact match like the original formula which is weird.
 
Upvote 0
Thanks Sanjay, unfortunately no luck (I also expected that formula to work). And it does not even filter out an exact match like the original formula which is weird.
I had my own worries with XMatch was waiting for your reply.

Please share your sample data using XL2BB - this will save a tedious effort of recreating your sample data and then starting working with formula.
 
Upvote 0
Try...

Excel Formula:
=FILTER(A2:A11,MMULT(IF(ISNUMBER(SEARCH(TRANSPOSE(C2:C4),A2:A11)),1,0),ROW(C2:C4)^0)=0)

Hope this helps!
 
Upvote 0
Solution

Forum statistics

Threads
1,223,911
Messages
6,175,324
Members
452,635
Latest member
laura12345

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