如何只对 excel 中的那些行求和而不被过滤掉? [英] How does one sum only those rows in excel not filtered out?

查看:10
本文介绍了如何只对 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 函数会忽略过滤器排除的行.

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.

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天全站免登陆