Filter a Range where Value Doesn't appear in a separate list/range

uk747

Well-known Member
Joined
Jul 20, 2011
Messages
832
Office Version
  1. 365
Platform
  1. Windows
Hi

Have table below in cells B1:C7
I have a separate list in H2:H4 which contains the cities Leeds, Liverpool and Manchester

I want to Filter B2:C7 where C2:C7(Cities) aren't Contained in H2:H4 (List of cities Leeds, Liverpool, Manchester)

Result should be 3 below as their city isn't in H2:H4. I know I could write is as =FILTER(B2:C7,(C2:C7<>"Leeds")*(C2:C7<>"Liverpool")*(C2:C7<>"Manchester"))
but wanted something more dynamic as these wont always be the same cities and there maybe more or less than 3 in a range
Bob Dublin
Bill Belfast
Anna Glasgow


NameCity
BobDublin
BillBelfast
AllanLiverpool
TedManchester
MaryLeeds
AnnaGlasgow
 

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).
How about
Fluff.xlsm
ABCDEFGH
1NameCity
2BobDublinBobDublinLeeds
3BillBelfastBillBelfastLiverpool
4AllanLiverpoolAnnaGlasgowManchester
5TedManchester
6MaryLeeds
7AnnaGlasgow
8
Sheet4
Cell Formulas
RangeFormula
E2:F4E2=FILTER(B2:C10,ISNA(XMATCH(C2:C10,H2:H10)))
Dynamic array formulas.
 
Upvote 0
Solution
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,178
Messages
6,123,484
Members
449,100
Latest member
sktz

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