function arraysDiff(arr1, arr2) {
arr1 = [arr1].flat(Infinity);
arr2 = [arr2].flat(Infinity);
arr1 = arr1.filter(el=>-1===arr2.indexOf(el));
.map(el=>[el]);
return arr1;
}
=query(данные;"SELECT * WHERE B <> "&JOIN(" AND B <> ";список_исключений))
=FILTER('Лист1'!F:F;ISNA(MATCH('Лист1'!F:F;'Лист1'!K:K;0)))