在G2输入
=IF(SUMPRODUCT((A$2:A2=A2)*(B$2:B2=B2)*(C$2:C2=C2)*(D$2:D2=D2)*(E$2:E2=E2))=1,SUMPRODUCT((A$2:A$1000=A2)*(B$2:B$1000=B2)*(C$2:C$1000=C2)*(D$2:D$1000=D2)*(E$2:E$1000=E2)*F$2:F$1000),"")
回车并向下填充.
如果只求“学科为物理编号为1004名称为钢直尺规格型号功能为500mm单位为只相同数据”:
=SUMPRODUCT((A$2:A$1000="物理")*(B$2:B$1000=1004)*(C$2:C$1000="钢直尺")*(D$2:D$1000="500mm")*(E$2:E$1000="只")*F$2:F$1000)