按月份求表1加表2售价之和
按月份,本人按单表格算,算出来为乱码,实际是想求表1和表2售从之和工作表1跟工作表2 , C3 公式 =IF(A3="","",YEAR(A3)&TEXT(A3,"M月")) 复制往下拉.
汇总表D2 公式 =SUM(SUMIFS(INDIRECT("'"&ROW($1:$2)&"'!B:B"),INDIRECT("'"&ROW($1:$2)&"'!C:C"),$C$1&$C2)) 复制往下拉 =SUMPRODUCT((-LOOKUP(1,-LEFT(C2,ROW($1:$99)))=MONTH($J$3:$J$26))*$K$3:$K$26)+SUMPRODUCT((-LOOKUP(1,-LEFT(C2,ROW($1:$99)))=MONTH('2'!$A$3:$A$25))*'2'!$B$3:$B$25) 三键结束 =SUMPRODUCT(SUMIF(INDIRECT("'"&{1;2}&"'!A:A"),">="&EDATE($C$1&"年"&C2,{0,1}),INDIRECT("'"&{1;2}&"'!b:b"))*{1,-1})
下拉 谢谢你~已解决 谢谢你!已解决
页:
[1]