=SUMIF('原材料'!$C:$C,B2,'原材料'!$H:$H)