Try this:
=COUNTIF($M$2:$M$5;A2)
If the product is present in the column M list, it will return 1; otherwise, it will return 0. you may then use column N, which has 1 as a filter.
Be aware of your data set; the actual formula you must employ will likely like the following:
=COUNTIF($M$2:$M$3000;A2)
