Subtotal, Sumproduct, Multiple Criteria & Offset using a Dynamic Range

断了今生、忘了曾经 提交于 2020-01-06 06:54:34

问题


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:


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))


来源:https://stackoverflow.com/questions/43746214/subtotal-sumproduct-multiple-criteria-offset-using-a-dynamic-range

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!