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

uk747

Well-known Member
Joined
Jul 20, 2011
Messages
843
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

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,223,911
Messages
6,175,326
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