|
I3=SUM(IFERROR(MMULT(($D$2:$D$522<=2019)*($E$2:$E$522=$H3),{1,1,1})/CHOOSE({1,2,3},COUNTIFS($A$2:$A$522,$A$2:$A$522,$D$2:$D$522,"<=2019",$E$2:$E$522,$H3),COUNTIFS($B$2:$B$522,$B$2:$B$522,$D$2:$D$522,"<=2019",$E$2:$E$522,$H3),COUNTIFS($C$2:$C$522,$C$2:$C$522,$D$2:$D$522,"<=2019",$E$2:$E$522,$H3)),0))
J3=SUM(IFERROR(MMULT(($D$2:$D$522=2020)*($E$2:$E$522=$H3),{1,1,1})/CHOOSE({1,2,3},COUNTIFS($A$2:$A$522,$A$2:$A$522,$D$2:$D$522,2020,$E$2:$E$522,$H3),COUNTIFS($B$2:$B$522,$B$2:$B$522,$D$2:$D$522,2020,$E$2:$E$522,$H3),COUNTIFS($C$2:$C$522,$C$2:$C$522,$D$2:$D$522,2020,$E$2:$E$522,$H3)),0))
K3=SUM(IFERROR(MMULT(($D$2:$D$522=2021)*($E$2:$E$522=$H3),{1,1,1})/CHOOSE({1,2,3},COUNTIFS($A$2:$A$522,$A$2:$A$522,$D$2:$D$522,2021,$E$2:$E$522,$H3),COUNTIFS($B$2:$B$522,$B$2:$B$522,$D$2:$D$522,2021,$E$2:$E$522,$H3),COUNTIFS($C$2:$C$522,$C$2:$C$522,$D$2:$D$522,2021,$E$2:$E$522,$H3)),0))
都是数组公式下拉,技穷了,期待高手更好的思路 |
|