I've got Table A like so:
Names Age
-----------------
John 3
Jane 4
Mary 5
John 6
Chris 7
Mary 8
Michael 9
and Table B like so
Cool Names
--------
Mary
Michael
I want to create a filter on Table A such that it only shows me names that appear in Table B. Which means I should have a resulting view that looks like:
Names Age
-----------------
Mary 5
Mary 8
Michael 9
into that box. Here's a sample sheet. Thanks in advance.

=FILTER(A2:A, COUNTIF('Cool Names'!A:A, A2:A)>0)into the field, but it doesn't work. That forumla works if I put it into a normal cell, so it feels like that field is looking for something more specific. Not sure what it is.