Filter column based on reference criteria