sheet1中的表样不清楚,假设A列为年,B列为季度,在C2中输入公式:=SUMPRODUCT((sheet2!G:G=A2)*(sheet2!F:F=B2)*TEXT(sheet2!D:D,"0;0;0;\0"))下拉。