|
楼主 |
发表于 2024-3-10 12:45
|
显示全部楼层
[广告] VBA代码宝 - VBA编程加强工具 · VBA代码随查随用 · 内置多项VBA编程加强工具 ★ 免费下载 ★ ★ 使用手册★
本帖最后由 我的城市你来过 于 2024-3-10 15:38 编辑
20240310汇总各项累计数据
=IFERROR(1/(1/EXPAND(MMULT(ISNUMBER(IF(IF($C$2:$C$18=TOROW(UNIQUE($C$2:$C$18)),ROW($C$2:$C$18),"")<TOROW(XMATCH(UNIQUE($C$2:$C$18),$C$2:$C$18,-1,-1)+1),"",IF($C$2:$C$18=TOROW(UNIQUE($C$2:$C$18)),ROW($C$2:$C$18),"")))*TOROW(SUMIFS($F$2:$F$18,$C$2:$C$18,UNIQUE($C$2:$C$18))),ROW(INDIRECT("a1:a"&COUNTA(UNIQUE($C$2:$C$18))))^0),ROWS($C$2:$C$18)+1,,SUM($F$2:$F$18))),"")
=EXPAND(IFERROR(1/1/MMULT(IFERROR(FIND(TRANSPOSE(SUMIFS($F$2:$F$18,$C$2:$C$18,UNIQUE($C$2:$C$18))),SUMIF(INDIRECT("C2:C"&ROW($C$2:$C$18)),$C$2:$C$18,$F$2:$F$18)*($C$2:$C$18=TRANSPOSE(UNIQUE($C$2:$C$18)))),0),ROW(INDIRECT("a1:a"&COUNTA(UNIQUE($C$2:$C$18))))^0)*SUMIF(INDIRECT("C2:C"&ROW($C$2:$C$18)),$C$2:$C$18,$F$2:$F$18),""),ROWS($C$2:$C$18)+1,,SUM($F$2:$F$18))
|
|