Hi Lis7,

Welcome to ExcelFox !!

In F3 and copied down and across,

=MID(REPT(",x",SUMPRODUCT(--($B$3:$B$9=$E3),--($A$3:$A$9=F$2))),2,255)