2019-01-24 14.1统计函数(Subtotal)

14.1统计函数(Subtotal)

[if !supportLists]· [endif]一、基本用法

[if !supportLists]· [endif]显示公式说明

[if !supportLists]· [endif]=SUBTOTAL(1,B2:B8) 平均值

[if !supportLists]· [endif]=SUBTOTAL(2,B2:B8) 统计个数

[if !supportLists]· [endif]=SUBTOTAL(3,B2:B8) 非空单元格数量

[if !supportLists]· [endif]=SUBTOTAL(4,B2:B8) 最大值

[if !supportLists]· [endif]=SUBTOTAL(5,B2:B8) 最小值

[if !supportLists]· [endif]=SUBTOTAL(6,B2:B8) 括号内数据的乘积

[if !supportLists]· [endif]=SUBTOTAL(7,B2:B8) 标准偏差

[if !supportLists]· [endif]=SUBTOTAL(8,B2:B8) 标准偏差

[if !supportLists]· [endif]=SUBTOTAL(9,B2:B8) 求和

[if !supportLists]· [endif]二、Subtotal隐藏值

[if !supportLists]· [endif]9-SUM.S(含隐藏值)

[if !supportLists]· [endif]109-SUM.S(不含隐藏值)

[if !supportLists]· [endif]三、Subtotal与Sum的区别

[if !supportLists]· [endif]显示公式

[if !supportLists]· [endif]=SUBTOTAL(9,B2:B8) 统计个数

[if !supportLists]· [endif]=SUM(B2:B8) 非空单元格数量

[if !supportLists]· [endif]注意:

[if !supportLists]· [endif]SUBTOTAL,只对筛选数据结果数据进行求和

[if !supportLists]· [endif]SUM,不受筛选结果影响,会对所有数据进行求和

[if !supportLists]· [endif]四、Subtotal计数

[if !supportLists]· [endif]显示公式

[if !supportLists]· [endif]=SUBTOTAL(2,B2:B8)

[if !supportLists]· [endif]=SUBTOTAL(3,B2:B8)

[if !supportLists]· [endif]注意:

[if !supportLists]· [endif]COUNT 返回包含数字以及包含参数列表中的数字的单元格的个数

[if !supportLists]· [endif]COUNTA 返回参数列表中非空值的单元格个数

[if !supportLists]· [endif]五、筛选后填充

[if !supportLists]· [endif]=SUBTOTAL(3,$B$2:B2)

[if !supportLists]· [endif]注意:

[if !supportLists]· [endif]COUNT 返回包含数字以及包含参数列表中的数字的单元格的个数

[if !supportLists]· [endif]COUNTA 返回参数列表中非空值的单元格个数

[if !supportLists]· [endif]六、避开同类计算

[if !supportLists]· [endif]SUBTOTAL函数遇到同类就避开了,就是不会统计由SUBTOTAL计算出来的数值。


你可能感兴趣的:(2019-01-24 14.1统计函数(Subtotal))