A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Let's say the first list is on Sheet 1 in A2:A3500, and the second list on Sheet 2 in A2:A200.
In B2 on Sheet 2:
=ISNUMBER(XMATCH(A2, 'Sheet 1'!$A$2:$A$3500))
Fill down.
Alternatively, enter the following formula somewhere on Sheet 2:
=FILTER(A2:A200, ISNUMBER(XMATCH(A2:A200, 'Sheet 1'!A2:A3500)))