计算SUMPRODUCT的SUBTOTAL,而不使用列 [英] Calculate SUBTOTAL of a SUMPRODUCT without a column for total

查看:835
本文介绍了计算SUMPRODUCT的SUBTOTAL,而不使用列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

**嘿,

我需要计算一个SUMPRODUCT的SUBTOTAL,而没有列总共
我无法弄清这个公式...
更精确地:

I need to Calculate SUBTOTAL of a SUMPRODUCT without the column for total I can't figure out this formula... more precisely:

我需要一个可以小计Sumproduct(B2:B4,C2:C4)的公式

或如果我使用过滤器SUBTOTAL只有D1中的可见单元格(例如)
任何建议?

I need a formula that can Subtotal the Sumproduct(B2:B4,C2:C4)
or if I use a filter to SUBTOTAL only the visible cells in D1 (for example) Any suggestions?

推荐答案

您可以使用这种方法

= SUMPRODUCT(B2:B4,SUBTOTAL(9,OFFSET(C2:C4,ROW(C2:C4)-MIN (C2:C4)),0,1)))

这将给你以前一样可以看到的结果,但如果你过滤第二部分将为隐藏的行赋予零,因此将有效地忽略它们

that will give you the same result as before with everything visible but if you filter the second part will give you zero for the hidden rows and hence will effectively ignore them

这篇关于计算SUMPRODUCT的SUBTOTAL,而不使用列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆