[英]How to get visible-only sum of items that have been auto-filtered with a criteria?
I have been using =SUMPRODUCT(SUBTOTAL(9,OFFSET(I2,ROW(I2:I61)-ROW(I2),0)),(B2:B61=B91)+0)
in excel to get the sum but only if the row is visible and where a criteria in another cell matches and it worked fine but when i use it in google sheets i get an mismatched range size
error. 我在excel中一直使用
=SUMPRODUCT(SUBTOTAL(9,OFFSET(I2,ROW(I2:I61)-ROW(I2),0)),(B2:B61=B91)+0)
得到总和但仅限于该行是可见的,并且其他单元格中的条件匹配并且它工作正常但是当我在Google工作表中使用它时,我得到了mismatched range size
错误。
What did i do wrong or rather how can i get it working? 我做错了什么,或者我怎么能让它运作起来?
It appears that, in Google Sheets, SUBTOTAL
does not behave precisely as it does in Excel. 看起来,在Google表格中,
SUBTOTAL
行为与Excel中的行为不同。
There are intimations as to a workaround here: 这里有关于解决方法的暗示:
https://productforums.google.com/forum/#!topic/docs/6pSkI33ylHM https://productforums.google.com/forum/#!topic/docs/6pSkI33ylHM
Regards 问候
实际上,有更强大的filter
功能,可以让您选择即时过滤数据:
=sum(FILTER(I2:I61,N2:N61="00:01:00",B2:B61="Amazon Elastic Transcoder",M2:M61="1080p"))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.