大家帮我看看汇总里面的数据怎么引用明细里面的数据
大家帮我看看这里面应该怎么汇总设置函数,谢谢大家了这种问题,vba数组+字典轻松搞定,为何一定要公式呢,不怕卡死没商量吗 “汇总表”中B6=SUMPRODUCT(OFFSET(INDIRECT(ADDRESS(MATCH(B$3,明细!$B:$B,),6,,,"明细")),,,MATCH(1,1/(INDIRECT(ADDRESS(MATCH(B$3,明细!$B:$B,)+1,2,,,"明细")&":B100")<>""),)),OFFSET(INDIRECT(ADDRESS(MATCH(B$3,明细!$B:$B,),MATCH($A6,明细!$2:$2,),,,"明细")),,,MATCH(1,1/(INDIRECT(ADDRESS(MATCH(B$3,明细!$B:$B,)+1,2,4,,"明细")&":B100")<>""),)))
右拉、下拉。 B6=SUMPRODUCT((LOOKUP(ROW($4:$61),ROW($4:$61)/(明细!$B$4:$B$61<>""),明细!$B$4:$B$61)=B$3)*(明细!$G$2:$AA$2=$A6)*明细!$G$4:$AA$61) B6 =SUM(OFFSET(明细!$A$1,MATCH(B$3,明细!$B:$B,)-1,5,LOOKUP(,0/(B$3=明细!$B$4:$B$62),FREQUENCY(-ROW($4:$62),-ROW($4:$62)*(明细!$B$4:$B$62<>""))),1)
*OFFSET(明细!$A$1,MATCH(B$3,明细!$B:$B,)-1,MATCH($A6,明细!$2:$2,)-1,LOOKUP(,0/(B$3=明细!$B$4:$B$62),FREQUENCY(-ROW($4:$62),-ROW($4:$62)*(明细!$B$4:$B$62<>""))),1) ) B6
=SUMPRODUCT(明细!$F$4:$F$61*明细!$G$4:$AA$61*(明细!$G$2:$AA$2=$A6)*(LOOKUP(ROW($4:$61),ROW($4:$61)/(明细!$B$4:$B$61<>""))=MATCH(B$3,明细!$B:$B,)))
页:
[1]