subtotal函数

The Excel SUM function does a great job of adding numbers on a worksheet, and it's probably the first Excel function that you learned about. But SUM might not be the best function to use in all situations where you need a total.

Excel SUM函数在将数字添加到工作表上做得很好,它可能是您所了解的第一个Excel函数。 但是,SUM可能不是在需要总计的所有情况下使用的最佳功能。

The SUM function doesn't do such a great job if you've hidden some of the rows with a filter, or with the Hide Rows command. Even though some of the numbers are hidden, they're still included in the total.

如果您已使用过滤器或“隐藏行”命令隐藏了某些行,则SUM函数的作用不那么出色。 即使某些数字被隐藏,它们仍然包含在总数中。

忽略过滤后的数字 (Ignore Filtered Numbers)

With the SUBTOTAL function, you can solve that problem, and only sum the visible numbers. There are a couple of quirks with SUBTOTAL though, including one strange thing that I hadn't noticed before.

使用SUBTOTAL函数 ,您可以解决该问题,而仅对可见数字求和。 尽管有一些关于SUBTOTAL的怪癖,包括我之前没有注意到的一件奇怪的事情。

After you filter the rows in a list, use the AutoSum button on the Excel Ribbon's Home tab, to insert a sum function.

筛选列表中的行后,使用Excel功能区“主页”选项卡上的“自动求和”按钮插入求和函数。

If the table has a filter applied, the SUBTOTAL function will be automatically inserted, instead of the SUM function.

如果表中应用了过滤器,将自动插入SUBTOTAL函数,而不是SUM函数。

When numbers are hidden with the filter, the SUBTOTAL function sums only the numbers in the visible rows.

当数字被过滤器隐藏时,SUBTOTAL函数仅对可见行中的数字求和。

隐藏行 (Hiding Rows)

If you hide rows by using the Hide Row command, those amounts might be included in the total, even if you use the SUBTOTAL function. In the screen shot below, row 3 is hidden, but the SUM and SUBTOTAL functions both show a total of 40.

如果使用“隐藏行”命令隐藏行,则即使使用SUBTOTAL函数,这些金额也可能包含在总计中。 在下面的屏幕快照中,第3行是隐藏的,但是SUM和SUBTOTAL函数两者总共显示40。

The first argument in the SUBTOTAL function specifies which function should be used. As you can see in the list before, there are 11 functions, listed in alphabetical order, starting with 1-AVERAGE.

SUBTOTAL函数中的第一个参数指定应使用哪个函数。 从前面的列表中可以看到,有11个函数按字母顺序列出,从1-AVERAGE开始。

In Excel 2003, and later versions, the same set of functions is repeated, starting with 101 – AVERAGE.

在Excel 2003和更高版本中,将从101 – AVERAGE开始重复相同的功能集。

If you use the arguments in the 100s, neither filtered rows nor manually hidden rows are included in the result.

如果在100年代使用参数,则结果中既不包含过滤的行,也不包含手动隐藏的行。

In the example where row 3 has been manually hidden, if the first argument is changed from 9 to 109, the manually hidden amounts are not included in the SUBTOTAL result. In cell E7, the result is 30, because the 109 argument has been used.

在第3行已手动隐藏的示例中,如果将第一个参数从9更改为109,则SUBTOTAL结果中将不包含手动隐藏的金额。 在单元格E7中,结果为30,因为已使用109参数。

小计古怪 (SUBTOTAL Quirks)

In the example below, there is a filter applied, to hide the Pen Sets item. Then, row 4 was manually hidden. In theory, the SUBTOTAL(9 and SUBTOTAL(109 should return different results.

在下面的示例中,应用了一个过滤器以隐藏“笔设置”项。 然后,手动隐藏了第4行。 从理论上讲,SUBTOTAL(9和SUBTOTAL(109)应该返回不同的结果。

In this case, the SUBTOTAL functions in columns D and E both return the same result. Even though one row has been manually hidden, the SUBTOTAL function in D7 recognizes it as a filtered row, because it is hidden in a filtered list.

在这种情况下,列D和E中的SUBTOTAL函数都返回相同的结果。 即使已手动隐藏了一行,D7中的SUBTOTAL函数也将其识别为已过滤的行,因为它已隐藏在已过滤的列表中。

Another "feature" of filtered lists is that if you manually hide rows, they can be automatically unhidden, if you clear the filter. Excel doesn't seem to distinguish between the two types of non-visible rows.

过滤列表的另一个“功能”是,如果您手动隐藏行,那么如果您清除过滤器,则可以自动取消隐藏它们。 Excel似乎无法区分这两种类型的不可见行。

The final quirk, that I just discovered, is that a table below the filtered list is also affected by the filter status. In this example, the upper list is filtered, and a row is manually hidden in the table below.

我刚刚发现的最后一个古怪之处是,过滤列表下方的表格也会受到过滤状态的影响。 在此示例中,上面的列表被过滤,并且在下表中手动隐藏了一行。

However, the SUBTOTAL(9 formula treats that hidden row as filtered, and doesn't include it in the result. Strange!

但是,SUBTOTAL(9公式将隐藏的行视为已过滤,并且不将其包含在结果中。很奇怪!

包含隐藏的列 (Hidden Columns Are Included)

Remember that only the Hide Rows command affects the SUBTOTAL result, not the Hide Columns command. Cells hidden with the Hide Columns command are included in the result, as Dick Kusleika mentioned in the comments in his Determine If Cell is Hidden in VBA blog post.

请记住,只有“隐藏行”命令会影响SUBTOTAL结果,而不会影响“隐藏列”命令。 结果中包括了用“隐藏列”命令隐藏的单元格,正如Dick Kusleika 在VBA博客文章的“ 确定是否隐藏单元格”中的评论中提到的那样。

其他小计赔率 (Other SUBTOTAL Oddities)

Have you encountered any other SUBTOTAL oddities and quirks? _______________

您是否遇到过其他小计的古怪和怪癖? _______________

翻译自: https://contexturesblog.com/archives/2011/03/11/excel-function-friday-sum-filtered-list-with-subtotal/

subtotal函数


http://www.taodudu.cc/news/show-5873099.html

相关文章:

  • Excel函数学习——subtotal
  • SUBTOTAL函数使用方法
  • subtotal函数_用SUBTOTAL更改Excel函数
  • 淘宝关键词API
  • 【校招VIP】产品功能分析之淘宝
  • Java常用类System、Math和File类
  • 综合回顾-重点(案例)分析
  • 电子学会 2022年3月 青少年软件编程Python编程等级考试一级真题解析(选择题+判断题+编程题)
  • Processing快速使用
  • OTT-TV网络IP电视系统解决方案
  • 补题(最短路+拆点)HUD-6805
  • 什么叫“体验为情感服务”,从体验设计到《心情词典》
  • 公公的64岁生日
  • 欢(nan)乐(shou)纪中培训(Day 2)
  • 蓝桥杯2016第七届C语言B组省赛习题题解——习题B.生日蜡烛
  • Python入门习题(19)——CCF CSP认证考试真题:分蛋糕
  • BZOJ1024 SCOI2009生日快乐
  • 【单调队列】【P1714】 切蛋糕
  • 重庆赛区ACM热身赛-8529. Cake
  • 对于清北学堂2018国庆刷题班的学习总结
  • IT男不送蛋糕“送”网站
  • 蛋糕的种类
  • LeetCode 61~65
  • OpenSSL命令--x509
  • kubeadm安装k8s完整教程
  • 【云原生-K8s】kubeadm搭建k8s集群v1.23版本【不成功手把手教学】
  • Thinkpad x61 重装系统后修复一键恢复 (转)
  • uniapp引用npm第三方库
  • typescript 扩展第三方库类型,添加属性成员
  • python_第三方模块下载

subtotal函数_星期五的Excel函数:将总计为SUBTOTAL的筛选列表相关推荐

  1. excel函数:汉字转全拼_星期五的Excel函数:带过滤器的小计和总和

    excel函数:汉字转全拼 Last week, we used the Excel SUBTOTAL function to sum items in a filtered list, while ...

  2. hlookup函数使用教程_星期五的Excel函数:HLOOKUP查找当前价格

    hlookup函数使用教程 On Day 10 of the 30 Excel Functions in 30 Days series, we looked at the Excel HLOOKUP ...

  3. ltrim函数_数据分析常用Excel函数

    Excel是我们工作中经常使用的一种工具,对于数据分析来说,这也是处理数据最基础的工具.本文介绍数据分析中最常用的Excel函数. 查找匹配类 文本数据清洗类 日期类 逻辑运算类 计算统计类 一.查找 ...

  4. 截取字符串的函数_常用的Excel函数

    1.条件判断:IF函数应用 数据 目的:判断成绩所属的等级 方法:在目标单元格中输入公式:=IF(C2>=90,"优秀",IF(C2>=80,"良好" ...

  5. Excel数据分析从入门到精通(三)函数进阶-52个Excel函数之清洗类函数

    Excel数据分析从入门到精通(三)函数进阶-52个Excel函数 1.清洗类函数-left 函数含义 函数使用 2.清洗类函数-right 函数含义 函数使用 3.清洗类函数-MID 函数含义 函数 ...

  6. Excel数据分析从入门到精通(五)函数进阶-52个Excel函数之逻辑类函数

    Excel数据分析从入门到精通(五)函数进阶-52个Excel函数之逻辑类函数 1.逻辑类函数-if 函数含义 函数使用 2.逻辑类函数-AND 函数含义 函数使用 3.逻辑类函数-OR 函数含义 函 ...

  7. Excel数据分析从入门到精通(六)函数进阶-52个Excel函数之关联匹配函数

    Excel数据分析从入门到精通(六)函数进阶-52个Excel函数之关联匹配函数 1.关联匹配函数VLOOKUP 函数含义 函数使用 2.关联匹配函数-hlookup 函数含义 函数使用 3.关联匹配 ...

  8. iserror 函数_如何在Excel中使用CLEAN,FIND和ISERROR工作表函数

    iserror 函数 Excel工作表中提供了很多功能,因此用户经常坚持使用最常用的功能,直到他们开始探索尝试找到问题的解决方案为止. 有时候,甚至没有想到可能有一个功能可以解决该问题. 因此,我决定 ...

  9. matlab中floor函数,floor函数_怎么在excel中使用floor函数

    floor函数即上取整函数,是计算机C语言中的数学函数,与ceil函数相对应.但是它在excel中却是另一种含义,FLOOR函数是向下舍入为最接近指数基数的倍数,下面小编就教你怎么在excel中使用f ...

最新文章

  1. html中加session,Html中如何获取session中的值(如登录后显示XX欢迎您!)
  2. Python编程基础:第九节 逻辑运算Logical Operators
  3. 未来数据中心最需要的5种技能
  4. java xheditor 上传图片_xhEditor粘贴图片自动上传到服务器(Java版)
  5. js map 箭头_JS异常函数之-箭头函数
  6. 两台思科交换机vlan划分_Cisco交换机Vlan划分及ACL配置详细步骤 | 吴文辉博客
  7. Linux expr命令、Linux wc命令、Linux let 命令
  8. C/C++如何连接MySQL服务器以及简单加密
  9. Liferay 7:Liferay内部博客地址
  10. C#绘制立体三维饼状图(超酷)
  11. Hadoop 基本数据类型
  12. [渝粤教育] 同济大学 线性代数学习指导 参考 资料
  13. 计算2+22+222
  14. Java垃圾回收(GC)机制
  15. JSHOP2与ROS通信
  16. 大数据时代改变生活九大应用领域
  17. 全系T*镀膜认证镜头 vivo X70系列夜拍体验再升级
  18. 为什么要进行数据标准化?
  19. python代码编程教学入门,python代码编程火影忍者
  20. CSS实现强制不换行、自动换行、强制换行的css代码

热门文章

  1. Viewpager 小于3张图片滑动时 左滑 出现 背景 白屏
  2. 2021年安全员-B证(山东省)考试及安全员-B证(山东省)报名考试
  3. wps制作班级管理日志让班主任的管理工作事半功倍
  4. c语言的一些小的知识点 酒馆浪人的博客
  5. 产业大数据平台亮相 华夏幸福发力智慧招商
  6. Boy,Slowly...
  7. “爱心接力 温暖传递” ——利尔达走进福利院,冬日送温暖活动
  8. Esp8266 / nodeMCU / wemos D1 MINI GUIslice的配置(官翻)
  9. Cocos2d-x中3D相机的使用
  10. js 文件下载的代码