For example in K47 (Maximum of LCG)Use the arrayed function (CNTRL Shift Enter)
=MAX(IF($A$2:$A$11=$K$17,$B$2:$B$11,""))
You have some extra spaces in A2:A11 which will screw this up. Does this work for you?