Subtotal, Sumproduct, Multiple Criteria & Offset u

2019-08-17 12:45发布

My current WORKING formula:

=SUMPRODUCT((WBS!$P$15:$P$65002=WBS!$A$13)*(WBS!$Q$15:$Q$65002=WBS!$AJ3),WBS!$AK$15:$AK$65002)

I want to convert this formula to total filtered cells only. This is what I have (NOT WORKING) so far:

=SUMPRODUCT(SUBTOTAL(9,OFFSET($AK15,ROW($AK15:$AK65000)-ROW(AK15),,1 WBS!$P$15:$P$65002=WBS!$A$13)*(WBS!$Q$15:$Q$65002=WBS!$AJ3))

Then, if you know how to convert this to grab from dynamic ranges, that would be awesome!

1条回答
▲ chillily
2楼-- · 2019-08-17 13:31

Give this a try:

=SUMPRODUCT(SUBTOTAL(109,OFFSET(WBS!$AK$15,ROW(WBS!$AK$15:$AK$65002)-ROW(WBS!$AK$15),,,1)),--(WBS!$P$15:$P$65002=WBS!$A$13),--(WBS!$Q$15:$Q$65002=WBS!$AJ3))
查看更多
登录 后发表回答