Filter on multiple criteria values

kobusb

New Member
Joined
May 15, 2011
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hi
I am using Office 365 with Dynamic Arrays and find it amazing especially the FILTER function but I am struggling to filter a table based on multiple values. I would like to include all rows of the table based on any of the values in another table.
The following example illustrates the expected result:
Table1: Table to filter
NoA
Row1a1
Row2a2
Row3a3
Row4a2
Row5a5
Row6a4
Row7a6
Row8a8
Row9a6
Row10a3
Row11a9
Row12a1
Row13a0
Row14a3
Row15a6
Row16a4
Row17a8
Row18a5
Row19a9
Row20a2
Row21a8
Row22a4
Row23a6
Row24a1
Row25a2
Row26a0


Table2: The values to filter on

B
a5
a6
a7


The expected result. I cannot get this result using FILTER, XMATCH, XLOOKUP or IF

NoA
Row5a5
Row18a5
Row7a6
Row9a6
Row15a6
Row23a6


Can someone please give me some guidance how to achieve this?

Regards
 

Attachments

  • 1624885410926.png
    1624885410926.png
    1.2 KB · Views: 3

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
How about
+Fluff 1.xlsm
ABCDEFGH
1NoAB
2Row1a1a5Row5a5
3Row2a2a6Row7a6
4Row3a3a7Row9a6
5Row4a2Row15a6
6Row5a5Row18a5
7Row6a4Row23a6
8Row7a6
9Row8a8
10Row9a6
11Row10a3
12Row11a9
13Row12a1
14Row13a0
15Row14a3
16Row15a6
17Row16a4
18Row17a8
19Row18a5
20Row19a9
21Row20a2
22Row21a8
23Row22a4
24Row23a6
25Row24a1
26Row25a2
27Row26a0
Master
Cell Formulas
RangeFormula
G2:H7G2=FILTER(Table1,ISNUMBER(XMATCH(Table1[A],Table2[B],0)))
Dynamic array formulas.
 
Upvote 0
Solution
Thanks. It seems so obvious but somehow I could not get it right.
 
Upvote 0
You're welcome & thanks for the feedback.

I would also suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0

Forum statistics

Threads
1,215,345
Messages
6,124,408
Members
449,157
Latest member
mytux

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