|
品茶观天下 发表于 2015-1-19 14:35
是的,版主大大
那得用EXCEL 2007版函数SUMIFS了,公式:- =SUMPRODUCT(SUMIFS(INDIRECT("Sheet"&ROW($1:$2)&"!E:E"),INDIRECT("Sheet"&ROW($1:$2)&"!A:A"),A2,INDIRECT("Sheet"&ROW($1:$2)&"!B:B"),B2,INDIRECT("Sheet"&ROW($1:$2)&"!C:C"),C2,INDIRECT("Sheet"&ROW($1:$2)&"!D:D"),D2)*{1;-1})
复制代码
或:
- =SUMIFS(Sheet1!E:E,Sheet1!A:A,A2,Sheet1!B:B,B2,Sheet1!C:C,C2,Sheet1!D:D,D2)-SUMIFS(Sheet2!E:E,Sheet2!A:A,A2,Sheet2!B:B,B2,Sheet2!C:C,C2,Sheet2!D:D,D2)
复制代码
EXCEL 2003公式:- =SUMPRODUCT(Sheet1!E$2:E$200*(Sheet1!A$2:A$200&Sheet1!$B$2:$B$200&Sheet1!C$2:C$200&Sheet1!$D$2:$D$200=A2&B2&C2&D2))-SUMPRODUCT(Sheet2!E$2:E$200*(Sheet2!A$2:A$200&Sheet2!$B$2:$B$200&Sheet2!C$2:C$200&Sheet2!$D$2:$D$200=A2&B2&C2&D2))
复制代码 |
|