=arrayformula(let(
students_lookup; a2:a;
students; Лист2!a2:a;
dates; Лист2!b2:b;
spots; Лист2!c2:c;
find_students_records;lambda(student;join(";";filter(dates&" "&spots;students=student)));
out;byrow(students_lookup;find_students_records);
if(students_lookup="";;out)
))