Well to keep it simple you could just: =SUMIF(C2:C18,"laae005015",F2:F18)
If you dont have a huge amount of different categories in column C that would work you could just change the criteria for each one.