一个如何总结只有Excel中的那些行不被过滤? [英] How does one sum only those rows in excel not filtered out?

查看:163
本文介绍了一个如何总结只有Excel中的那些行不被过滤?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 SUM(B1..B20)公式来对列进行总和,但是当我通过相邻列过滤数据时,总和不会更新为仅反映那些未被过滤的行。

I use the SUM(B1..B20) formula to sum a column, but when I filter the data by an adjacent column, the sum doesn't update to reflect only those rows not filtered out. How does one do this?

推荐答案

您需要使用 SUBTOTAL 功能。
SUBTOTAL 函数忽略过滤器排除的行。

You need to use the SUBTOTAL function. The SUBTOTAL function ignores rows that have been excluded by a filter.

公式如下所示:

=SUBTOTAL(9,B1:B20)

功能编号 9 ,告诉它在数据范围 B1:B20 上使用 SUM 功能。

The function number 9, tells it to use the SUM function on the data range B1:B20.

如果您通过隐藏行过滤,则功能号码应更新为 109 。 p>

If you are 'filtering' by hiding rows, the function number should be updated to 109.

=SUBTOTAL(109,B1:B20)

功能编号 109 也适用于 SUM 功能,但隐藏的行将被忽略。

The function number 109 is for the SUM function as well, but hidden rows are ignored.

这篇关于一个如何总结只有Excel中的那些行不被过滤?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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