First you need to do a bit of clean up in the second sheet, when you copy over HTML stuff you sometimes get some hidden non-printable characters.
If you go for example to K65 in the Evaluation sheet, and put your cursor at the end of the CS in the formula bar, you will see an extra space. To get rid of it, copy just that space, then do a CTRL+H and paste in the Find What field, leave the other field blank and click Replace All. It should have replaced it many times. Then select column L and format as General.
Now in the first sheet, create a table on the side of the courses and their respective 2 letter codes.
Now assuming that table is in L2:M7, use this formula in D15:
=IFERROR(TRIM(INDEX(DegreeEvaluation!$Q$59:$Q$197&DegreeEvaluation!$P$59:$P$197,MATCH(1,INDEX((DegreeEvaluation!$K$59:$K$197=VLOOKUP(A15,$L$2:$M$7,2,0))*(DegreeEvaluation!$L$59:$L$197=B15&""),0),0))),"")
copied down.
copy to other groups below.
Bookmarks